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 1sWFc1-00E4ZR-EQ for pgsql-bugs@arkaria.postgresql.org; Tue, 23 Jul 2024 13:31:29 +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 1sWFbz-00Dfpg-H5 for pgsql-bugs@arkaria.postgresql.org; Tue, 23 Jul 2024 13:31:27 +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 1sWFbz-00Dfob-0k for pgsql-bugs@lists.postgresql.org; Tue, 23 Jul 2024 13:31:27 +0000 Received: from mout-u-107.mailbox.org ([80.241.59.207]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sWFbs-0013vU-3c for pgsql-bugs@lists.postgresql.org; Tue, 23 Jul 2024 13:31:26 +0000 Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-107.mailbox.org (Postfix) with ESMTPS id 4WSyj05DlVz9skj; Tue, 23 Jul 2024 15:31:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ewie.name; s=MBO0001; t=1721741476; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Bj11J61prYH1AAAZp2A8awueJDPrgeUwpNA4GM0W2Ms=; b=m1/pB/QfomSNF32oRV936sWP7CEM20uE2Iwv9enF0j+Uks+riK2pHT6tyb37FHEXxFm3/g RNVg78m0IFKR3BbvcIVcpiGmKbucaY3RmJKmHz7slrs3PXm6K64oawRhpiMEyY521mPnEY Upmr0i+QujJQPcS/i5EvkOp6QYYuv1G9Lp5yBioZTvs8ivscljF9u5jd4bCxdxzQb3EOnU p/uwHhZkMPEKtmK0rzeE3W6Qk0rlcrX+pEdwY3EkFnbd3rZVS4ffN1T+UPuMho7ERKD1m8 rGZM6qdijwAEW7ou+2I0oaIMoBudETyGerPQBI8GDuLvGU11UuSlZCb+ps/8/A== Date: Tue, 23 Jul 2024 15:31:13 +0200 From: Erik Wienhold To: Diego Stammerjohann Cc: Francisco Olarte , pgsql-bugs@lists.postgresql.org Subject: Re: A generated column cannot be part of a partition key Message-ID: <5e0f61a3-30ba-4ba8-ab9b-e78e3fbf10e6@ewie.name> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2024-07-23 14:01 +0200, Diego Stammerjohann wrote: > So, the documentation should be update to something like this: > > "An expression based generated column cannot be part of a partition key." > > Sounds fair? I think that change is unnecessarily confusing since that page only talks about those generated columns. Note that pg17 will also document identity columns[1], right before that generated columns section. Not sure if generated != identity should be made explicit when the preceding section introduces identity columns. [1] https://www.postgresql.org/docs/17/ddl-identity-columns.html -- Erik