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 1tWcdC-000Oed-E1 for pgsql-hackers@arkaria.postgresql.org; Sat, 11 Jan 2025 14:38:30 +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 1tWcdA-009ovg-GE for pgsql-hackers@arkaria.postgresql.org; Sat, 11 Jan 2025 14:38:28 +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 1tWcdA-009ovY-6V for pgsql-hackers@lists.postgresql.org; Sat, 11 Jan 2025 14:38:27 +0000 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tWcd6-0015OV-2i for pgsql-hackers@postgresql.org; Sat, 11 Jan 2025 14:38:27 +0000 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-4368a293339so33717475e9.3 for ; Sat, 11 Jan 2025 06:38:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736606303; x=1737211103; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=gWEYm/PijvPXkydH4/+q+nfXFsNPRXBvEQ2hdv3Fqgo=; b=nKJBi+e3sQLDXFhbtT4AuqQUkLiodzQOo45CvzcRw2ckSOMMkYpqiH9fMA2aBj/7VC aq73cDbDmMQa0J90Zo+ESoWo6+ngdMMQBvUAX6mnxcPqa/mR7J+x89TvK5ytf22W075X PYP5GYf0jNqnpRa7tC9cByhhjSqkLlzahJffoNLdTz24uX3+lQxpdyh0REsX1APq77e/ R8dRXrwWRyHfFxfMfJcqH05lTUrg3mSVQrMOMuYYyXKz5uBy3cVf0LKlJ/GxsHVpBOMw 2yq7UF9U5knuJ6l8C/GH0vSqhP8XHIDdJcBoyNHbRXJwRWNHoJYoOGtOG9rekDEErXNu 2qoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736606303; x=1737211103; h=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=gWEYm/PijvPXkydH4/+q+nfXFsNPRXBvEQ2hdv3Fqgo=; b=JyyZEbx5PKZLG8zNfgVBgsUijhA3UAy9Kaj0VDnwv40fjz82bDcqYna87o8VTexKD3 eBEq2qIDAPEpCLPAOhzfnMKcv+8m0wjgbpJ8kzxZhfcwyBkZpijVLag1UhdsfjXwfqwV a8viuCg2xVXz/hmncGheFmA0afwB/cIZqpw6WmwrP+nZvI1KmP2NRqmYcIQvqa3dMisM jW4zYDAquT++TwpCoKN+2JA3lQslTfcgeCgDcugCeEAmwZW1nm/HUOA/LQYltiPBsM3T 0RTfJJBUeF3uMVYneWEp4yl+dB8O6weq23uB6PmhuEOSl6SXYuk3qUd4R7mu2ikn85yX 03/g== X-Forwarded-Encrypted: i=1; AJvYcCUJnuHY8/2VIWm3IvYQCxUzsjflUvsDt0MTJ3dNuKfb6/Luy8m8T4ywzASwVPDMAuY/sTMfO4WYAZA1bt3R@postgresql.org X-Gm-Message-State: AOJu0YwOefPSV9uyUYw/F867f+Wvrt39rh36YDSGzBwrwOCijwxpH3yq lDqaXZLqtd8Hk3I57sxiChpJz/Trz5edysxNFbpG/pFZP++O06LgtXw8gYJLfEBPBoQ15ia8xrm 0j64zbI/tsRTW0ryZrjFUzeoFK4Q= X-Gm-Gg: ASbGncsMHvVM6DSJYxCOr0vuiy1DR61Y1cD1h6er7yhE3ZCdtROT8KmKEOpmY7xHzDT P6yZ7UBN/HztFU5g8cTC5TiR3wJxamjnd8/6oxlqZjum6TXBPf8UONzppEha9g1bdkwpHPooD X-Google-Smtp-Source: AGHT+IEa3Wd0vOf6mqt9KSD+TYJ9BKHNFi0Hw07gmtrg0vzZCZdDlpP2giLCN2augGnsle9FxvrchFBVwz8RxU3gLDQ= X-Received: by 2002:a05:600c:3b88:b0:435:192:63fb with SMTP id 5b1f17b1804b1-436e2686662mr128874575e9.3.1736606303364; Sat, 11 Jan 2025 06:38:23 -0800 (PST) MIME-Version: 1.0 References: <202501110844.5ztsym4vbflm@alvherre.pgsql> In-Reply-To: <202501110844.5ztsym4vbflm@alvherre.pgsql> From: Mahendra Singh Thalor Date: Sat, 11 Jan 2025 20:08:12 +0530 X-Gm-Features: AbW1kvb0N59A3Rc6rdZQuiYeI8GF9QoUyhWF9lS-AEMSD5B--Z6CyML3JbzrSsU Message-ID: Subject: Re: Non-text mode for pg_dumpall To: Alvaro Herrera Cc: Guillaume Lelarge , Nathan Bossart , Magnus Hagander , Tom Lane , Andrew Dunstan , PostgreSQL-development , Dilip Kumar Content-Type: multipart/alternative; boundary="000000000000d3af4b062b6f29b8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000d3af4b062b6f29b8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks Alvaro for quick feedback. On Sat, 11 Jan 2025 at 2:14=E2=80=AFPM, Alvaro Herrera wrote: > Hmm, this patch adds a function connectDatabase() to pg_restore, but a > function that's almost identical already exists in pg_dumpall. Yes, you are right. Both functions are same as I copied this function from pg_dumpall.c. > 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). Sure. I will create a new file and I will move these common functions into that. Thanks and regards Mahendra Singh Thalor https://www.EnterpriseDB.com/ > > > -- > =C3=81lvaro Herrera 48=C2=B001'N 7=C2=B057'E =E2=80=94 > 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!" > --000000000000d3af4b062b6f29b8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks Alvaro for quick feedback.
=
On Sat, 11 Jan 2025 at 2:14=E2=80=AFPM, Alvaro H= errera <alvherre@alvh.no-ip.o= rg> wrote:
Hmm,= this patch adds a function connectDatabase() to pg_restore, but a
function that's almost identical already exists in pg_dumpall. =C2=A0

Yes, you are right= . Both functions are same as I copied this function from pg_dumpall.c.

suggest they should be unified.=C2=A0 Maybe create a new file for connectio= n
management routines? (since this clearly doesn't fit common.c nor
dumputils.c).

Sur= e. I will create a new file and I will move these common functions into tha= t.

Thanks and=C2=A0regar= ds
Mahendra Singh Thalor



--
=C3=81lvaro Herrera=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A04= 8=C2=B001'N 7=C2=B057'E=C2=A0 =E2=80=94=C2=A0
https://www.Enter= priseDB.com/
"In Europe they call me Niklaus Wirth; in the US they call me Nickel&#= 39;s worth.
=C2=A0That's because in Europe they call me by name, and in the US by v= alue!"
--000000000000d3af4b062b6f29b8--