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 1i5BJ5-0006BB-9H for pgsql-hackers@arkaria.postgresql.org; Tue, 03 Sep 2019 16:05:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i5BJ4-0006II-6h for pgsql-hackers@arkaria.postgresql.org; Tue, 03 Sep 2019 16:05:22 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i5BJ3-0006I3-Ue for pgsql-hackers@lists.postgresql.org; Tue, 03 Sep 2019 16:05:21 +0000 Received: from mail-qt1-x842.google.com ([2607:f8b0:4864:20::842]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i5BJ1-0007dy-6T for pgsql-hackers@lists.postgresql.org; Tue, 03 Sep 2019 16:05:21 +0000 Received: by mail-qt1-x842.google.com with SMTP id r5so15312823qtd.0 for ; Tue, 03 Sep 2019 09:05:18 -0700 (PDT) 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=v/UzzwRyOa5PyPK6ocEyT5dsmH5B6hI3hVI6hT4RIlc=; b=xNlegK/dxRno3ZGUgkWkrgx2CKWNW49bmdoUo2RwEUpLwZNgtwKiXpe9/YECP0zxqT II8WdeGrtajSpRV+nY8UlEiJJKGNZr+sNw+zoEQJhpLBOIDxQGS/pjqszx89eWl0QWBt svWhqgJkJIofOV5P0La1q6Ec06RVfsPcnjZanTeCU6gO0QKd1D+bpy2K9vqotDsQ6QRb U7Se/D+7xubLR8Vf0A3tYP38orINIX/TS/dOYaIds3WIoe0LG4N0YnW00FzYojykoZPq Q+vscPtIqAGEs4Euf7qvapKy5m0Hv1hrXqkN3mploBjGS5Paq1zkAOZeVqckpKISD4tl Lvdg== 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=v/UzzwRyOa5PyPK6ocEyT5dsmH5B6hI3hVI6hT4RIlc=; b=ihc6gtKf0LXSEDaoJs5VQX9TCs2uJDyAT71GLN8iGEOl232k3mbFWkC2RMrCeqNPV7 HqOoUgRWf4wcPjRAwnbImoYj+Be4qImc2MaMVqgv1NroIEIUP54KcvCMQ2B2cHd/qhpL KK/V4b0zblSazPzjh4uVYPMHdSTf+IvFUfpFIPuTZEHEf47qGCS+cAbiZ8bUCV7ZTl1G I+R+rwYRuoD4j3W/621KrQYfsEEhtmidlG6cClG+3nmwBaPYMoHO35Sa4I/ttFrgzIbt l6hgbGV/EtVQYuOu7duHvp8+0cJHDVlKgVAlpofVfXD+xTiglHktpL6X8w7epsACgzNm e2jw== X-Gm-Message-State: APjAAAVFIrewrMcjAf0O39ue6H0q9Bl7EjrCpsBEgr6LE1wTvKO4Dk+U S2F6gf4RkOqqYEaJ+WcyUN0uNg== X-Google-Smtp-Source: APXvYqw2qSxiSfpekQ2IQvU8iUxeNcE7H4EoKEet5u/0Kc+sPSTylMB1c/m884vSZ8kG2Fy2hHZelw== X-Received: by 2002:ac8:1488:: with SMTP id l8mr35152891qtj.50.1567526717515; Tue, 03 Sep 2019 09:05:17 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id y207sm5021576qkb.41.2019.09.03.09.05.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2019 09:05:17 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 9E94B120BB0; Tue, 3 Sep 2019 12:04:57 -0400 (-04) Date: Tue, 3 Sep 2019 12:04:57 -0400 From: Alvaro Herrera To: Thomas Munro Cc: Tom Lane , movead li , PostgreSQL Hackers Subject: Re: Rearranging ALTER TABLE to avoid multi-operations bugs Message-ID: <20190903160457.GA15359@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Aug-01, Thomas Munro wrote: > With my hacker hat: Hmm. I haven't looked at the patch, but not > passing down the QueryEnvironment when recursing is probably my fault, > and folding all such things into a new mechanism that would avoid such > bugs in the future sounds like a reasonable approach, if potentially > complicated to back-patch. I'm hoping to come back and look at this > properly in a while. Thomas: Any further input on this? If I understand you correctly, you're not saying that there's anything wrong with Tom's patch, just that you would like to do some further hacking afterwards. Tom: CFbot says this patch doesn't apply anymore. Could you please rebase? Also: There's further input from Movead; his proposed test cases might be useful to add. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services