From: PG Doc comments form <noreply@postgresql.org>
To: pgsql-docs@lists.postgresql.org
Cc: uysimty@gmail.com
Subject: Serial Data type
Date: Tue, 12 Mar 2019 03:53:10 +0000
Message-ID: <155236279038.30378.14142920824129653613@wrigleys.postgresql.org> (raw)
The following documentation comment has been logged on the website:
Page: https://www.postgresql.org/docs/11/datatype-numeric.html
Description:
I read the doc at
https://www.postgresql.org/docs/11/datatype-numeric.html#DATATYPE-SERIAL. I
want to clarify how psql generate the sequence to existing data. Example if
I alter a table to add serial column so I will generate sequence value base
on integer to the existing data. So how did psql order in that case to
generate 1, 2, 3. Does it order by the created timestamp of the record or
the primary key of the table? is there a way to set the order when we alter
table?
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: noreply@postgresql.org, pgsql-docs@lists.postgresql.org, uysimty@gmail.com
Subject: Re: Serial Data type
In-Reply-To: <155236279038.30378.14142920824129653613@wrigleys.postgresql.org>
* 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