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 1rzmSl-006gMZ-HY for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Apr 2024 23:55:43 +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 1rzmSj-001Eh5-N5 for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Apr 2024 23:55:41 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rzmSj-001Eee-Cr for pgsql-hackers@lists.postgresql.org; Wed, 24 Apr 2024 23:55:41 +0000 Received: from wfhigh2-smtp.messagingengine.com ([64.147.123.153]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rzmSh-004UyI-1V for pgsql-hackers@lists.postgresql.org; Wed, 24 Apr 2024 23:55:40 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailfhigh.west.internal (Postfix) with ESMTP id B15211800140; Wed, 24 Apr 2024 19:55:37 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Wed, 24 Apr 2024 19:55:38 -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=1714002937; x=1714089337; bh=MCvV2CvqRd mwoa4RNVE66vSGkGfEoBUslvWgsVKtYAs=; b=eNjJea5UW0stxTrJhder0mez1m 4mVNjhYHS/0UOF45LZTYsfwbtlEimQ4Z9WmfmM4Ikq+qGTrkrbPEy77xZrNMfaYN P3F0pOuxSHDYaYazBhUEonXEjYboQigYhJ9FxpM8kN4+kR24sSzCNZpdnaAsnJuI +mgXAhUIBllX588g7wzTugdOl/ssA2lOv40JimPQo/BAEUexqtVd/QvBnLu2tRXn KWLBgan8z6tyh5F8LW1PHMlQq0FKRh9eiFESaSpgQZqIPvkh7UcrKfKeyIb8+7VI bNWaIS+JtVc83ED+FqxjCEZg9zqNsoZs9CDC56+zvLnLwgaWLiEPMJ8mHrhA== 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=1714002937; x=1714089337; bh=MCvV2CvqRdmwoa4RNVE66vSGkGfE oBUslvWgsVKtYAs=; b=QB9e7vmmSuE/IbCqHKwY0Sqn1ukWr59/yOGr5GpQ98hw Y3+RXgEXiDzBoejAu+F8o+RNBfi817C4JBqjOHrdP3HtZPIwWYH8PwiJv+p65qMr 9UbQwstdAug5aLNmApQppt8ETSNJAD3SDayi19iDEvQuF7w8UejlFzISz1+q9A0a fR4GjPJP9FQnRD2+/rFB2/myLK88GI0aIz+fCfyUfeVuFvVT3Amoj7NVl9LDl256 0FqWw27m6d2efqnNu+93H2+ATNPTo0y0Na/W5OtXGMAQmVKetcSJeeH8laUIb/ZX tW+gg5+8V/GzEyK8ktsVNfvdUdcliz3LjmF1p8aGog== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudeliedgvdelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeg geegfffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 24 Apr 2024 19:55:35 -0400 (EDT) Date: Thu, 25 Apr 2024 08:55:27 +0900 From: Michael Paquier To: "David G. Johnston" Cc: Nathan Bossart , Postgres hackers Subject: Re: Partitioned tables and [un]loggedness Message-ID: References: <20240424202640.GB861150@nathanxps13> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="xrRZMLeUewiKxM2l" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --xrRZMLeUewiKxM2l Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 24, 2024 at 04:43:58PM -0700, David G. Johnston wrote: > My point is that if you feel that treating logged as a copy-able property > is OK then doing the following should also just work: >=20 > postgres=3D# create temp table parentt ( id integer ) partition by range = (id); > CREATE TABLE > postgres=3D# create table child10t partition of parentt for values from (= 0) > to (9); > ERROR: cannot create a permanent relation as partition of temporary > relation "parentt" >=20 > i.e., child10t should be created as a temporary partition under parentt. Ah, indeed, I've missed your point here. Lifting the error and inheriting temporary in this case would make sense. -- Michael --xrRZMLeUewiKxM2l Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmYpm+8ACgkQnvQgOdby QH2CFQ//bGvN0wMyhb2BSWdNB+kOJRAIRJt18ke0yznKcqLQ9zlmwllbpMvaiIvA pISAl0J7pRN29bzE62r0e2v5R21kN/KKxnzfoY2MyMGU9YLMJWGJ9hA5cGG6lzfG UW1JFxNNKYwWl2CAVd/hyR98KPCiSvt7XkGWCfb7wMchPaAYgDoLUHVDmt1zyf1a 5DatBA21hrgbcLLM/aF+AQFFbdkdm6S+pTmdqWOic8hTnJ+XDpYUHcuWBcdpgig9 9wK+H2t6HDmEveRmQ7SQ60Adp/N+Tri5NQW+JAxPUL2rZ7OJY+wTkqfU8g395Gsb zZhUtpiUo9l0bdJssLut5yCpmwPwDvuCx5zlNOZabCSyZa9Cfef2RhApdXGzU2du m6GhaK3SC3BuH7eFbfDhxW5/VrpcOgYZ0WMqZOvmB7STBgg1LoRY7BVaSHuh2JZk VmLdyaAHk0VIyytHhaZeznsKcmdZ4kt+NJzGZHxThrvkDLFsAWwHhyTWLOwrPYx8 S3e5C5esIh91JLHLcusf6AHSBQ7sX7xzVj7LmMdWe2TnXege9PeWxa915vI0t9au DO0VXHGph8FQohx8l050WqSxlZNchHXPpdnwfU2k1yxOS3kNGltkGQpeUBl8MJSw qGIJjQn388wy1R6rTWkXDOr5UKp4bJA/dWsF6Z3s9POGrbzpDa8= =L9Wh -----END PGP SIGNATURE----- --xrRZMLeUewiKxM2l--