Re: lastval()

From: Neil Conway <neilc(at)samurai(dot)com>
To: John Hansen <john(at)geeknet(dot)com(dot)au>
Cc: Dennis Bjorklund <db(at)zigo(dot)dhs(dot)org>, pgsql-patches(at)postgresql(dot)org
Subject: Re: lastval()
Date: 2005-05-11 04:12:37
Message-ID: 42818635.6060907@samurai.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message John Hansen 2005-05-11 04:22:17 Re: lastval()
Previous Message John Hansen 2005-05-11 04:08:16 Re: lastval()