Sample Header Ad - 728x90

"connection failed" error for pg_cron extension

3 votes
2 answers
9982 views
Installed pg_cron and scheduled job, though there is connection error because job is not done and cron.job_run_details table shows connection failed error message. As doc says: > Important: Internally, pg_cron uses libpq to open a new connection to > the local database. It may be necessary to enable trust authentication > for connections coming from localhost in pg_hba.conf for the user > running the cron job. Alternatively, you can add the password to a > .pgpass file, which libpq will use when opening a connection. Created file .pgpass with needed parameters, but not sure how to "tell" to libpq that for this user, for this host and DB read this .pgpass file. Any help appreciated.
Asked by Oto Shavadze (575 rep)
Aug 11, 2021, 09:06 AM
Last activity: Dec 9, 2022, 12:19 PM