F0000
Read PG 18 manual ↗config_file_error
- SQLSTATE
- F0000
- Condition name
- config_file_error
- Class
- Configuration File Error
- Source macro
- ERRCODE_CONFIG_FILE_ERROR
- Evidence
- Source path confirmed
English SQLSTATE atlas: authored explanations and source/runtime evidence are separate from the manual definitions. View source ↗
At a glance
F0000 is the configuration-file error condition, but its severity and recovery boundary depend on the owner. Fixed core paths include a recovery-target failure and OAuth HBA validation; the unaccent contrib dictionary has its own file-open and rule-parser paths.
Meaning
The recovery path emits FATAL when archive recovery ends before a configured target is reached. OAuth validation calls ereport(elevel): HBA parsing supplies the level, load_hba() logs parse errors while retaining the old rules on reload, and initial postmaster startup turns a failed HBA load into a separate FATAL that prevents startup. The unaccent loader reports an ERROR when it cannot open its rules file, while duplicate rules and malformed rule lines are WARNING conditions with this SQLSTATE.
These are configuration-owner-specific paths. A line number and file context belong to HBA parsing; %m belongs to the dictionary file-open operation; a recovery-target message has neither of those fields.
Messages
- FATAL, SQLSTATE
F0000:recovery ended before configured recovery target was reached. elevelselected by HBA loading, with SQLSTATEF0000:oauth_validator_libraries must be set for authentication method %s; contextline %d of configuration file "%s".elevelselected by HBA loading:invalid list syntax in parameter "%s".elevelselected by HBA loading:authentication method "oauth" requires argument "validator" to be set when oauth_validator_libraries contains multiple options; contextline %d of configuration file "%s".- ERROR, SQLSTATE
F0000:could not open unaccent file "%s": %m. - WARNING, SQLSTATE
F0000:duplicate source strings, first one will be used. - WARNING, SQLSTATE
F0000:invalid syntax: more than two strings in unaccent ruleorinvalid syntax: unfinished quoted string in unaccent rule.
The OAuth templates use ereport(elevel), so the source function alone does not turn every HBA event into ERROR or FATAL; the startup/reload caller determines the operational boundary.
Diagnosis
Keep the complete primary, detail, hint, context, file name, line number, subsystem, and phase. For recovery, inspect the configured target and available WAL/archive. For OAuth, inspect the HBA line and oauth_validator_libraries value; distinguish an empty list from list syntax and from a missing validator argument. For unaccent, check the resolved rules path, permissions, encoding, and rule format; a warning can leave the dictionary loaded with a first-rule-wins or skipped-line behavior.
Response
Fix the named configuration using its owning format and keep a known-good copy. A recovery-target FATAL or initial HBA-load FATAL ends startup, so there is no client transaction to roll back; correct the target/configuration and restart, then use a new connection. An HBA reload parse failure is logged and the old rules remain active, so repair the file and reload again rather than assuming the new rules took effect. An unaccent ERROR inside an explicit client transaction requires ROLLBACK or an existing savepoint before continuing; warning paths do not require rollback, but their skipped or duplicate rules should be reviewed before relying on the dictionary.
Versions
The locked catalogue records this condition from 7.4; fixed source coverage is PostgreSQL 18.6. No startup, reload, or dictionary failure was induced for this source-only page.
Sources
src/backend/access/transam/xlogrecovery.c#L1921-L1931
src/backend/libpq/auth-oauth.c#L813-L870
src/backend/libpq/hba.c#L2635-L2692
src/backend/postmaster/postmaster.c#L1327-L1338
contrib/unaccent/unaccent.c#L65-L109
contrib/unaccent/unaccent.c#L260-L271
The structured evidence record records the fixed message groups, caller-selected severity, and source/runtime boundary.
Source evidence
Evidence belongs to the frozen source and runtime versions listed here. It is not a runtime verification of the selected manual version.
F0000 is config_file_error in SQLSTATE Class F0.
Method: Read locked definition snapshot.
F0000 has distinct recovery FATAL, caller-selected OAuth HBA, unaccent ERROR, and unaccent WARNING paths; HBA reload keeps old rules while initial startup fails closed.
Method: Read complete source contexts and startup/reload guards.
Limits: Source confirmation is not natural runtime.
The locked catalogue records F0000 from 7.4; it does not prove the exact introduction rationale.
Method: Use locked catalogue boundary.
- src/backend/utils/errcodes.txt · REL_18_6 ·
724edf9bde9d356724ad384a2e196edc3c9f80f7 - src/backend/access/transam/xlogrecovery.c · REL_18_6 ·
724edf9bde9d356724ad384a2e196edc3c9f80f7 - src/backend/libpq/auth-oauth.c · REL_18_6 ·
724edf9bde9d356724ad384a2e196edc3c9f80f7 - src/backend/libpq/hba.c · REL_18_6 ·
724edf9bde9d356724ad384a2e196edc3c9f80f7 - src/backend/postmaster/postmaster.c · REL_18_6 ·
724edf9bde9d356724ad384a2e196edc3c9f80f7 - contrib/unaccent/unaccent.c · REL_18_6 ·
724edf9bde9d356724ad384a2e196edc3c9f80f7
Message templates
FATAL · message.0
Primary
recovery ended before configured recovery target was reached
caller-selected elevel · message.1
Primary
oauth_validator_libraries must be set for authentication method %s
Context
line %d of configuration file "%s"
caller-selected elevel · message.2
Primary
invalid list syntax in parameter "%s"
caller-selected elevel · message.3
Primary
authentication method "oauth" requires argument "validator" to be set when oauth_validator_libraries contains multiple options
Context
line %d of configuration file "%s"
ERROR · message.4
Primary
could not open unaccent file "%s": %m
WARNING · message.5
Primary
duplicate source strings, first one will be used
WARNING · message.6
Primary
invalid syntax: more than two strings in unaccent rule
WARNING · message.7
Primary
invalid syntax: unfinished quoted string in unaccent rule
Reproduction & repair cases
No reproduction case is attached to this condition.
Recorded runtime evidence
No runtime observation is attached to this entry.
Definition snapshot: english-manuals:8606cdbc776adb50cca49c75505… · English manual source