Dashboard Configuration
The pg_hint_plan extension requires activation via the PlanetScale Dashboard before it can be used. It must be enabled through shared libraries and requires a database restart. To enable pg_hint_plan:Parameters
pg_hint_plan.enable_hint
- Type: Boolean
- Default:
true - Description: Enable/disable hint functionality.
pg_hint_plan.enable_hint_table
- Type: Boolean
- Default:
false - Description: Enable hint table functionality.
pg_hint_plan.parse_messages
- Type: Select
- Options: error, warning, notice, info, log, debug
- Default:
info - Description: Control parsing message output.
pg_hint_plan.debug_print
- Type: Select
- Options: off, on, detailed, verbose
- Default:
off - Description: Enable debug output.
pg_hint_plan.message_level
- Type: Select
- Options: error, warning, notice, info, log, debug
- Default:
info - Description: Set message verbosity level.
Usage
Unlike most PostgreSQL extensions,
pg_hint_plan does not require CREATE EXTENSION to function. Once enabled
through the dashboard, it’s automatically loaded and available for use. You only need to run CREATE EXTENSION if you
plan to use the hint table functionality (when pg_hint_plan.enable_hint_table is enabled).
