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 1tWX6v-00HJUJ-TC for pgsql-hackers@arkaria.postgresql.org; Sat, 11 Jan 2025 08:44:50 +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 1tWX6t-007Ib8-M5 for pgsql-hackers@arkaria.postgresql.org; Sat, 11 Jan 2025 08:44:47 +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 1tWX6s-007Iau-U7 for pgsql-hackers@lists.postgresql.org; Sat, 11 Jan 2025 08:44:47 +0000 Received: from fhigh-b2-smtp.messagingengine.com ([202.12.124.153]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tWX6q-0010zq-1Y for pgsql-hackers@postgresql.org; Sat, 11 Jan 2025 08:44:45 +0000 Received: from phl-compute-09.internal (phl-compute-09.phl.internal [10.202.2.49]) by mailfhigh.stl.internal (Postfix) with ESMTP id E40192540131; Sat, 11 Jan 2025 03:44:42 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-09.internal (MEProxy); Sat, 11 Jan 2025 03:44:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1736585082; x=1736671482; bh=O 0NFh4TyeoLFVVnTQ01uyRerSNFe+z0UAcdozReFbCg=; b=LheyMykv+4COz8ffm Yb/U/3EKMZCZtxvFa657qsZ8X7jcR3aptCFHDx/8ZxQbbiZkaakbEVBZh935HYxq 78AWd28/r5zrvHlNZQOutN7VG869agOGlE8dL6dI/zBZO0dvTp8YTfSKlWEJLAj1 GD6Hhot8c0ca8hSmxcJ4PAah/yHWS/KBKe6dQEV1xsHuzav5nwqOuPsCF9P5yhwj BZdRO/Qy9rdF8nBeCfxx26m1gBsgDa+VGUdk85K20z83Z+KE63So8K3be4PzzO3D vCX4JBmqhnEi4utLzlTvWeRFkQ4qTpA0r0iHBN5sK6LjhE0VhCBUEvA57pamnf38 BwvMA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudegledguddvvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpeffhffvvefukfggtggugfgjsehtkeertddttdej necuhfhrohhmpeetlhhvrghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvh hhrdhnohdqihhprdhorhhgqeenucggtffrrghtthgvrhhnpedvkedtffduffdtffffheff hfejjefhgfeiueeukeejkeffgfdufffhudffffeuveenucffohhmrghinhepvghnthgvrh hprhhishgvuggsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehm rghilhhfrhhomheprghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrghdpnhgspg hrtghpthhtohepkedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoheprghnughrvgif seguuhhnshhlrghnvgdrnhgvthdprhgtphhtthhopeguihhlihhpsggrlhgruhhtsehgmh grihhlrdgtohhmpdhrtghpthhtohepmhgrhhhiiehruhhnsehgmhgrihhlrdgtohhmpdhr tghpthhtohepnhgrthhhrghnuggsohhsshgrrhhtsehgmhgrihhlrdgtohhmpdhrtghpth htohepmhgrghhnuhhssehhrghgrghnuggvrhdrnhgvthdprhgtphhtthhopehguhhilhhl rghumhgvsehlvghlrghrghgvrdhinhhfohdprhgtphhtthhopehpghhsqhhlqdhhrggtkh gvrhhssehpohhsthhgrhgvshhqlhdrohhrghdprhgtphhtthhopehtghhlsehsshhsrdhp ghhhrdhprgdruhhs X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 11 Jan 2025 03:44:41 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1736585079; bh=M1dAT3TE7sC/Srx+gy4w70iXLthAg9WBqYUya119u/8=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=hW9crkiufW2ZqTixS1zyQMkxLq0a6H6nqak1uAo+2kb6Ah5lDxLB3DYOII8q3blGB lEDxqfM697hvwcru62xq3hzc5m5uIXsflicYEGQOrRs1m/x8/gggE+tcfsMHLrfFrn Z2ltgjyKrqFOUo85J89p/5JXbk8Ho18cfeynO3/o6Y+xwMzzP76t/bxXlBIRCq5H5G cgWUjog6urOgyPvywu0i++BC6KhuDnd5+DQTgwfv4um+3Dvn/aXWx0ugfJzggDCn2t zk335TuJh7v+XVzzbLTRUCGHDpmZxTahPA/Z1Lxe3E1sNJWEndGeBki09zF+lulnKQ WIi8yAEWVaF2Q== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 81AAE307; Sat, 11 Jan 2025 09:44:39 +0100 (CET) Date: Sat, 11 Jan 2025 09:44:39 +0100 From: Alvaro Herrera To: Mahendra Singh Thalor Cc: Guillaume Lelarge , Nathan Bossart , Magnus Hagander , Tom Lane , Andrew Dunstan , PostgreSQL-development , Dilip Kumar Subject: Re: Non-text mode for pg_dumpall Message-ID: <202501110844.5ztsym4vbflm@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hmm, this patch adds a function connectDatabase() to pg_restore, but a function that's almost identical already exists in pg_dumpall. I suggest they should be unified. Maybe create a new file for connection management routines? (since this clearly doesn't fit common.c nor dumputils.c). -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "In Europe they call me Niklaus Wirth; in the US they call me Nickel's worth. That's because in Europe they call me by name, and in the US by value!"