pgsql: Remove pgpid_t type, use pid_t instead

2022-10-22 Thread Peter Eisentraut
Remove pgpid_t type, use pid_t instead It's unclear why a separate type would be needed here. We use plain pid_t (or int) everywhere else. (The only relevant platform where pid_t is not int is 64-bit MinGW, where it is long long int. So defining pid_t as long (which is 32-bit on Windows), as wa

pgsql: psql: Fix exit status when query is canceled

2022-10-22 Thread Peter Eisentraut
psql: Fix exit status when query is canceled Because of a small thinko in 7844c9918a43b494adde3575891d217a37062378, psql -c would exit successfully when a query is canceled. Fix this so that it exits with a nonzero status, just like for all other errors. Branch -- REL_15_STABLE Details

pgsql: psql: Fix exit status when query is canceled

2022-10-22 Thread Peter Eisentraut
psql: Fix exit status when query is canceled Because of a small thinko in 7844c9918a43b494adde3575891d217a37062378, psql -c would exit successfully when a query is canceled. Fix this so that it exits with a nonzero status, just like for all other errors. Branch -- master Details --- htt