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 1u2vTe-007sHR-F3 for pgsql-hackers@arkaria.postgresql.org; Thu, 10 Apr 2025 17:14:10 +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 1u2vTc-00EwaS-SX for pgsql-hackers@arkaria.postgresql.org; Thu, 10 Apr 2025 17:14:09 +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 1u2vTc-00EwaK-Ii for pgsql-hackers@lists.postgresql.org; Thu, 10 Apr 2025 17:14:08 +0000 Received: from mail-qt1-x833.google.com ([2607:f8b0:4864:20::833]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1u2vTZ-0045sy-31 for pgsql-hackers@lists.postgresql.org; Thu, 10 Apr 2025 17:14:06 +0000 Received: by mail-qt1-x833.google.com with SMTP id d75a77b69052e-47664364628so11713281cf.1 for ; Thu, 10 Apr 2025 10:14:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1744305245; x=1744910045; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=uuk0vQD4fh7uq3H644ungpiO5ahuQLfty0dio0sdx6o=; b=O4dHLZnCEti47WwrDUjI7gZfKYTVZ2xCSk6ELqb5CNqtRFaQup3cFpPeSLdoV9ZJ8V m2Ci05GqbSWmYtcVe+ha0+mMJ/Pff20fkCrNOd7YuTKG7E0Onz+DyeG87tidu7yltOLp Xkr2kakl5zdxQmiAmpRktZ4iuAZVAg0p6eMVEqRJWFw8JZpXhvQPo60kLCrgZ2dKSQFP dXLvWBpTN7aguI7lHN/b1xvsQOwqfE/yWN9zSBb0okv4yvF7YBuMzzz/hu76BSh+kUfj PJn7YjFHPu7rtwg1k1C6cWs9B1qdFpVarfcjrBnY0iozXS7xub59dqinGKvKwnEwJexp XpPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744305245; x=1744910045; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uuk0vQD4fh7uq3H644ungpiO5ahuQLfty0dio0sdx6o=; b=PRI3Wd5sTvRrQGrDNbHYcewh3WThOfjRN+zvY9ivcNtDOLqeUzMZGEdeS5cbatkiaw 7lDsDKg4N/JcCMVKbCGuXYDZfPx8MKifMfsezkqMrn8OyuAd6be14nZzradrZqC0izuS 11DsOGUn6YNzMcOkkoyTOZu4ZtXzk/xiiQq3CcT3IdQeOx9DVD54RyJqKB1wRFBNF2r1 emriXLjGsQEfDFXlOUp6rpQCWobwSJ+lWH9I6Si8t7cP6FujBHMk3BQx/bu8pBLv/Agp x16WNC9RPehZT9qOCiIt+4l5aeevFk7AJqNGGBxXISbp1b0zXB71SBBLcPo1ViBbNK7T /JBw== X-Forwarded-Encrypted: i=1; AJvYcCU/4cfUuMJdV61kCcYEGZpjAyv4YAsYJbcPB+EEkY72H8DFXFPlAM9Z12mimlzyDgLT+vdz0PJNefYz9EMu@lists.postgresql.org X-Gm-Message-State: AOJu0YxAmRHc5SlK6jJUKyTdjacpkdpzzoPWTbwIYJJrrFlwKthXsq4z hQe9ID9FqFjXwStsKfrNqlK/L8l5cgZ+vGi5zmyS8owovSljnnO2ATcpUjMbzOHzkd+ymVgLPXN PB4Q74YT9dDZMYcQDtQaEdqSOCM4= X-Gm-Gg: ASbGncsfxaCbsjopx3oFEl/2nCx82pLxCBE7bjwlCjr4TIyA8Dq3xhmWPjrmhH/JNAC SdrFfTZrThZvUGQHyTz6pprTNqQHuE7UzJSeF1pSO+fDxmg2gf5ltKCw9atRaEsVU4gZfUBtiPa D4x9zwZ/uS/0eDpaSMKmrJX+U= X-Google-Smtp-Source: AGHT+IF5Igt72HAHAcG+yBVxj/8lW7cNMT5j3vXuZIPRtxOoRkDCqJ/ETPGi9sXn7IUqNKR5JR81gKPUCuyHoQilwf8= X-Received: by 2002:ac8:5955:0:b0:477:113e:1fb3 with SMTP id d75a77b69052e-4796ce1a179mr43287191cf.3.1744305245228; Thu, 10 Apr 2025 10:14:05 -0700 (PDT) MIME-Version: 1.0 References: <202503311812.vxg5b7rzfgf6@alvherre.pgsql> <616efe2c-3986-43cf-b88c-4435849acf9e@dunslane.net> <948154fe-0278-4f4c-8f5a-085e12f03163@dunslane.net> In-Reply-To: <948154fe-0278-4f4c-8f5a-085e12f03163@dunslane.net> From: Mahendra Singh Thalor Date: Thu, 10 Apr 2025 22:43:54 +0530 X-Gm-Features: ATxdqUEH-GtK0isn_wrkwKOHDdG-EUZtIGNgsmTHG1AwevhgP6qqhk2G-Hxg6LA Message-ID: Subject: Re: Non-text mode for pg_dumpall To: Andrew Dunstan Cc: =?UTF-8?Q?=C3=81lvaro_Herrera?= , jian he , Srinath Reddy , pgsql-hackers@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sat, 5 Apr 2025 at 01:41, Andrew Dunstan wrote: > > > On 2025-04-04 Fr 5:12 AM, Mahendra Singh Thalor wrote: > > On Fri, 4 Apr 2025 at 13:52, Mahendra Singh Thalor w= rote: > > On Fri, 4 Apr 2025 at 01:17, Andrew Dunstan wrote: > > On 2025-04-01 Tu 1:59 AM, Mahendra Singh Thalor wrote: > > On Mon, 31 Mar 2025 at 23:43, =C3=81lvaro Herrera wrote: > > Hi > > FWIW I don't think the on_exit_nicely business is in final shape just > yet. We're doing something super strange and novel about keeping track > of an array index, so that we can modify it later. Or something like > that, I think? That doesn't sound all that nice to me. Elsewhere it > was suggested that we need some way to keep track of the list of things > that need cleanup (a list of connections IIRC?) -- perhaps in a > thread-local variable or a global or something -- and we install the > cleanup function once, and that reads from the variable. The program > can add things to the list, or remove them, at will; and we don't need > to modify the cleanup function in any way. > > -- > =C3=81lvaro Herrera Breisgau, Deutschland =E2=80=94 https://www.= EnterpriseDB.com/ > > Thanks =C3=81lvaro for the feedback. > > I removed the old handling of on_exit_nicely_list from the last patch > set and added one simple function to just update the archive handle in > shutdown_info. (shutdown_info.AHX =3D AHX;) > > For first database, we will add entry into on_exit_nicely_list array > and for rest database, we will update only shutdown_info as we already > closed connection for previous database.With this fix, we will not > touch entry of on_exit_nicely_list for each database. > > Here, I am attaching updated patches. > > > OK, looks good. here's my latest. I'm currently working on tidying up > docco and comments. > > > cheers > > > andrew > > > > > -- > Andrew Dunstan > EDB: https://www.enterprisedb.com > > Thanks Andrew for the updated patches. > > Here, I am attaching a delta patch with some more TAP-test cases. > > Here, I am attaching an updated delta patch which has some more TAP > tests. Please include these tests also. This patch can be applied on > v20250403_0004* patch. > > > > Thanks. I have pushed these now with a few further small tweaks. > > > cheers > > > andrew > > -- > Andrew Dunstan > EDB: https://www.enterprisedb.com Thanks Andrew for committing this. --=20 Thanks and Regards Mahendra Singh Thalor EnterpriseDB: http://www.enterprisedb.com