Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hF5Ep-0001YP-5c for pgsql-admin@arkaria.postgresql.org; Fri, 12 Apr 2019 23:05:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hF5En-0001Vi-Uh for pgsql-admin@arkaria.postgresql.org; Fri, 12 Apr 2019 23:05:37 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hF5En-0001Tk-Ht for pgsql-admin@lists.postgresql.org; Fri, 12 Apr 2019 23:05:37 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hF5El-0004LM-5N for pgsql-admin@postgresql.org; Fri, 12 Apr 2019 23:05:36 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x3CN5V5k008581; Fri, 12 Apr 2019 19:05:31 -0400 From: Tom Lane To: Ron cc: pgsql-admin Subject: Re: pg_dump using anything other than custom and directory In-reply-to: <93bf4376-6167-a89f-83c5-36aa0dadae2e@gmail.com> References: <93bf4376-6167-a89f-83c5-36aa0dadae2e@gmail.com> Comments: In-reply-to Ron message dated "Fri, 12 Apr 2019 15:10:26 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <8579.1555110331.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 12 Apr 2019 19:05:31 -0400 Message-ID: <8580.1555110331@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Ron writes: > In 2019 using supported versions of PostgreSQL, what practical use is th= ere = > to use the tar format, and -- other than migrating trivially sized datab= ases = > to other RDBMSs -- the plain format? The historical argument for the tar format is that you can get your data out of it with a standard Unix tool (tar, of course), rather than having to depend on the availability of pg_restore. Certainly there's room to argue about how important that really is, but I don't think the validity of the argument is much different than it was in 2001. You need to be able to get a plain-text dump if you want to edit the data or schema at all, which is a pretty common requirement. However, as long as you're willing to assume the availability of pg_restore, you can extract plain text from one of the other formats; so this point isn't a reason not to make your dump in one of the other formats to begin with. regards, tom lane