syncing a serial across tables

Поиск
Список
Период
Сортировка
От Keith Worthington
Тема syncing a serial across tables
Дата
Msg-id 20050512174434.M66389@narrowpathinc.com
обсуждение исходный текст
Ответы Re: syncing a serial across tables
Список pgsql-novice
Hi All,

I believe I need to use a serial column in two tables and keep then synched.
I am thinking that I could use an AFTER INSERT trigger and INSERT currval()
into the second table to keep them synched.  Has anyone done this before?  Is
this a bad idea?

Kind Regards,
Keith

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Autocommit in Postgresql
Следующее
От: Volkan YAZICI
Дата:
Сообщение: Re: syncing a serial across tables