Re: BUG #15998: query to return a table column list gives error on a missing foreign data wrapper library - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #15998: query to return a table column list gives error on a missing foreign data wrapper library
Date
Msg-id 28184.1568123970@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #15998: query to return a table column list gives error on amissing foreign data wrapper library  (Etsuro Fujita <etsuro.fujita@gmail.com>)
List pgsql-bugs
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



pgsql-bugs by date:

Previous
From: Sandeep Thakkar
Date:
Subject: Re: BUG #15996: Unable to install any PosgresSQL version
Next
From: Tom Lane
Date:
Subject: Re: BUG #15999: jsonb_populate_record fails with array column