Re: [HACKERS] strange test in psql:startup.c

2015-09-03 Thread Robert Haas
On Wed, Aug 26, 2015 at 8:18 AM, Pavel Stehule wrote: > if (options.single_txn && options.action != ACT_FILE && > options.action == ACT_NOTHING) > { > fprintf(stderr, _("%s: -1 can only be used in > non-interactive mode\n"), pset.progname); > exit(EX

[HACKERS] strange test in psql:startup.c

2015-08-26 Thread Pavel Stehule
Hi if (options.single_txn && options.action != ACT_FILE && options.action == ACT_NOTHING) { fprintf(stderr, _("%s: -1 can only be used in non-interactive mode\n"), pset.progname); exit(EXIT_FAILURE); } the expression should be probably only?