pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: antoine@goutenoir.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #12991: RESTART IDENTITY is not doing anything
Date: Tue, 7 Apr 2015 17:02:34 +0200
Message-ID: <20150407150234.GE12291@awork2.anarazel.de> (raw)
In-Reply-To: <20150407040756.2552.47640@wrigleys.postgresql.org>
References: <20150407040756.2552.47640@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On 2015-04-07 04:07:56 +0000, antoine@goutenoir.com wrote:
> Example, say Article has `id` as primary key :

How is that table defined? Restart identity will only work if the
sequence is 'owned' by the id column. That happens if you either create
it by specifying 'serial' as the column type, or if you explicitly use
ALTER SEQUENCE ... OWNED BY table.col;

Greetings,

Andres Freund


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



view thread (4+ messages)  latest in thread

Message-ID: <20150407150234.GE12291@awork2.anarazel.de>
Permalink:  ../20150407150234.GE12291@awork2.anarazel.de/
Also on:    postgresql.org/message-id/20150407150234.GE12291@awork2.anarazel.de

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: andres@anarazel.de, antoine@goutenoir.com
  Subject: Re: BUG #12991: RESTART IDENTITY is not doing anything
  In-Reply-To: <20150407150234.GE12291@awork2.anarazel.de>
  References: <20150407040756.2552.47640@wrigleys.postgresql.org> <20150407150234.GE12291@awork2.anarazel.de>

* 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