pgsql: Add more detail to error message for invalid arguments for serve - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: Add more detail to error message for invalid arguments for serve
Date
Msg-id E1S6WIR-00036t-Bk@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Add more detail to error message for invalid arguments for server process

It now prints the argument that was at fault.

Also fix a small misbehavior where the error message issued by
getopt() would complain about a program named "--single", because
that's what argv[0] is in the server process.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/86947e666d39229558311d7b0be45608fd071ed8

Modified Files
--------------
src/backend/tcop/postgres.c |   31 ++++++++++++++++++++++---------
1 files changed, 22 insertions(+), 9 deletions(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: ecpg: Fix off-by-one error in memory copying
Next
From: Peter Eisentraut
Date:
Subject: pgsql: ecpg: Fix rare memory leaks