Skip to main content

Command Palette

Search for a command to run...

Exception Handling

Published
•1 min read•View as Markdown

Exception Handling

The persistence module handles exceptions by using the Postgres error reporting infrastructure (ereport). An error message is recorded in the system log for each error condition. In addition, the error is reported to the envelope using Postgres’s built-in error reporting infrastructure.

The following exceptions are reported by this module –

Table 1 Exception Handling

Exception ConditionException CodeScenarioResulting Outcome
WAL write failureERRCODE_FDW_ERROROn any case the WAL write failsTransaction terminates
File IO error: write, open and so onERRCODE_IO_ERRORCheckpoint – Called on any file access errorFATAL – process exists
Out of MemoryERRCODE_INSUFFICIENT_RESOURCESCheckpoint – Local memory allocation failuresFATAL – process exists
Logic, DB errorsERRCODE_INTERNAL_ERRORCheckpoint: algorithm fails or failure to retrieve table data or indexes.FATAL – process exists

More from this blog

Untitled Publication

133 posts