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 1sEbof-002Ums-MS for pgsql-general@arkaria.postgresql.org; Tue, 04 Jun 2024 21:35:39 +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 1sEbof-002iRT-1b for pgsql-general@arkaria.postgresql.org; Tue, 04 Jun 2024 21:35:37 +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 1sEboe-002iRL-KN for pgsql-general@lists.postgresql.org; Tue, 04 Jun 2024 21:35:36 +0000 Received: from mail-vk1-xa2a.google.com ([2607:f8b0:4864:20::a2a]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sEboc-003TpO-6P for pgsql-general@lists.postgresql.org; Tue, 04 Jun 2024 21:35:35 +0000 Received: by mail-vk1-xa2a.google.com with SMTP id 71dfb90a1353d-4eb236e27adso694367e0c.2 for ; Tue, 04 Jun 2024 14:35:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717536933; x=1718141733; darn=lists.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=6OzXFXtOyZBUOUivXYERv2zfIISzCTC2ixLQ5L1CGoQ=; b=iHHoU9Va+dMJSwZg4Asm3aJUg31x6nnw9Qz0nw5gTMQjiHTKd1OJZP7XAQCh7vsMD1 EQ4B6rfLIoId7EYOE0V5YFFKNtMhJrPBfHQ72DqHZx3GHffFMBo/PX8ciXxA+nDCc+AQ 0s4E3Zrct169aPnLxBMnU3hf+yYOtCGm1w7nvkjAcRkx8I7UcSeEX+0YSfKtyB6dZwDz JWYAcmjnl/PPyHKBbvo1qE7Fj/WUJZ2TIvrJNbiLPfwEwTQQE63zJXwk4osrp7QZRo3P gkhGu38tDvSZbc3igjazlDnVw8WsseWv8uYlC8bdfe2JyzCPv4WfjRvJFtk4cit+tQ9z vK9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717536933; x=1718141733; 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=6OzXFXtOyZBUOUivXYERv2zfIISzCTC2ixLQ5L1CGoQ=; b=cZmygDn43XdWjVDRefQpxuC/c1efFodm9Ts85fakphNEP2mdkrdvECiASkboReJIIU 1AiyiZw8LJEi5vqkKMNCQYabnoh7Rl+e8HGN781FXF742xXBFymNDiCdb2nYVW+D8NDK GOieMzJM5+ria0l1pQ4ekXTZ1M4hFZGy1G6o38j7moeKEHqXgqySiPvN4HKfY81xroMV gsQReIIzNTXXSfKo8F3CEoLjaTQViIOp03uqnRVedp82mJiD/DBtC0TI38Tzfb+H2PIn ESUSUSDSDqXWeXOnOFi/wA0YO3Rra2HZmSLOZEapZ2lFle/QKOBjjqT3suq6+NT2lwTt whjg== X-Forwarded-Encrypted: i=1; AJvYcCV/QqtkZ+xJyR40DQQVQQHPgsf/Z6KJfgjSotnF2iMMbFPWg9VmnzeT7mHxoB2JDW5uaaarDeRTwB1henqeRs9WhchWBibx6n095qfAMDmlb0fT X-Gm-Message-State: AOJu0YzC4eITeupZdpdF7dwuKvT3KhEmQKsy9W/U29Sh+mreXHppD5wz ZZdNZIIhphqtINPyvX0QDhc2mGj12OyM+IkNjS4/BB1zeVevCDGVfaQyqbFZS55NIRRNGOmHUW9 RFJyXCgDTxam73zNC9vSS9UOD1SM= X-Google-Smtp-Source: AGHT+IEUeE9//TQqy6bc1HPyV8joJWxO0w1G0eA9UMrtRFeot3nVZlq8d7abJ0rmw4sgnfcWdeWRvu0lc0VnhPIYiwc= X-Received: by 2002:a05:6122:4684:b0:4d4:2fbc:e61f with SMTP id 71dfb90a1353d-4eb3a4e6150mr1089890e0c.14.1717536932896; Tue, 04 Jun 2024 14:35:32 -0700 (PDT) MIME-Version: 1.0 References: <25e9749c-ff38-4832-9b26-386cac33b3d8@aklaver.com> <7005ac8c-2f83-4122-9172-04bca268f987@aklaver.com> <4b28e899-d802-43ce-b20b-655a9077f08f@gmail.com> In-Reply-To: From: Shaheed Haque Date: Tue, 4 Jun 2024 22:35:21 +0100 Message-ID: Subject: Re: Purpose of pg_dump tar archive format? To: Gavin Roy Cc: Ron Johnson , "pgsql-generallists.postgresql.org" Content-Type: multipart/alternative; boundary="000000000000c627cd061a173ad5" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000c627cd061a173ad5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 4 Jun 2024 at 20:47, Gavin Roy wrote: > > On Tue, Jun 4, 2024 at 3:15=E2=80=AFPM Ron Johnson > wrote: > >> >> But why tar instead of custom? That was part of my original question. >> > > I've found it pretty useful for programmatically accessing data in a dump > for large databases outside of the normal pg_dump/pg_restore workflow. Yo= u > don't have to seek through one large binary file to get to the data secti= on > to get at the data. > This is true for us too; specifically, tar, including with compression, is very convenient for both CLI and Python ecosystems. --000000000000c627cd061a173ad5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Tue, 4 Jun 2024 at 20:47, Gavin Ro= y <gavinr@aweber.com> wrote:=

On Tue, Jun 4, 2024 at 3:15=E2=80=AFPM Ron Johnson <<= a href=3D"mailto:ronljohnsonjr@gmail.com" target=3D"_blank">ronljohnsonjr@g= mail.com> wrote:

But why tar instead of custom? That was part of my original questi= on.

I've found it pr= etty useful for programmatically accessing data in a dump for large databas= es outside of the normal pg_dump/pg_restore workflow. You don't have to= seek through one large binary file to get to the data section to get at th= e data.

This is true for us too; = specifically, tar, including with compression, is very convenient for both = CLI and Python ecosystems.
--000000000000c627cd061a173ad5--