Re: pg_upgrade: Improve invalid option handling
Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Masahiko Sawada <sawada.mshk@gmail.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2019-06-14T09:03:24Z
Lists: pgsql-hackers
On 2019-06-13 14:30, Masahiko Sawada wrote: > Why do we need to change pg_fatal() to fprintf() & exit()? It seems to > me that we can still use pg_fatal() here since we write the message to > stderr. It just makes the output more consistent with other tools, e.g., old: pg_upgrade: unrecognized option `--foo' Try "pg_upgrade --help" for more information. Failure, exiting new: pg_upgrade: unrecognized option `--foo' Try "pg_upgrade --help" for more information. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Commits
-
pg_upgrade: Improve error messages
- cd917ffb9a43 12.0 landed
-
pg_upgrade: Improve invalid option handling
- aba78ab4a950 12.0 landed