From: Bruce Momjian <bruce@momjian.us>
To: ailjushkin@gmail.com
To: pgsql-docs@lists.postgresql.org
Subject: Re: nextval parameter is not clear
Date: Tue, 22 Nov 2022 14:10:11 -0500
Message-ID: <Y30ekxQpiIaG9eSl@momjian.us> (raw)
In-Reply-To: <166608103231.2042183.13992576112735261253@wrigleys.postgresql.org>
References: <166608103231.2042183.13992576112735261253@wrigleys.postgresql.org>
On Tue, Oct 18, 2022 at 08:17:12AM +0000, PG Doc comments form wrote:
> The following documentation comment has been logged on the website:
>
> Page: https://www.postgresql.org/docs/14/functions-sequence.html
> Description:
>
> https://www.postgresql.org/docs/14/functions-sequence.html
>
> I don't see here any hints about how to use this function, and what the
> regclass means.
> How should I understand that sequence_name should be passed as string in
> nextval('sequence_name') ?
>
> Maybe add some links to other topics or clarify examples for nextval here.
Uh, the last sentence in that section says:
The sequence to be operated on by a sequence function is specified by a
regclass argument, which is simply the OID of the sequence in the
pg_class system catalog. You do not have to look up the OID by hand,
however, since the regclass data type's input converter will do the work
for you. See Section 8.19 for details.
--
Bruce Momjian <bruce@momjian.us> https://momjian.us
EDB https://enterprisedb.com
Indecision is a decision. Inaction is an action. Mark Batterson
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: bruce@momjian.us, ailjushkin@gmail.com, pgsql-docs@lists.postgresql.org
Subject: Re: nextval parameter is not clear
In-Reply-To: <Y30ekxQpiIaG9eSl@momjian.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