pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Basil Bourque <basil.bourque@pobox.com>
To: pgsql-docs@postgresql.org
Subject: Mention new `GENERATED … AS IDENTITY` feature in the `Serial Types` page ?
Date: Mon, 10 Jul 2017 13:40:24 -0700
Message-ID: <7637CE20-AA33-48C4-AEBA-A0F591F87235@pobox.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-docs>

I suggest adding a mention of `GENERATED … AS IDENTITY` as a replacement for `SERIAL` in the “Serial Types” section 8.1.4 of the “Data Types” page.

https://www.postgresql.org/docs/devel/static/datatype-numeric.html#datatype-serial

Postgres 10 sports a new `GENERATED … AS IDENTITY` for an identity column to effectively replace the `SERIAL` pseudo-type.

See “PostgreSQL 10 identity columns explained” post for a discussion of the various issues that plague `SERIAL` but not identity columns.

https://blog.2ndquadrant.com/postgresql-10-identity-columns/

Seems a shame to let the naïve reader continue using `SERIAL` without knowing about identity column feature.

—Basil Bourque

-- 
Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs



view thread (2+ messages)  latest in thread

Message-ID: <7637CE20-AA33-48C4-AEBA-A0F591F87235@pobox.com>
Permalink:  ../7637CE20-AA33-48C4-AEBA-A0F591F87235@pobox.com/
Also on:    postgresql.org/message-id/7637CE20-AA33-48C4-AEBA-A0F591F87235@pobox.com

 · 

reply

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: basil.bourque@pobox.com
  Subject: Re: Mention new `GENERATED … AS IDENTITY` feature in the `Serial Types` page ?
  In-Reply-To: <7637CE20-AA33-48C4-AEBA-A0F591F87235@pobox.com>

* 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