]> granicus.if.org Git - postgresql/commit
pg_upgrade: Improve invalid option handling
authorPeter Eisentraut <peter@eisentraut.org>
Wed, 19 Jun 2019 19:43:31 +0000 (21:43 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Wed, 19 Jun 2019 19:50:24 +0000 (21:50 +0200)
commitaba78ab4a9509e7ed92acefd707a99425568f49f
tree04762d26c81ac248c52a7f9e5c54fc456d0db808
parentdfd79e2d0e8f399785ca2f7c659b45fd620cba17
pg_upgrade: Improve invalid option handling

Currently, calling pg_upgrade with an invalid command-line option
aborts pg_upgrade but leaves a pg_upgrade_internal.log file lying
around.  Reorder things a bit so that that file is not created until
all the options have been parsed.

Discussion: https://www.postgresql.org/message-id/24c8bd05-aed1-6301-919d-8acbabdb8c24@2ndquadrant.com
src/bin/pg_upgrade/option.c