Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rz8rI-0024eR-0r for pgsql-bugs@arkaria.postgresql.org; Tue, 23 Apr 2024 05:38:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rz8rF-006ZEf-V0 for pgsql-bugs@arkaria.postgresql.org; Tue, 23 Apr 2024 05:38:21 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rz8rF-006ZEX-M3 for pgsql-bugs@lists.postgresql.org; Tue, 23 Apr 2024 05:38:21 +0000 Received: from fout6-smtp.messagingengine.com ([103.168.172.149]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rz8rD-002T5T-Aa for pgsql-bugs@lists.postgresql.org; Tue, 23 Apr 2024 05:38:21 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailfout.nyi.internal (Postfix) with ESMTP id BEC92138008B; Tue, 23 Apr 2024 01:38:16 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 23 Apr 2024 01:38:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1713850696; x=1713937096; bh=A3nWbUV+0A n+7IUoDj0vHRzvBDxDwNjE7a34k7q9D5s=; b=tVy2TwCYOtVie2GMdOi51JvN2q gh2pPSesynhSBW1jDKtGvnddnIr3Mc6rBu8Y/Ia/68esLxaE/R15nMhdjFsW5nLR tTPmGDEl1U0qGdOGhuR2+WboacWdpx1y69yY3aOOSP6IH/qWq0a0qvCfN7DgkpFF An5h+P1WkD6etHpRKJSO4DHJQaq1vDRjF+0XsY+RzaIho1HS2S+tl64oy/MWR10x X84UtT+vEdpOGxs/w6twKY/QegBinco+wgy3a1KVUZ4NJBEYpthgTvQoYCq2UvrZ XPqBntnlPJUi4HKOyOmz4U82Td2rFWQUE98WB/K4LoX7S8AC55uf4zC1wP2Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1713850696; x=1713937096; bh=A3nWbUV+0An+7IUoDj0vHRzvBDxD wNjE7a34k7q9D5s=; b=E/aZkPFCNAwpUYDMMPXK52CdBHsfAEfv3MQsM2HMNhyT tuEfD09jLgTmDA+X7+45K5deqSYeaT93XapxIjv6Cl8OnpfuWg4Uo5tZVOGorxGx k46D2xUjHez+HugPgiHP84x8Gk4NJKCQBDVUurdMRAuDY1OtNLwzsDj7ZnvtVLmx Iefb0+P/wrtTWG7/1QqqtIOV+mrVZjsAcl2IFLC8BpYuG3hMPhRfJzYIZAg5bxmL zZ9LwYQsHeX5MAxziT7qGJiE+7x0kLoi3rSC0CveawMW+NhzeKPAmSzels+65hcZ z6PfrjmY2JPjVTuflt7ywdbYB/ZCM/LZyYCYbmd3fQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudeltddguddttdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enfghrlhcuvffnffculdejtddmnecujfgurhepfffhvfevuffkfhggtggujgesghdtroer tddtvdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlse hprghquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpeffudelheeghfekfefgfedt hfekuddtvdfhudekgeegheeikefflefhleekheetfeenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdig hiii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 23 Apr 2024 01:38:14 -0400 (EDT) Date: Tue, 23 Apr 2024 14:37:56 +0900 From: Michael Paquier To: "David G. Johnston" Cc: Kyotaro Horiguchi , keith.fiske@crunchydata.com, ejberdecia@yahoo.com, david.rowley@2ndquadrant.com, amitlangote09@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15954: Unable to alter partitioned table to set logged Message-ID: References: <1703025078.5205270.1565786782053@mail.yahoo.com> <20190821134434.GA9383@paquier.xyz> <20190822.171439.14634665.horikyota.ntt@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="UYqjHh8GW8ejX2YV" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --UYqjHh8GW8ejX2YV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Apr 22, 2024 at 12:36:20PM -0700, David G. Johnston wrote: > There is little upside to preventing the existence of an unlogged > partitioned table at this point. I have just submitted a doc patch to deal > with that side of the equation. I would not object to that. However, now that we're five years into this problem, I'd rather treat that as a new entire feature than change the existing behavior in the back branches. Not changing unlogged property of a partitioned table on ALTER TABLE is of course no good. However, we also ignore the fact that a partitioned table is unlogged when we create its partitions, and there is a point in making partitions inherit this property from the parent. So, my take would be: - To switch the relpersistence of a partitioned table on ALTER TABLE, without touching any of its partitions. - New partitions should inherit the unlogged property of the parent. - pg_dump should not need tweaks to be able to cope with that, as loggedness is part of the CREATE queries. Compared to the recent experiences around tablespaces and table AMs, this should be less complicated with code paths for relations without storage in tablecmds.c. -- Michael --UYqjHh8GW8ejX2YV Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmYnSTQACgkQnvQgOdby QH0TZxAAlVbCxudVLyk0qQCspvE7xVnPj/wZGKOXpuDoAcDkVwHzQewiUTD24ag8 aaq2aovRCp6zRTnmCtNeRX7xi7N2Xie4u6JFx3tsHChdLAcK+B4/QPx7fgP9/sUk Y4MWUBt7PVacqxgEw5BwqviiyNqg81NZUPF7Juvu3Ce+jGrsjlJQIUudsUbSFoeN rYvyZFD2iU1tMjGnRcq46utmhJDwWF5zz6Pkgu6dr4nz7EsFqdpPaya08qBXj2Kx grp6Pjh6zTP3K6DP/RUweYe+R3vtOpom5RtNhBy1Z51mOWtCC8KOSgeYGSOKdZUK dT0jd9qQNDzVEduqFpvpOKRpqLdmLGdd3J6uoM2i3Y27tcU1hhe8NVO2ocpr8BsA 6m96Q+tmjnDrQDr3dnLBo45X6ANZ3nxsZaecSPNhTfVZVwgNUHiNfqVv4CZnIYu7 u+ii7s2NK3hdgkvXl7YyepuK4vdNMn0Gdv1fRAu7M1Ebkpc/mwdOedGkbjXxdmUt AxT/ZsfAYG15g5gYfnmH00nlyomtOjf3SC9fT8LVx6mE3Oq4gbAP8ESEKux0M3R/ Hgxu4DfoofQej99g+kRtU/yIj/d3xG9ddjk4Ym1YFNxVAL2KVcX656w0DbDXF3bA CJCQVCb4uqAKKG1/r/9Gv/1VTdAQGy37Rds1LGiMV9c6IV5dz10= =nTRz -----END PGP SIGNATURE----- --UYqjHh8GW8ejX2YV--