Re: Changing pg_dump default file format - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Changing pg_dump default file format
Date
Msg-id 20131118202108.GC28149@momjian.us
Whole thread Raw
In response to Re: Changing pg_dump default file format  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: Changing pg_dump default file format  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
On Thu, Nov  7, 2013 at 02:40:17PM -0500, Peter Eisentraut wrote:
> On 11/7/13, 1:00 PM, Josh Berkus wrote:
> > If we wanted to change the defaults, I think it would be easier to
> > create a separate bin name (e.g. pg_backup) than to change the existing
> > parameters for pg_dump.
> 
> Note the following code in pg_dump.c:
> 
>     /* Set default options based on progname */
>     if (strcmp(progname, "pg_backup") == 0)
>         format = "c";

Wow, when was that added?  git blame says 2002:
 9f0ae0c8 (Tom Lane           2002-05-10 22:36:27 +0000   387)   /* Set default options based on progname */ 9f0ae0c8
(TomLane           2002-05-10 22:36:27 +0000   388)   if (strcmp(progname, "pg_backup") == 0) 9f0ae0c8 (Tom Lane
  2002-05-10 22:36:27 +0000   389)       format = "c";
 

However, pggit log 9f0ae0c82060e3dcd1fa7ac8bbe35a3f9a44dbba does not
show that line being added by the diff.

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + Everyone has their own god. +



pgsql-hackers by date:

Previous
From: Kevin Grittner
Date:
Subject: Re: CLUSTER FREEZE
Next
From: Alexander Korotkov
Date:
Subject: Re: GIN improvements part2: fast scan