Re: Supplements and suggestions and about postgresql sequence setval function in the documents

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: yanliang lei <msdnchina(at)163(dot)com>
Cc: "pgsql-docs(at)lists(dot)postgresql(dot)org" <pgsql-docs(at)lists(dot)postgresql(dot)org>
Subject: Re: Supplements and suggestions and about postgresql sequence setval function in the documents
Date: 2024-08-21 13:01:35
Message-ID: CAKFQuwbBxpaSkwdEwvfzWeFCTeT1rGBhHLC66u-wZ=wFJ8c4Rg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

On Wednesday, August 21, 2024, yanliang lei <msdnchina(at)163(dot)com> wrote:

>
>
> in the following example;
> select setval('seq_test',111);
> ---this setval('seq_test',111) : update the current schema's seq_test
> last_value =111
>
> select setval('schemalei.seq_test',222);
> ---this setval('seq_test',111) : update the schemalei schema's
> seq_test last_value =222
>
> but in the setval document(https://www.postgresql.org/docs/current/
> functions-sequence.html), there is no description about it.
>
>
You haven’t indicated what you want done, but the interpretation of the
string literal as a regclass value is discussed in the regclass type
definition. This page rightly does not need to go into detail explaining
how types work, there is other documentation for that. Even the lack of a
link to that page isn’t a problem IMO, though the rarity of the reg* types
could warrant an exception.

David J.

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message PG Doc comments form 2024-08-21 15:39:04 Typo on 2.3. PostgreSQL
Previous Message yanliang lei 2024-08-21 12:23:40 Supplements and suggestions and about postgresql sequence setval function in the documents