From: Tom Lane <tgl@sss.pgh.pa.us>
To: Etsuro Fujita <etsuro.fujita@gmail.com>
Cc: PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Cc: zedaardv@drizzle.com
Subject: Re: BUG #15998: query to return a table column list gives error on a missing foreign data wrapper library
Date: Tue, 10 Sep 2019 09:59:30 -0400
Message-ID: <28184.1568123970@sss.pgh.pa.us> (raw)
In-Reply-To: <CAPmGK15Jx54cMyK2cjGs8mGiQwvDfqFgO7Nv5CnfZiYkf813iA@mail.gmail.com>
References: <15998-8429a3984b1364ad@postgresql.org>
<CAPmGK15Jx54cMyK2cjGs8mGiQwvDfqFgO7Nv5CnfZiYkf813iA@mail.gmail.com>
Etsuro Fujita <etsuro.fujita@gmail.com> writes:
> On Tue, Sep 10, 2019 at 6:46 PM PG Bug reporting form
> <noreply@postgresql.org> wrote:
>> Take a postgres database with foreign servers and foreign tables.
>> remove the fdw library.
>> [ Then a query on information_schema.columns ]
>> throws error
>> ERROR: could not access file "$libdir/postgres_fdw": No such file or
>> directory
>>
>> commenting out the case statement
>> CASE WHEN col.is_updatable = 'YES' THEN true ELSE false END AS
>> is_updatable,
>> causes the query to run without error.
> Seems reasonable to me; the is_updatable reference would cause the
> IsForeignRelUpdatable() call for postgres_fdw foreign tables IIUC, so
> removing that would be a workaround for this issue if that works for
> you.
Yeah. Seems like not-a-bug to me: if you inquire about the updatability
of a foreign table, we really can't answer that without consulting
the relevant FDW.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, etsuro.fujita@gmail.com, zedaardv@drizzle.com
Subject: Re: BUG #15998: query to return a table column list gives error on a missing foreign data wrapper library
In-Reply-To: <28184.1568123970@sss.pgh.pa.us>
References: <15998-8429a3984b1364ad@postgresql.org> <CAPmGK15Jx54cMyK2cjGs8mGiQwvDfqFgO7Nv5CnfZiYkf813iA@mail.gmail.com> <28184.1568123970@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox