Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YfV1n-0001ki-F3 for pgsql-bugs@arkaria.postgresql.org; Tue, 07 Apr 2015 15:02:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YfV1m-00023P-Qb for pgsql-bugs@arkaria.postgresql.org; Tue, 07 Apr 2015 15:02:58 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YfV1m-00023H-7Z for pgsql-bugs@postgresql.org; Tue, 07 Apr 2015 15:02:58 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YfV1f-0006GJ-AU for pgsql-bugs@postgresql.org; Tue, 07 Apr 2015 15:02:57 +0000 Received: by mail.anarazel.de (Postfix, from userid 108) id CBB2D860002; Tue, 7 Apr 2015 17:02:43 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail X-Spam-Level: X-Spam-Status: No, score=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from anarazel.de (p5DDC7E7C.dip0.t-ipconnect.de [93.220.126.124]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id AF870860001; Tue, 7 Apr 2015 17:02:34 +0200 (CEST) Received: by anarazel.de (Postfix, from userid 1000) id 349121001E9; Tue, 7 Apr 2015 17:02:34 +0200 (CEST) Date: Tue, 7 Apr 2015 17:02:34 +0200 From: Andres Freund To: antoine@goutenoir.com Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #12991: RESTART IDENTITY is not doing anything Message-ID: <20150407150234.GE12291@awork2.anarazel.de> References: <20150407040756.2552.47640@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150407040756.2552.47640@wrigleys.postgresql.org> X-Pg-Spam-Score: -4.2 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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