pg_hint_plan 1.8 requires PostgreSQL 18 - are you on that version? "Loading it with a LOAD command will activate it and of course you can load it globally by setting shared_preload_libraries in postgresql.conf." - did you load the extension with: LOAD 'pg_hint_plan'; ?