pg_dump/pg_restore exit status codes - Mailing list pgsql-docs

From PG Doc comments form
Subject pg_dump/pg_restore exit status codes
Date
Msg-id 174162749498.682.17125900991292491906@wrigleys.postgresql.org
Whole thread Raw
List pgsql-docs
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/17/app-pgdump.html
Description:

From the documentation, it's unclear to me whether `pg_dump`/`pg_restore`
CLI commands ever use non-zero exit status codes, and if so when. My
assumption is that the status code is only zero when the command completes
successfully without any errors or warnings (regardless of whether
`--exit-on-error` was used), but I don't know if this is true. I also don't
know whether there are multiple non-zero exit status codes it may generate
in different scenarios. Clarification here would be very helpful! Thanks so
much.

pgsql-docs by date:

Previous
From: Erik Wienhold
Date:
Subject: Re: Docs search does not work for the "@>" operator
Next
From: PG Doc comments form
Date:
Subject: 3.3. Foreign Keys