Re: Setting Defaults - Mailing list pgsql-novice

From Travis Ruthenburg
Subject Re: Setting Defaults
Date
Msg-id Pine.BSF.4.10.10005241946280.18886-100000@wacko.trickster.net
Whole thread Raw
List pgsql-novice
I just happened upon
<http://www.postgresql.org/docs/faq-english.html#4.16.3>:
4.16.3) Wouldn't use of currval() and nextval() lead to a race condition
with other concurrent backend processes?

No. That has been handled by the backends.

This would leave me to believe currval does sprovide some sort of
atomicness, right?

Regards,

Travis Ruthenburg


On Sun, 14 May 2000, Billy G. Allie wrote:

> Travis Ruthenburg wrote:
> > On Sat, 13 May 2000, Billy G. Allie wrote:
> >
> > > Martijn van Oosterhout wrote:
> > Which begs the question, is there any way to do this without calling on a
> > sequence? What if, for example, I was dealing with text in char fields? Or
> > is this something that should be done on the application side of things? I
> > just thought postgresql might be able to handle it.
>
> I would think that it's possible to do this with a trigger and some PL/pgSLQ code.  I think I will try and
re-implementthis functionality using a trigger to see if I can make it work.  I'll let you know the results. 
> --
> ____       | Billy G. Allie    | Domain....: Bill.Allie@mug.org
> |  /|      | 7436 Hartwell     | Compuserve: 76337,2061
> |-/-|----- | Dearborn, MI 48126| MSN.......: B_G_Allie@email.msn.com
> |/  |LLIE  | (313) 582-1540    |
>
>
>


pgsql-novice by date:

Previous
From: Liz Bartlett
Date:
Subject: Compiling the JDBC interface - make fails
Next
From: Andre Majorel
Date:
Subject: Re: Compiling the JDBC interface - make fails