pg_dump/pg_restore exit status codes

From: PG Doc comments form <noreply(at)postgresql(dot)org>
To: pgsql-docs(at)lists(dot)postgresql(dot)org
Cc: jevelyn(at)panoramaed(dot)com
Subject: pg_dump/pg_restore exit status codes
Date: 2025-03-10 17:24:54
Message-ID: 174162749498.682.17125900991292491906@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

Browse pgsql-docs by date

  From Date Subject
Next Message PG Doc comments form 2025-03-11 00:47:36 3.3. Foreign Keys
Previous Message Erik Wienhold 2025-03-07 02:12:17 Re: Docs search does not work for the "@>" operator