Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cyuFU-0008H6-7U for pgsql-hackers@arkaria.postgresql.org; Fri, 14 Apr 2017 05:58:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cyuFT-000655-Eq for pgsql-hackers@arkaria.postgresql.org; Fri, 14 Apr 2017 05:58:23 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cyuDz-0003QD-2L for pgsql-hackers@postgresql.org; Fri, 14 Apr 2017 05:56:51 +0000 Received: from mail-pg0-x232.google.com ([2607:f8b0:400e:c05::232]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cyuDw-0001wf-6T for pgsql-hackers@postgresql.org; Fri, 14 Apr 2017 05:56:49 +0000 Received: by mail-pg0-x232.google.com with SMTP id g2so39801074pge.3 for ; Thu, 13 Apr 2017 22:56:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=XiF0pOp1CCQEWD1UWrAhuzURfp0tr5+vxTwpA9E61HA=; b=IF79uZpgqe7XUFnigsiTk9lL44e3+k3i0Yh75i/80bNXuNPe+axVjNow53CKZhmgym Jlz49irBxPWJ3GwFxt/Zry+Aq9ABbmBrZtVV9qAqqfB4We1xOXUtm8XpvB/pic5wIz6U +7XfsT42lrainTFwfThSi6aav3fp3VWE2wEKc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=XiF0pOp1CCQEWD1UWrAhuzURfp0tr5+vxTwpA9E61HA=; b=g6hFJyY7HjU2RPivaCj2SVzl0GfHt47CC5veQEN+mRW7bMZZnqbANi1/nj/XpPTA0M nSlo8++/XteAInwekUkOdxUfESgmdb215DOXgSF3a8s13VislR6FWzj/3IXVgyddE+HX gx2qDrGUTNo+TZ6jAkXuLwkL8xKmM58+OyHcAtLmIBF9wqgeKZWuCyiganzoVwx8gD/P L82kN7zgI7Wqx0gEi+t8jmWN9K73GhddHoQkcrlQZIvxG7M4ThPdzkOBxTOLYm7hoBBd Xy7JgJMS5jt70Qy+BJcwWl6zMFMhb8Thkw3eVpvaDvQAcr0Y5+r7EXy8VZJkWTm8lfDK +VBA== X-Gm-Message-State: AN3rC/6YubIk2LqczRXYC3VY5VIkHEPNY+t+WYYFMkTZ4+JBYkcC9eEN TAIlJ+t3ABsolg== X-Received: by 10.99.104.69 with SMTP id d66mr5496661pgc.93.1492149407202; Thu, 13 Apr 2017 22:56:47 -0700 (PDT) Received: from tornado.leadboat.com (c-98-248-47-228.hsd1.ca.comcast.net. [98.248.47.228]) by smtp.gmail.com with ESMTPSA id t70sm1247645pgd.33.2017.04.13.22.56.45 (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 13 Apr 2017 22:56:46 -0700 (PDT) Date: Fri, 14 Apr 2017 05:56:44 +0000 From: Noah Misch To: Peter Eisentraut Cc: Vitaly Burovoy , pgsql-hackers Subject: Re: identity columns Message-ID: <20170414055644.GF2870454@tornado.leadboat.com> References: <06a416db-e35b-36d1-7e2f-0affdee24745@2ndquadrant.com> <4b1d703f-818f-00bf-4169-3279af377f3d@2ndquadrant.com> <59d8e32a-14de-6f45-c2b0-bb52e4a7522d@2ndquadrant.com> <21ab7425-ae33-b0af-4177-f2ba88acd93a@2ndquadrant.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On Thu, Apr 06, 2017 at 10:26:16PM -0700, Vitaly Burovoy wrote: > On 4/6/17, Peter Eisentraut wrote: > > On 4/4/17 22:53, Vitaly Burovoy wrote: > >> The next nitpickings to the last patch. I try to get places with > >> lacking of variables' initialization. > >> All other things seem good for me now. I'll continue to review the > >> patch while you're fixing the current notes. > > > > Committed with your changes (see below) as well as executor fix. > > Thank you very much! > > > > As I tried to mention earlier, it is very difficult to implement the IF > > NOT EXISTS behavior here, because we need to run the commands the create > > the sequence before we know whether we will need it. > > In fact with the function "get_attidentity" it is not so hard. Please, > find the patch attached. > I've implement SET GENERATED ... IF NOT EXISTS. It must be placed > before other SET options but fortunately it conforms with the > standard. > Since that form always changes the sequence behind the column, I > decided to explicitly write "[NO] CACHE" in pg_dump. > > As a plus now it is possible to rename the sequence behind the column > by specifying SEQUENCE NAME in SET GENERATED. > > I hope it is still possible to get rid of the "ADD GENERATED" syntax. [Action required within three days. This is a generic notification.] The above-described topic is currently a PostgreSQL 10 open item. Peter, since you committed the patch believed to have created it, you own this open item. If some other commit is more relevant or if this does not belong as a v10 open item, please let us know. Otherwise, please observe the policy on open item ownership[1] and send a status update within three calendar days of this message. Include a date for your subsequent status update. Testers may discover new open items at any time, and I want to plan to get them all fixed well in advance of shipping v10. Consequently, I will appreciate your efforts toward speedy resolution. Thanks. [1] https://www.postgresql.org/message-id/20170404140717.GA2675809%40tornado.leadboat.com -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers