pg.ddx.io pgsql-hackers@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Vitaly Burovoy <vitaly.burovoy@gmail.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: identity columns
Date: Fri, 24 Mar 2017 01:18:48 -0400
Message-ID: <06a416db-e35b-36d1-7e2f-0affdee24745@2ndquadrant.com> (raw )
In-Reply-To: <CAKOSWNmRm0ydv1Yp8OzZ_GPh6Kfyhk+o-fxRb6onGfp433afFA@mail.gmail.com >
References: <6adbacbf-73bc-dd1a-2033-63409180fd18@2ndquadrant.com >
<CAKOSWNk3Ug6CV5RBPhF1UCiaR32ZTxdtf-iZ+uv6C3rP6cN8QA@mail.gmail.com >
<CAKOSWNkKUAb1qwubq+MhxbEyT0ewM2NYsXKUskxheg_dUWnWPw@mail.gmail.com >
<4ef801f2-64ce-1a58-277d-d9389ae7770d@2ndquadrant.com >
<e287f723-d095-0d24-483a-3b7e3611c3e9@2ndquadrant.com >
<CAKOSWNmsci7jZzpoqWAH_QcVjQzwOMf04o91Jf5WVTkHbDMy2w@mail.gmail.com >
<1cf308b6-4f5c-05ba-cc74-0a7121603fcf@2ndquadrant.com >
<CAKOSWNmKbthEdV0m1J=V7r6nDyPk8diKwHW93jYbB+wnXd-c1A@mail.gmail.com >
<ed41b243-63b2-f287-e7b0-8b2ac7266d66@2ndquadrant.com >
<CAKOSWNnMp0sKZzcX0zSKJOTSb1Fas02+xTW=kvGMu2NhRiOAbg@mail.gmail.com >
<ec772da8-3443-b39d-e25e-138ef01a71c1@2ndquadrant.com >
<CAKOSWNnXmM6YBXNzGnXtZQMPjDgJF+a3Wx53Wzmrq5wqDyRX7Q@mail.gmail.com >
<c05eefac-0b55-74df-6343-71d232c15bc5@2ndquadrant.com >
<CAKOSWNmRm0ydv1Yp8OzZ_GPh6Kfyhk+o-fxRb6onGfp433afFA@mail.gmail.com >
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
On 3/23/17 06:09, Vitaly Burovoy wrote:
> I think we'll end up with "DROP IDENTITY IF EXISTS" to avoid raising
> an exception and "ADD OR SET" if your grammar remains.
That sounds reasonable to me.
> Right. From that PoV IDENTITY also changes a default value: "SET (ADD
> ... AS?) IDENTITY" works as setting a default to "nextval(...)"
> whereas "DROP IDENTITY" works as setting it back to NULL.
But dropping and re-adding an identity destroys state, so it's not quite
the same.
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
view thread (55+ messages) latest in thread
Message-ID: <06a416db-e35b-36d1-7e2f-0affdee24745@2ndquadrant.com>
Permalink: ../06a416db-e35b-36d1-7e2f-0affdee24745@2ndquadrant.com/
Also on: postgresql.org/message-id/06a416db-e35b-36d1-7e2f-0affdee24745@2ndquadrant.com
copy link · copy postgr.es
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-hackers@postgresql.org
Cc: peter.eisentraut@2ndquadrant.com, vitaly.burovoy@gmail.com
Subject: Re: identity columns
In-Reply-To: <06a416db-e35b-36d1-7e2f-0affdee24745@2ndquadrant.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