From: Tom Lane <tgl@sss.pgh.pa.us>
To: Cedar Cox <cedarc@visionforisrael.com>
Cc: pgsql-sql@postgresql.org
Cc: pgsql-docs@postgresql.org
Subject: Re: [SQL] undocumented setval()
Date: Sun, 26 Aug 2001 11:24:34 -0400
Message-ID: <18557.998839474@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.21.0108261139340.6505-100000@nanu.visionforisrael.com>
References: <Pine.LNX.4.21.0108261139340.6505-100000@nanu.visionforisrael.com>
Cedar Cox <cedarc@visionforisrael.com> writes:
> When looking through a dump file, I noticed a setval(text, int,
> bool). What is this? It doesn't appear to be documented.
The bool parameter sets the is_called state bit of the sequence.
Without this you can't restore a sequence to a virgin "never nextval'd"
state.
Actually, none of the sequence-related functions are documented in
what I'd call a proper way. I think there should be a separate section
of the user's guide "Functions and Operators" chapter that describes
them --- not a large section, but a section nonetheless. Any
volunteers to write it?
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: tgl@sss.pgh.pa.us, cedarc@visionforisrael.com, pgsql-sql@postgresql.org
Subject: Re: [SQL] undocumented setval()
In-Reply-To: <18557.998839474@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox