Re: pg_upgrade -u

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Ray Stell <stellr(at)vt(dot)edu>, pgsql-general(at)postgresql(dot)org
Subject: Re: pg_upgrade -u
Date: 2013-05-29 13:42:12
Message-ID: 51A605B4.1090903@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

On 5/21/13 2:41 PM, Bruce Momjian wrote:
> I have thought about this and there are potentially several options
> specified to pg_upgrade that could be passed into scripts:
>
> -O, --new-options=OPTIONS new cluster options to pass to the server
> -P, --new-port=NEWPORT new cluster port number (default 50432)
> -u, --user=NAME cluster superuser (default "root")
>
> However, if we pass these items into the scripts, we then force these
> values to be used, even if the user wants to use a different value. It
> is a balance between supplying defaults vs. requiring the user to supply
> or change the values used during the ugprade.
>
> At this point, I have favored _not_ supplying defaults in the script.
> Do you have an alternative argument in favor of supplying defaults?

You could put environment variable assignments at the top of the script,
so they are easy to change or remove. But it seems to me the values
should be in there somehow.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2013-05-29 13:44:00 Re: [GENERAL] pg_upgrade -u
Previous Message Ray Stell 2013-05-29 12:59:42 Re: [GENERAL] pg_upgrade -u

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2013-05-29 13:44:00 Re: [GENERAL] pg_upgrade -u
Previous Message Ray Stell 2013-05-29 12:59:42 Re: [GENERAL] pg_upgrade -u