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 1tDR2K-000fT1-Fi for pgsql-general@arkaria.postgresql.org; Tue, 19 Nov 2024 16:25:08 +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 1tDR2I-00ESD8-OA for pgsql-general@arkaria.postgresql.org; Tue, 19 Nov 2024 16:25:06 +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 1tDR2I-00ESCy-CI for pgsql-general@lists.postgresql.org; Tue, 19 Nov 2024 16:25:06 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tDR2F-002iuv-VA for pgsql-general@lists.postgresql.org; Tue, 19 Nov 2024 16:25:05 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 4AJGP29N3775605; Tue, 19 Nov 2024 11:25:02 -0500 From: Tom Lane To: Paul Foerster cc: pgsql-general list Subject: Re: PostgreSQL 15.9 Update: Partitioned tables with foreign key constraints In-reply-to: References: Comments: In-reply-to Paul Foerster message dated "Tue, 19 Nov 2024 17:11:22 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3775603.1732033502.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 19 Nov 2024 11:25:02 -0500 Message-ID: <3775604.1732033502@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Paul Foerster writes: > the PostgreSQL 15.9 release notes instruct to look out for especially de= tached partitions with foreign key constraints. I'm in the process of upda= ting our databases from 15.8 to 15.9 now and found a case where the select= statement returns a constraint. > The release notes say nothing about when to fix that using the generated= add or drop statements. Generally speaking, our release notes are addressed to someone who's already installed the update (or a later one). regards, tom lane