HV00D
PostgreSQLERRORNotableForeign Data Wrapper ErrorHIGH confidence
fdw_invalid_option_name
What this means
An unrecognised option name was provided when creating or altering a foreign server, user mapping, or foreign table for a specific FDW.
Why it happens
- 1Option name is misspelled or does not exist for this FDW
- 2Option is valid for a different FDW but not the one in use
- 3FDW was upgraded and the option name changed
How to reproduce
CREATE SERVER, CREATE USER MAPPING, CREATE FOREIGN TABLE, or ALTER equivalents
trigger — this will error
trigger — this will error
CREATE SERVER myserver FOREIGN DATA WRAPPER postgres_fdw OPTIONS (timeout '5000');
expected output
ERROR: HV00D: fdw_invalid_option_name
Fix
Check valid options for the FDW
WHEN Unsure which option names are valid
Check valid options for the FDW
SELECT * FROM pg_options_to_table((SELECT srvoptions FROM pg_foreign_server WHERE srvname = 'myserver'));
Why this works
Use documented FDW option names; for postgres_fdw see the official docs
What not to do
✕ Do not guess option names
Each FDW has its own set of valid option names defined in its validator function
Sources
Official documentation ↗
https://www.postgresql.org/docs/current/errcodes-appendix.html
https://www.postgresql.org/docs/current/sql-createserver.html ↗Content generated with AI assistance and reviewed for accuracy. Found an error? hello@errcodes.dev