When attempting to create the pg_cron extension in VMware Tanzu for Postgres 3.0 (PostgreSQL 15.7), the operation fails with the following error:
ERROR: unrecognized configuration parameter "cron.database_name"
CONTEXT: PL/pgSQL function inline_code_block line 3 at IF
VMware Tanzu for Postgres 3.0
PostgreSQL 15.7
- The Tanzu Postgres 3.0 Operator fully manages PostgreSQL configuration and does not expose shared_preload_libraries for user customization.
- The pg_cron extension requires its library to be loaded at startup
shared_preload_libraries = 'pg_cron'
- Without this preload, the cron.* GUC parameters (like cron.database_name) are unrecognized, causing the CREATE EXTENSION command to fail.
- Consider to use an External Scheduler like CronJob.