Re: -Wformat-zero-length - Mailing list pgsql-hackers

From Jaime Casanova
Subject Re: -Wformat-zero-length
Date
Msg-id CAJKUy5j6e68+Wf3Fc+ZhA=EFxTrO==Yn6yOktT9rENaT2VjrXQ@mail.gmail.com
Whole thread Raw
In response to Re: -Wformat-zero-length  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List pgsql-hackers
On Wed, Aug 8, 2012 at 4:29 PM, Alvaro Herrera <alvherre@2ndquadrant.com> wrote:
>
> I wonder if things would be facilitated by having a config file for
> pg_upgrade to specify binary and PGDATA paths instead of having awkward
> command line switches.  That way you could request the user to create
> such a file, then
>

i like this idea, when i have used pg_upgrade i have been running it
several times with --check until everything is ok and then the actual
upgrade... so i always create a shell script to run it, a config file
should be a good idea

>
> You could even have a mode on which pg_upgrade asks for the necessary
> information to create the config file.  For example
>
> pg_upgrade --create-config=/somewhere/pg_upgrade.conf
> Path to new binaries:  /usr/local/pg92
> Path to old binaries:  /usr/local/pg84
> Path to old data directory:  /srv/pgsql-84/data
> Path to new data directory:  /srv/pgsql-92/data
> Use link mode (y/N):  n
> ... using copy mode.
> [now run the checks and complain about missing binaries, etc]
>

even better

--
Jaime Casanova         www.2ndQuadrant.com
Professional PostgreSQL: Soporte 24x7 y capacitación


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: -Wformat-zero-length
Next
From: Tom Lane
Date:
Subject: Re: -Wformat-zero-length