Skip site navigation (1) Skip section navigation (2)

Re: pl/proxy and sequence generation

From: "Jonah H(dot) Harris" <jonah(dot)harris(at)gmail(dot)com>
To: "Igor Katson" <descentspb(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: pl/proxy and sequence generation
Date: 2008-12-24 15:44:33
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-general
On Wed, Dec 24, 2008 at 10:18 AM, Igor Katson <descentspb(at)gmail(dot)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

In response to


pgsql-general by date

Next:From: Adrian KlaverDate: 2008-12-24 16:16:03
Subject: Re: need some help with pl-pgsql
Previous:From: Igor KatsonDate: 2008-12-24 15:18:14
Subject: pl/proxy and sequence generation

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group