public inbox for [email protected]  
help / color / mirror / Atom feed
Purpose of pg_dump tar archive format?
3+ messages / 3 participants
[nested] [flat]

* Purpose of pg_dump tar archive format?
@ 2024-06-04 12:13  Ron Johnson <[email protected]>
  0 siblings, 2 replies; 3+ messages in thread

From: Ron Johnson @ 2024-06-04 12:13 UTC (permalink / raw)
  To: pgsql-general

It doesn't support compression nor restore reordering like the custom
format, so I'm having trouble seeing why it still exists (at least without
a doc warning that it's obsolete).


^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Purpose of pg_dump tar archive format?
@ 2024-06-04 13:48  Erik Wienhold <[email protected]>
  parent: Ron Johnson <[email protected]>
  1 sibling, 0 replies; 3+ messages in thread

From: Erik Wienhold @ 2024-06-04 13:48 UTC (permalink / raw)
  To: Ron Johnson <[email protected]>; +Cc: pgsql-general

On 2024-06-04 14:13 +0200, Ron Johnson wrote:
> It doesn't support compression nor restore reordering like the custom
> format, so I'm having trouble seeing why it still exists (at least without
> a doc warning that it's obsolete).

Maybe because of this:

> *	The tar format also includes a 'restore.sql' script which is there for
> *	the benefit of humans. This script is never used by pg_restore.

I've never used that restore.sql, so I can't say how useful it is,
especially since it requires editing $$PATH$$.  Should be mentioned in
the docs if that file is still relevant.

-- 
Erik






^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Purpose of pg_dump tar archive format?
@ 2024-06-04 14:43  Adrian Klaver <[email protected]>
  parent: Ron Johnson <[email protected]>
  1 sibling, 0 replies; 3+ messages in thread

From: Adrian Klaver @ 2024-06-04 14:43 UTC (permalink / raw)
  To: Ron Johnson <[email protected]>; pgsql-general

On 6/4/24 05:13, Ron Johnson wrote:
> It doesn't support compression nor restore reordering like the custom 
> format, so I'm having trouble seeing why it still exists (at least 
> without a doc warning that it's obsolete).

pg_dump -d test -U postgres -Ft  | gzip --stdout > test.tgz

-- 
Adrian Klaver
[email protected]







^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2024-06-04 14:43 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-06-04 12:13 Purpose of pg_dump tar archive format? Ron Johnson <[email protected]>
2024-06-04 13:48 ` Erik Wienhold <[email protected]>
2024-06-04 14:43 ` Adrian Klaver <[email protected]>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox