Re: pg_upgrade: allow multiple -o/-O options

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: pg_upgrade: allow multiple -o/-O options
Дата
Msg-id 20140821222637.GC17771@momjian.us
обсуждение исходный текст
Ответ на pg_upgrade: allow multiple -o/-O options  (Pavel Raiskup <praiskup@redhat.com>)
Ответы Re: pg_upgrade: allow multiple -o/-O options  (Pavel Raiskup <praiskup@redhat.com>)
Список pgsql-hackers
On Tue, Mar  4, 2014 at 04:52:56PM +0100, Pavel Raiskup wrote:
> Hello,
>
> RFE:  Consider that you want to run pg_upgrade via some script with some
> default '-o' option.  But then you also want to give the script's user a
> chance to specify the old-server's options according user's needs.
> Then something like the following is not possible:
>
>   $ cat script
>   ...
>   pg_upgrade ... -o 'sth' $PG_UPGRADE_OPT ...
>   ...
>
> I know that this problem is still script-able, but the fix should be
> innocent and it would simplify things.  Thanks for considering,

Attached is a patch that makes multiple -o options append their
arguments for pg_upgrade and pg_ctl, and documents this and the append
behavior of postmaster/postgres.  This covers all the -o behaviors.

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + Everyone has their own god. +

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: WIP Patch for GROUPING SETS phase 1
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: [GSoC2014] Patch ALTER TABLE ... SET LOGGED