Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kT52z-000515-OQ for pgsql-bugs@arkaria.postgresql.org; Thu, 15 Oct 2020 15:20:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kT52y-0000gm-ID for pgsql-bugs@arkaria.postgresql.org; Thu, 15 Oct 2020 15:20:04 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kT52y-0000gf-CO for pgsql-bugs@lists.postgresql.org; Thu, 15 Oct 2020 15:20:04 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kT52w-0001bY-E5 for pgsql-bugs@lists.postgresql.org; Thu, 15 Oct 2020 15:20:03 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id BFB335C01B7; Thu, 15 Oct 2020 11:20:01 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 15 Oct 2020 11:20:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=G9LkW57pkSsif6JBf feDCP8sPwN9es4q6bUbqK7O00U=; b=gPcGR+/ng7duvKkg8tJPb9X+lI8y2rf1y oStg/f/9OFUt/UV6CjvM74+MHqPC6oOULdFMGb/j0AmO/HqKM9UWiRMbkxpV2zMJ U/oO4XYik23E51XhkCnJFmCIj8MSwqxlpTW3NUr7zBumUkRmdRnL/eC8XmW0fY0k ubpUp45U63Y3bu3oGE5hGrcAPSmF0Aj2l5EiqKqz51ZLB9eoo2v8PECk+01EAUJh pHGTBLXyOmXjx8e5ZOtUHvcd2HjRNwFQ9G3v2gTBV1RhVp0Z0QAsd2lSrDGERXPG aZAMd/9+DOJPL+T3YeLVq7mjUqPJXeOsZ7NmwS07k5R9AsYNM51Rw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrieefgdekiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkgggtuggjfgesthdtredttdervdenucfhrhhomheptehlvhgrrhho ucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgheqne cuggftrfgrthhtvghrnhepvefgleevgeeujeeghfegteeghfegheeifeehheelteetiedu ieeihffggfehffetnecukfhppeduledtrdelhedrudelrddugeeknecuvehluhhsthgvrh fuihiivgepudenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhhvghrrhgvsegrlhhv hhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Received: from perhan.alvh.no-ip.org (unknown [190.95.19.148]) by mail.messagingengine.com (Postfix) with ESMTPA id D75E13280064; Thu, 15 Oct 2020 11:20:00 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 097E22A14E9; Thu, 15 Oct 2020 12:19:59 -0300 (-03) Date: Thu, 15 Oct 2020 12:19:59 -0300 From: Alvaro Herrera To: Tomas Vondra Cc: Michael Paquier , Tom Lane , exclusion@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #16577: Segfault on altering a table located in a dropped tablespace Message-ID: <20201015151959.GA6823@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200908235553.7tbd6xjvnohv2xel@development> 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-Sep-09, Tomas Vondra wrote: > On Tue, Sep 08, 2020 at 06:37:29PM -0300, Alvaro Herrera wrote: > > On 2020-Sep-08, Michael Paquier wrote: > > > > > On Tue, Aug 11, 2020 at 04:04:07PM +0900, Michael Paquier wrote: > > > > Hmm. Creating a file for partitioned table would be a completely new > > > > thing as well. heap_create() has never created a file for partitioned > > > > tables since 10 so this could open to a new class of bugs. > > > > > > This thread has stalled for a couple of weeks now, and I would tend to > > > take the path where we'd basically revert 8725958 and ca41030. That's > > > too late for v13 to do anything about that. But not for 14. Any > > > opinions? > > > > Well, naturally I oppose this idea. > > Would it actually solve the issue? ISTM we'd still have to expect cases > with partitioned tables without storage, so presumably we'd have to do > something else ... It just dawned on me that a way to fix this is to use a pg_shdepend entry to protect the tablespace from being dropped.