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.98.2) (envelope-from ) id 1xEToU-000000017gz-2O8c for pgsql-bugs@arkaria.postgresql.org; Wed, 07 Oct 2026 15:44:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1xEToT-00000007NBZ-2UoA for pgsql-bugs@arkaria.postgresql.org; Wed, 07 Oct 2026 15:44:13 +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.98.2) (envelope-from ) id 1xEToT-00000007NBR-1RxN for pgsql-bugs@lists.postgresql.org; Wed, 07 Oct 2026 15:44:13 +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.98.2) (envelope-from ) id 1xEToR-00000000qLJ-2znM for pgsql-bugs@lists.postgresql.org; Wed, 07 Oct 2026 15:44:12 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.18.1/8.18.1) with ESMTP id 697Fi6Zt2285767; Wed, 7 Oct 2026 11:44:06 -0400 From: Tom Lane To: Laurenz Albe cc: kehan5800@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #19747: pg_dump does not pin array_nulls, so restore mangles NULL array elements In-reply-to: <0d93fce2149eb3512ce665f2706e25a410751c95.camel@cybertec.at> References: <19747-69b01e7fc190cd58@postgresql.org> <1201948.1791236086@sss.pgh.pa.us> <1503342.1791317207@sss.pgh.pa.us> <0d93fce2149eb3512ce665f2706e25a410751c95.camel@cybertec.at> Comments: In-reply-to Laurenz Albe message dated "Wed, 07 Oct 2026 08:54:34 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2285765.1791387846.1@sss.pgh.pa.us> Date: Wed, 07 Oct 2026 11:44:06 -0400 Message-ID: <2285766.1791387846@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Laurenz Albe writes: > On Tue, 2026-10-06 at 16:06 -0400, Tom Lane wrote: >> Concretely, about like this. (BTW, another argument for doing >> this rather than fixing pg_dump is that there are a ton of other >> applications that will likely misbehave if array_nulls is turned >> on underneath them.) > +1 > I have never seen this used in the field. One less potential headache! Pushed, thanks for looking at it! regards, tom lane