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 1ufLC6-005u44-Aw for pgsql-hackers@arkaria.postgresql.org; Fri, 25 Jul 2025 16:22:51 +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 1ufLB6-002Sb7-UO for pgsql-hackers@arkaria.postgresql.org; Fri, 25 Jul 2025 16:21:49 +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 1ufLB6-002Saz-Df for pgsql-hackers@lists.postgresql.org; Fri, 25 Jul 2025 16:21:48 +0000 Received: from mail-pg1-x535.google.com ([2607:f8b0:4864:20::535]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1ufLB3-000nw8-0T for pgsql-hackers@lists.postgresql.org; Fri, 25 Jul 2025 16:21:48 +0000 Received: by mail-pg1-x535.google.com with SMTP id 41be03b00d2f7-af51596da56so1965528a12.0 for ; Fri, 25 Jul 2025 09:21:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; t=1753460503; x=1754065303; darn=lists.postgresql.org; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=9EeWejaHMYbxnn2E8+UKHaL5DC1U5SbJ4dvVVn7aOtE=; b=UgFj2ALBAAxn/jnJMT/igVpyxpQRM9QRzFsWgw0CBStQrQcKbuKyiLKA2oQsV7E22h KgKim7AUsTqHgKzaR+HDYopZTqoD7rwHdNRrmvyyNR40pJvWbpm/1+hM9SRsUC4psCaB vGbFiME4iXq9MGD9NHb+ghMYo/N/GhQigCdlE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753460503; x=1754065303; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9EeWejaHMYbxnn2E8+UKHaL5DC1U5SbJ4dvVVn7aOtE=; b=tASwcFWgOVDYc+bTw4A5kbkCv1g5v8F3qbJUB0mU4ueV+X9y4RG9Jn318SL9+utOzK 7tajIR8RewJGLnVRLHT+p8m99qdsBpoESDnoH75Q6WQY2WiPQ+w+AmAZxDBWFJKBTZVz u/OAU5AH6ALJpmMiIug7VwTA5LPs20yuDloMCT3ncpjW0I1b33/edZdRoxntWL5VtZxD BCCRrgnGN9/PzNzCqKwUqIVErI5CcZpmvEczOYsgnnHgUVeN+EptMLES4u+fjpHeur+s Q++3x4ZA7q/CUvzOxlZI8ddkX/GOj4mMRcZGkdX2LKN5HKng3xJ0cx9zUJ0Xp7uajiT/ TGYg== X-Forwarded-Encrypted: i=1; AJvYcCXXYzevuAsV5hKoJYpZK/afGCfv2DYMtLwef9J/evfKuBwdFXSnVPh3kLxH2GA+5nMSaGpXfkXeSlfwerog@lists.postgresql.org X-Gm-Message-State: AOJu0YxO3jPo2RRAYQnGcP/J+v7Fs/l9Vd1kl6hITOgucxbAY9ydKJWS 12YLh9Nwb1KK41gkaF+Shxx6MuqY+JZ7FLipm4lQQekCoCZgnK9XtOVROZmxhQ+iHg== X-Gm-Gg: ASbGncvfDP3vXgMH5yEGXJqNi93cruWmW95TwfTtRQhU0bDIXTbsWiXxGWXkIrahpuU 4vMI4zk/D6z6HnaX07kL3X2l8yyjvZVCwg3NObn26xUFytl2hS71ghJjlB2UOl1cRGkczwgzTd4 CpcwHAiIKkcGC7HSsaQtzKC8zeMk5DyLYVPGYjd7NhUr50/A0z9ytrtDJY9ykCi7xHREZXdKOY3 0u+u4VxTZB06mPoX1KYu9I4YKYAk2LZP/MqwDwNkZJ5qXFWiB/xWuszysUvohcIN8zECURo1C0c vL2avWgZ4jSQZlZ65hEQIx8pn7RA9CG8NI9s4qokFdGXZBO3gANSukteUY/jo+qEgearM2NxUwF 8tf3pPTHnS+sa+RjYR2/qFk1eG/Oz2Fw9JPPfpSjOFJ/vy8tbZ2E= X-Google-Smtp-Source: AGHT+IFVKp5QCfHnIxAfIphklLjj/rUwTylQ040YtyFNrgqWeC4BuEA9V4CNF0k0JqCwCDPp9roCGQ== X-Received: by 2002:a17:902:ccce:b0:234:c5c1:9b63 with SMTP id d9443c01a7336-23fb30ab826mr35632425ad.18.1753460503620; Fri, 25 Jul 2025 09:21:43 -0700 (PDT) Received: from google.com (c-73-15-160-255.hsd1.ca.comcast.net. [73.15.160.255]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-23fbe30f3a4sm945915ad.3.2025.07.25.09.21.42 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Jul 2025 09:21:43 -0700 (PDT) Date: Fri, 25 Jul 2025 09:21:41 -0700 From: Noah Misch To: Andrew Dunstan Cc: Mahendra Singh Thalor , =?iso-8859-1?Q?=C1lvaro?= Herrera , jian he , Srinath Reddy , pgsql-hackers@lists.postgresql.org Subject: Re: Non-text mode for pg_dumpall Message-ID: <20250725162141.6f.nmisch@google.com> References: <948154fe-0278-4f4c-8f5a-085e12f03163@dunslane.net> <20250708212819.09.nmisch@google.com> <20250716001957.c6.nmisch@google.com> <3f22a8bb-29e8-40cc-97a1-309181da2c13@dunslane.net> <20250722005339.ca.nmisch@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.2.12 (2023-09-09) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Jul 24, 2025 at 04:33:15PM -0400, Andrew Dunstan wrote: > On 2025-07-21 Mo 8:53 PM, Noah Misch wrote: > > I suspect this is going to end with a structured dump like we use on the > > pg_dump (per-database) side. It's not an accident that v17 pg_restore doesn't > > lex text files to do its job. pg_dumpall deals with a more-limited set of > > statements than pg_dump deals with, but they're not _that much_ more limited. > > I won't veto a lexing-based approach if it gets the behaviors right, but I > > don't have high hopes for it getting the behaviors right and staying that way. > > I have been talking offline with Mahendra about this. I agree that we would > be better off with a structured object for globals. But the thing that's > been striking me all afternoon as I have pondered it is that we should not > be designing such an animal at this stage of the cycle. Whatever we do we're > going to be stuck supporting, so I have very reluctantly come to the > conclusion that it would probably be better to back the feature out and have > another go for PG 19. That makes sense to me. It would be quite a sprint to get this done in time, and that wouldn't leave much room for additional testing and feedback before the final release. I agree with the reluctance and with the conclusion.