               END
 WHERE
     name = 'search_path';
+SELECT setting FROM pg_catalog.pg_settings WHERE name = 'search_path';
 $$;
 
 SELECT dbi_link.prepend_to_search_path('dbi_link');

        'SELECT pg_catalog.quote_literal($1) AS foo',
        'TEXT'
    );
    my $quoted = spi_exec_query(
        $plan,
        $_[0]
    )->{rows}[0]{foo};

    my (@raw_cols, @cols, @types);
    my %comments = ();
    warn "Getting column info for >$table->{TABLE_NAME}<" if $_SHARED{debug};
    (my $escaped_table = $table->{TABLE_NAME}) =~ s/([_%])/$esc$1/g;
    my $sth2 = $_SHARED{dbh}{ $params->{data_source_id} }->column_info(
        undef,
        $escaped_schema,
        $escaped_table,
        '%'
    );
######################################################################
