Re: [COMMITTERS] pgsql: Add DISCARD SEQUENCES command.

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
Cc: Kevin Hale Boyes <kcboyes(at)gmail(dot)com>, Robert Haas <rhaas(at)postgresql(dot)org>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [COMMITTERS] pgsql: Add DISCARD SEQUENCES command.
Date: 2013-10-07 19:57:46
Message-ID: CA+TgmobsHk56uqMWrPHUvJ9yuN3+hiHRjRTj0AiQRzpvqE_iPA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On Sat, Oct 5, 2013 at 8:10 AM, Michael Paquier
<michael(dot)paquier(at)gmail(dot)com> wrote:
> Here is the test case failing:
> =# create sequence foo;
> CREATE SEQUENCE
> =# select nextval('foo');
> nextval
> ---------
> 1
> (1 row)
> =# discard sequences ;
> DISCARD SEQUENCES
> =# select currval('foo');
> ERROR: 55000: currval of sequence "foo" is not yet defined in this session
> LOCATION: currval_oid, sequence.c:780
> =# select lastval();
> The connection to the server was lost. Attempting reset: Failed.

Thanks. I have pushed a fix that I hope will be sufficient.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2013-10-07 20:53:12 pgsql: Translation updates
Previous Message Robert Haas 2013-10-07 19:57:07 pgsql: Make DISCARD SEQUENCES also discard the last used sequence.

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2013-10-07 20:04:15 Re: insert throw error when year field len > 4 for timestamptz datatype
Previous Message Tomas Vondra 2013-10-07 19:56:33 Re: Re: custom hash-based COUNT(DISTINCT) aggregate - unexpectedly high memory consumption