Re: lastval() - Mailing list pgsql-patches

From Neil Conway
Subject Re: lastval()
Date
Msg-id 42818635.6060907@samurai.com
Whole thread Raw
In response to Re: lastval()  ("John Hansen" <john@geeknet.com.au>)
List pgsql-patches
John Hansen wrote:
> Even more so if the 'currval(void) called before nextval(seq_name)'
> error message could be supressed by a GUC variable and return 0
> instead.

I don't think that's a good idea at all. It seems unnecessary, it
complicates the definition of the operation, and worse, "0" is a valid
return value for currval(), so it would also be ambiguous.

-Neil

pgsql-patches by date:

Previous
From: "John Hansen"
Date:
Subject: Re: lastval()
Next
From: "John Hansen"
Date:
Subject: Re: lastval()