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 1sqeJA-00BWQx-RL for pgsql-bugs@arkaria.postgresql.org; Tue, 17 Sep 2024 19:56:21 +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 1sqeJA-00Fbhq-ES for pgsql-bugs@arkaria.postgresql.org; Tue, 17 Sep 2024 19:56:20 +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 1sqeJA-00FbfI-5n for pgsql-bugs@lists.postgresql.org; Tue, 17 Sep 2024 19:56:20 +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 1sqeJ7-001glL-AN for pgsql-bugs@lists.postgresql.org; Tue, 17 Sep 2024 19:56:18 +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 48HJuDuA1680624; Tue, 17 Sep 2024 15:56:13 -0400 From: Tom Lane To: pgsql-bugs@lists.postgresql.org cc: erwaman@gmail.com, Peter Eisentraut Subject: Re: BUG #18618: pg_upgrade from 14 to 15+ fails for unlogged table with identity column In-reply-to: <1337459.1726521069@sss.pgh.pa.us> References: <18618-d4eb26d669ed110a@postgresql.org> <1221229.1726507710@sss.pgh.pa.us> <1337459.1726521069@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Mon, 16 Sep 2024 17:11:09 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1680622.1726602973.1@sss.pgh.pa.us> Date: Tue, 17 Sep 2024 15:56:13 -0400 Message-ID: <1680623.1726602973@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I wrote: >> The only alternative I can see is to extend the ALTER TABLE ADD >> GENERATED syntax to allow correct specification of the sequence's >> LOGGED/UNLOGGED status to begin with. While cleaner, that would be >> a lot more work and probably result in compatibility problems for >> normal uses of pg_dump (where the output might get loaded into a >> server version that lacks the syntax extension). > So we have to do it like that, and it seems not that bad, especially > if we follow the lead of the SEQUENCE NAME option and don't bother > to document this stuff. (I don't think that's a great precedent, > but I didn't change it here.) Pushed with a bit of further polishing, including adding that missing documentation. regards, tom lane