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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #15998: query to return a table column list gives error on a missing foreign data wrapper library
Дата
Msg-id 28184.1568123970@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #15998: query to return a table column list gives error on amissing foreign data wrapper library  (Etsuro Fujita <etsuro.fujita@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Sandeep Thakkar
Дата:
Сообщение: Re: BUG #15996: Unable to install any PosgresSQL version
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #15999: jsonb_populate_record fails with array column