Re: ecpglib use PQconnectdbParams - Mailing list pgsql-hackers

From Tom Lane
Subject Re: ecpglib use PQconnectdbParams
Date
Msg-id 17170.1328714380@sss.pgh.pa.us
Whole thread Raw
In response to Re: ecpglib use PQconnectdbParams  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
>          if (IsUnderPostmaster)
>              ereport(FATAL,
>                      (errcode(ERRCODE_SYNTAX_ERROR),
> -                 errmsg("invalid command-line arguments for server process"),
> +                 errmsg("invalid command-line arguments for server process: %s", argv[optind]),
>                errhint("Try \"%s --help\" for more information.", progname)));
>          else
>              ereport(FATAL,

+1 for that change, but please s/arguments/argument/ in the text.  Also,
what about the other branch of the "if" that's just out of sight here?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Progress on fast path sorting, btree index creation time
Next
From: Bruce Momjian
Date:
Subject: Re: Progress on fast path sorting, btree index creation time