Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dGTaR-0000ZK-QW for pgsql-hackers@arkaria.postgresql.org; Thu, 01 Jun 2017 17:08:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dGTaR-00031w-DJ for pgsql-hackers@arkaria.postgresql.org; Thu, 01 Jun 2017 17:08:39 +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 1dGTaQ-00031d-U7 for pgsql-hackers@postgresql.org; Thu, 01 Jun 2017 17:08:39 +0000 Received: from mail-wm0-x22d.google.com ([2a00:1450:400c:c09::22d]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dGTaO-0005MB-5A for pgsql-hackers@postgresql.org; Thu, 01 Jun 2017 17:08:37 +0000 Received: by mail-wm0-x22d.google.com with SMTP id 7so165640650wmo.1 for ; Thu, 01 Jun 2017 10:08:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=bdOamrUwMItr23oys4YoYQDHwvWNphhMjXZZPxXcuXc=; b=uwZH7Aub+ZReAA5PSlxdWBtU6PqX1XZmVmQZvyq7eRzNvA5kMX3VsKfSYm7IHIQm+s WpqsUwnZ22T1iFaAo58VGCVux1KSyK4KGnqDei28tkRF3rBafiEN3g1zkVDTigCaNZ62 bViSHqIjQtE4hwVDY9vJ6B1FdGz0JFX8IG7BEJqugXXCVSJo5fDThDnaFLZS5SZdg3Lh WHHNQMjaPBjl2EoFBl/qp4cuyVI6JplsjqPLbKCgcCGg28KGd2JvrAlWI7S71TdhzG/a 6N8tr3h1ilg/hvWwZYIc2U1qjL2HUVin5RM4f678ewjV/87zyGhmiw0jfFM3VWnWnFTK 0nXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=bdOamrUwMItr23oys4YoYQDHwvWNphhMjXZZPxXcuXc=; b=kDz2f8aW/ufF9ioxSv86agD5P2h3z6+XrVKUezzQpNdE5+2SqFzHqbAg77bUv8rHc/ gF+jQEA8zk+C6BrGIvGEFLtdBjRUth1cvBFUmiHxylwwaqA9Y+hHE6p/pxdJuPfeIoGS zH7QtXN86OZ+Rcq4JYIBVMJxuZaAfJoJ2ge/lVE6U5Q+9wcwGLLnCc52EzBbJG0+QO70 LG4R4ZjxdjXK0GjG1OsEBqIp7e39qgfYCSnFMLXmhQTdQnd5qkWSCdcl1S5fYjCom5nZ ElVCXk3yT53tatdV6x564p7MN0ahVwB6GkzIF+6kHvoRedMXV29k1azO916JnyI4UPua AY6A== X-Gm-Message-State: AODbwcADa1Pij2zYURNyNW+AkvOqvta3Zz755My60lh2eVoC6ezAwFYY v1mlO6Fytyz6hV8P X-Received: by 10.223.162.215 with SMTP id t23mr596346wra.193.1496336914654; Thu, 01 Jun 2017 10:08:34 -0700 (PDT) Received: from [192.168.0.105] (150.123.broadband11.iol.cz. [90.178.123.150]) by smtp.gmail.com with ESMTPSA id c129sm27529916wmh.31.2017.06.01.10.08.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Jun 2017 10:08:33 -0700 (PDT) Subject: Re: [BUGS] Concurrent ALTER SEQUENCE RESTART Regression To: Robert Haas , Andres Freund References: <20170522154227.nvafbsm62sjpbxvd@alap3.anarazel.de> <20170524032516.rsggec2yrd4cqvv2@alap3.anarazel.de> <54DD1674-B9FC-4723-AC3E-890373889E25@anarazel.de> <20170524143239.2dzn3hq3k5wt6shf@alap3.anarazel.de> <20170531212438.rup2qyphp3ig4mvs@alap3.anarazel.de> <20170601000716.qxg7c46ukkiljjb3@alap3.anarazel.de> Cc: Peter Eisentraut , "pgsql-hackers@postgresql.org" , Michael Paquier , Noah Misch , Jason Petersen , PostgreSQL mailing lists From: Petr Jelinek Message-ID: <7345e39f-982a-130f-91a4-3d487e5de08c@2ndquadrant.com> Date: Thu, 1 Jun 2017 19:08:33 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) 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 01/06/17 16:51, Robert Haas wrote: > On Wed, May 31, 2017 at 8:07 PM, Andres Freund wrote: >> Here's a patch doing what I suggested above. The second patch addresses >> an independent oversight where the post alter hook was invoked before >> doing the catalog update. > > 0002 is a slam-dunk. I don't object to 0001 but haven't reviewed it carefully. > I did go over the code (ie didn't do actual testing), and I like it much better than the current state. Both in terms of making the behavior more consistent and the fact that the code is simpler. So +1 to go ahead with both patches. -- Petr Jelinek http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, 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