Re: Non-text mode for pg_dumpall
Andrew Dunstan <andrew@dunslane.net>
From: Andrew Dunstan <andrew@dunslane.net>
To: Mahendra Singh Thalor <mahi6run@gmail.com>
Cc: Álvaro Herrera <alvherre@alvh.no-ip.org>, jian he <jian.universality@gmail.com>, Srinath Reddy <srinath2133@gmail.com>, pgsql-hackers@lists.postgresql.org
Date: 2025-04-15T18:51:48Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Add non-text output formats to pg_dumpall
- 763aaa06f034 19 (unreleased) landed
-
Improve pg_dump/pg_dumpall help synopses and terminology
- dec6643487bb 18.0 cited
-
Non text modes for pg_dumpall, correspondingly change pg_restore
- 1495eff7bdb0 18.0 landed
-
Doc: manually break lines in wide UUID examples.
- a6524105d20b 18.0 cited
On 2025-04-15 Tu 2:30 PM, Mahendra Singh Thalor wrote: > Hi Andrew, > I did some refactoring to find out dump file extensions(.dmp/.tar etc) > in pg_restore. With the attached patch, we will not try to find out > file extension with each database, rather we will find out before the > loop. > > Here, I am attaching a patch for the same. Please have a look over this. That doesn't look right at first glance. You shouldn't have to tell pg_restore what format to use, it should be able to intuit it from the dumps (and that's what the docs say it does). The saving here would be hardly measurable anyway - you would be in effect saving one or two stat calls per database. cheers andrew -- Andrew Dunstan EDB: https://www.enterprisedb.com