pg.ddx.io pgsql-docs@postgresql.org mailing list archive
help / color / mirror / Atom feedundocumented setval()
2+ messages / 2 participants
[nested] [flat]
* undocumented setval()
@ 2001-08-26 08:40 Cedar Cox <cedarc@visionforisrael.com>
0 siblings, 1 reply; 2+ messages in thread
From: Cedar Cox @ 2001-08-26 08:40 UTC (permalink / raw)
To: pgsql-sql@postgresql.org
When looking through a dump file, I noticed a setval(text, int,
bool). What is this? It doesn't appear to be documented.
-Cedar
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: [SQL] undocumented setval()
@ 2001-08-26 15:24 Tom Lane <tgl@sss.pgh.pa.us>
parent: Cedar Cox <cedarc@visionforisrael.com>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2001-08-26 15:24 UTC (permalink / raw)
To: Cedar Cox <cedarc@visionforisrael.com>; +Cc: pgsql-sql@postgresql.org; pgsql-docs
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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2001-08-26 15:24 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-08-26 08:40 undocumented setval() Cedar Cox <cedarc@visionforisrael.com>
2001-08-26 15:24 ` Tom Lane <tgl@sss.pgh.pa.us>
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