Skip site navigation (1) Skip section navigation (2)

Re: -X flag in pg_dump

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Dennis Bjorklund <db(at)zigo(dot)dhs(dot)org>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: -X flag in pg_dump
Date: 2006-01-26 14:02:56
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Dennis Bjorklund wrote:
> What use is the -X flag to pg_dump. The code say that if one add a setting 
> "feature" to -X then there should also be a flag "--feature". So we have 
> for example:
>   -X disable-triggers
> and 
>   --disable-triggers
> If all the -X flags come in a long form as well, then what use is the -X
> at all? Why would one want to use -X disable-triggers instead of
> --disable-triggers ?

The issue is that some operating systems do not support long options, so
-X option is really -X and an argument, while --option is a long option.

We have our own getopt.c library so I am unsure we really need have
cases that don't support long options anymore.

  Bruce Momjian                        |
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

In response to

pgsql-hackers by date

Next:From: William ZHANGDate: 2006-01-26 14:15:00
Subject: Re: debug_query_string and multiple statements
Previous:From: Ewa PapugaDate: 2006-01-26 13:47:15

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group