Обсуждение: Missing "-i / --ignore-version" in pg_dump help

Поиск
Список
Период
Сортировка

Missing "-i / --ignore-version" in pg_dump help

От
Fabrízio de Royes Mello
Дата:
Hi all,

There are some reason to "-i, --ignore-version" option doesn't appear in pg_dump help?

Regards,

--
Fabrízio de Royes Mello
Consultoria/Coaching PostgreSQL

Re: Missing "-i / --ignore-version" in pg_dump help

От
Fujii Masao
Дата:
On Fri, May 22, 2015 at 8:59 PM, Fabrízio de Royes Mello
<fabriziomello@gmail.com> wrote:
> Hi all,
>
> There are some reason to "-i, --ignore-version" option doesn't appear in
> pg_dump help?

Because it's obsolete option, I think.

Regards,

--
Fujii Masao



Re: Missing "-i / --ignore-version" in pg_dump help

От
Fabrízio de Royes Mello
Дата:

On Fri, May 22, 2015 at 9:20 AM, Fujii Masao <masao.fujii@gmail.com> wrote:
>
> On Fri, May 22, 2015 at 8:59 PM, Fabrízio de Royes Mello
> <fabriziomello@gmail.com> wrote:
> > Hi all,
> >
> > There are some reason to "-i, --ignore-version" option doesn't appear in
> > pg_dump help?
>
> Because it's obsolete option, I think.
>

You're correct... looking at the source code:

  421             case 'i':
  422                 /* ignored, deprecated option */
  423                 break;

Thanks!

--
Fabrízio de Royes Mello
Consultoria/Coaching PostgreSQL
>> Timbira: http://www.timbira.com.br
>> Blog: http://fabriziomello.github.io
>> Linkedin: http://br.linkedin.com/in/fabriziomello
>> Twitter: http://twitter.com/fabriziomello
>> Github: http://github.com/fabriziomello

Re: Missing "-i / --ignore-version" in pg_dump help

От
Tom Lane
Дата:
Fujii Masao <masao.fujii@gmail.com> writes:
> On Fri, May 22, 2015 at 8:59 PM, Fabrízio de Royes Mello
> <fabriziomello@gmail.com> wrote:
>> There are some reason to "-i, --ignore-version" option doesn't appear in
>> pg_dump help?

> Because it's obsolete option, I think.

Yeah, see commit c22ed3d523782c43836c163c16fa5a7bb3912826.

Considering we shipped that in 8.4, maybe it's time to remove all
trace of those switches.  We'd still have to wait a couple releases
before it'd be safe to use -i for something else, but it'd be a start.
        regards, tom lane



Re: Missing "-i / --ignore-version" in pg_dump help

От
Fujii Masao
Дата:
On Fri, May 22, 2015 at 11:01 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Fujii Masao <masao.fujii@gmail.com> writes:
>> On Fri, May 22, 2015 at 8:59 PM, Fabrízio de Royes Mello
>> <fabriziomello@gmail.com> wrote:
>>> There are some reason to "-i, --ignore-version" option doesn't appear in
>>> pg_dump help?
>
>> Because it's obsolete option, I think.
>
> Yeah, see commit c22ed3d523782c43836c163c16fa5a7bb3912826.
>
> Considering we shipped that in 8.4, maybe it's time to remove all
> trace of those switches.  We'd still have to wait a couple releases
> before it'd be safe to use -i for something else, but it'd be a start.

+1

Barring any objection, I will apply the attached patch and
remove that obsolete option..

Regards,

--
Fujii Masao

Вложения

Re: Missing "-i / --ignore-version" in pg_dump help

От
Fujii Masao
Дата:
On Wed, Jun 3, 2015 at 1:53 AM, Fujii Masao <masao.fujii@gmail.com> wrote:
> On Fri, May 22, 2015 at 11:01 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Fujii Masao <masao.fujii@gmail.com> writes:
>>> On Fri, May 22, 2015 at 8:59 PM, Fabrízio de Royes Mello
>>> <fabriziomello@gmail.com> wrote:
>>>> There are some reason to "-i, --ignore-version" option doesn't appear in
>>>> pg_dump help?
>>
>>> Because it's obsolete option, I think.
>>
>> Yeah, see commit c22ed3d523782c43836c163c16fa5a7bb3912826.
>>
>> Considering we shipped that in 8.4, maybe it's time to remove all
>> trace of those switches.  We'd still have to wait a couple releases
>> before it'd be safe to use -i for something else, but it'd be a start.
>
> +1
>
> Barring any objection, I will apply the attached patch and
> remove that obsolete option..

Applied.

Regards,


--
Fujii Masao