Re: Query on postgres_fdw extension

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: Query on postgres_fdw extension
Дата
Msg-id 881a552bf99081609275aa9fe151073ad569c059.camel@cybertec.at
обсуждение исходный текст
Ответ на Re: Query on postgres_fdw extension  (Duarte Carreira <dncarreira@gmail.com>)
Ответы Re: Query on postgres_fdw extension  (Shaozhong SHI <shishaozhong@gmail.com>)
Список pgsql-general
On Fri, 2022-01-21 at 14:33 +0000, Duarte Carreira wrote:
> If we just create the 2 foreign tables, one complete and one without id,
> you can simply insert into the table without id and it will work fine.
> To select and show data, you use the "complete" table that has the id column.
> 
> No need for trigger and view. If I understood correctly.
> 
> I have this 2 table setup working.
> 
> It's a workaround that quickly escalates out of hand though... with little added value.

Sure, that will work.

I just wanted to show how you can do without dealing with two different
foreign tables explicitly.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com




В списке pgsql-general по дате отправления:

Предыдущее
От: Paul Ramsey
Дата:
Сообщение: Re: proj_create errors in EDB 13.5 installation macOS
Следующее
От: Alanoly Andrews
Дата:
Сообщение: Using a different column name in a foreign table