Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1irmDA-0008WT-Ih for pgsql-hackers@arkaria.postgresql.org; Wed, 15 Jan 2020 17:12:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1irmD9-0008Be-CF for pgsql-hackers@arkaria.postgresql.org; Wed, 15 Jan 2020 17:12:07 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1irmD9-0008BX-0A for pgsql-hackers@lists.postgresql.org; Wed, 15 Jan 2020 17:12:07 +0000 Received: from mail-qt1-x841.google.com ([2607:f8b0:4864:20::841]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1irmD3-0006g7-5B for pgsql-hackers@lists.postgresql.org; Wed, 15 Jan 2020 17:12:05 +0000 Received: by mail-qt1-x841.google.com with SMTP id d5so16416579qto.0 for ; Wed, 15 Jan 2020 09:12:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=8yiUWkvqUHCATIaaJ6TN/hidonLou0sPUDYTbPW2qqg=; b=GRCO3QYBpXVzBAZk7nLpPSpHClwtXFPIbGj21YmeaaNVqkLhzXoUCA+TYFFDZeLHSS sQAENfrZUgxBFpIb9w/OM53sRi4AiYb5nHWlY5hbd3fazXZVld3r1EOx6y71jWeySr/a dJ6mSoD09UBbfMNPBBv42rY2BzQJQofkxsplJ6HZjd/6j5nqM3KxzN/vN3EuXzXbqa4Y 9lOIuAFnrWCpSXn8+KKcKpqvSVHFZUxYyFAr2fjSv1db9cIagaBsvuoPhohr9ygeBZ8v l/I0yRScGWkJvS3RUqlr1CXfZVTPc6P6JGZ+Ikt0ekejO0V1ecxlYJqkoVKk3RK6En6L kbBw== 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:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=8yiUWkvqUHCATIaaJ6TN/hidonLou0sPUDYTbPW2qqg=; b=F6cWbyfxnGPSuViD7pCgE/b3PWcidVRQIebyTkaL6XsvAIUNJ6daufYr+VUbrU2FS8 HBdpXbbQjSjAyNpe8Ish/PO47pANjMMV+Wckal+wPrUslvSUlDSDBU0UA+oq9Xv7psIC FzACnPSaCdJkgwjLaNOWCZnMlEQN2/NAoi7Cw0C2gB/NfPIJ2htuxfgT5e4l4MksLSPm ECUx5oduE2ykDofU1qTwKAiPY9iGghqMeUX093/tEYLNZKf3JK6rXt3xywljzLqX8TzE sfIbg6dcMKabn0AY2Wa4siS1zc4DL+dIRlp0BRrk7S7efsIkhtB2ZuXl13JTb2xel4au mVSA== X-Gm-Message-State: APjAAAUatssLnGNc05I67K0SpQ4tRwiHfO4Q1gGUH8MKuxHeZxxFzlJq G/6FSz89Atya/5M9ETIw581wAA== X-Google-Smtp-Source: APXvYqyUmpy2sqcAJ5IxPVSbzBjxHwo5NFlpe52aB6GvOloNeHSUkTu7MPd2Y24o16x5vMspzNl7vQ== X-Received: by 2002:ac8:461a:: with SMTP id p26mr4355640qtn.317.1579108320414; Wed, 15 Jan 2020 09:12:00 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([179.57.113.12]) by smtp.gmail.com with ESMTPSA id l62sm8771302qke.12.2020.01.15.09.11.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jan 2020 09:11:59 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id C4C49300982; Wed, 15 Jan 2020 14:11:57 -0300 (-03) Date: Wed, 15 Jan 2020 14:11:57 -0300 From: Alvaro Herrera To: Tom Lane Cc: Robert Haas , PostgreSQL Hackers Subject: Re: Rearranging ALTER TABLE to avoid multi-operations bugs Message-ID: <20200115171157.GA11146@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5877.1579040821@sss.pgh.pa.us> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Jan-14, Tom Lane wrote: > I wrote: > > [ fix-alter-table-order-of-operations-3.patch ] > > Rebased again, fixing a minor conflict with f595117e2. > > > I'd kind of like to get this cleared out of my queue soon. > > Does anyone intend to review it further? > > If I don't hear objections pretty darn quick, I'm going to > go ahead and push this. I didn't review in detail, but it seems good to me. I especially liked getting rid of the ProcessedConstraint code, and the additional test cases. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services