Re: pl/proxy and sequence generation

Поиск
Список
Период
Сортировка
От Jonah H. Harris
Тема Re: pl/proxy and sequence generation
Дата
Msg-id 36e682920812240744s7067168dq2fdfe8095f15234a@mail.gmail.com
обсуждение исходный текст
Ответ на pl/proxy and sequence generation  (Igor Katson <descentspb@gmail.com>)
Ответы Re: pl/proxy and sequence generation  ("Asko Oja" <ascoja@gmail.com>)
Список pgsql-general
On Wed, Dec 24, 2008 at 10:18 AM, Igor Katson <descentspb@gmail.com> wrote:
> So, should I make a wrapper in e.g. PL/pgsql for every insert function
> writen in PL/Proxy to remove the sequence from the argument list and to call
> the sequence generator?
> Is there a better way to do that?

Why not put the sequence on your main PL/Proxy hub and call the function with:

SELECT some_func(nextval('my_seq'), foo, bar, baz, ...);

--
Jonah H. Harris, Senior DBA
myYearbook.com

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

Предыдущее
От: Igor Katson
Дата:
Сообщение: pl/proxy and sequence generation
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: need some help with pl-pgsql