Re: easy way to insert same value into 2 columns

Sebastian Böck <sebastianboeck@freenet.de>

From: Sebastian Boeck <sebastianboeck@freenet.de>
To: Csaba Nagy <nagy@ecircle-ag.com>
Cc: Postgres general mailing list <pgsql-general@postgresql.org>
Date: 2003-10-16T11:53:27Z
Lists: pgsql-general
Csaba Nagy wrote:
> I can't 100% say it's safe to use, but no, other inserts will not
> influence the value, because currval will return the last sequence value
> used by the current session (i.e. the current connection). And of course
> you only have concurrent inserts using different connection, right ?
> 
> HTH,
> Csaba.

Yes, that' right.

Thanks

Sebastian