Re: [GENERAL] currval and DISCARD ALL - Mailing list pgsql-hackers

From Robert Haas
Subject Re: [GENERAL] currval and DISCARD ALL
Date
Msg-id CA+TgmoZjhtEtncAsDYQtWNwLgOwvdgzp6Dhf-eeE9AsJVUkRXQ@mail.gmail.com
Whole thread Raw
In response to Re: [GENERAL] currval and DISCARD ALL  (Fabrízio de Royes Mello<fabrizio@timbira.com.br>)
Responses Re: [GENERAL] currval and DISCARD ALL
List pgsql-hackers
On Mon, Sep 2, 2013 at 4:35 PM, Fabrízio de Royes Mello
<fabrizio@timbira.com.br> wrote:
> The attached patch fix the items reviewed by you.

Committed with assorted revisions.  In particular, I renamed the
function that discards cached sequence data, revised the wording of
the documentation, added a regression test, and tweaked the list-free
code to pop items off one after the other instead of walking the list
and then NULLing it out at the end.  Although no ERROR is possible
here currently, this coding style is generally preferable because it's
robust against being interrupted in the middle.

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



pgsql-hackers by date:

Previous
From: "David E. Wheeler"
Date:
Subject: Re: No Index-Only Scan on Partial Index
Next
From: Fabrízio de Royes Mello
Date:
Subject: Re: [GENERAL] currval and DISCARD ALL