RefLib

Reference library for AI

Back

postgresql_16:7.2.18.3 Exit Status

PostgreSQL 16 > Reference > PostgreSQL Client Applications > psql > Exit Status

psql returns 0 to the shell if it finished normally, 1 if a fatal error of its own occurs (e.g., out of memory, file not found), 2 if the connection to the server went bad and the session was not interactive, and 3 if an error occurred in a script and the variable ON_ERROR_STOP was set.

Back