From 288ca4d89919b221f0e4d43bb9d9045145f06d47 Mon Sep 17 00:00:00 2001 From: Marco Slot Date: Mon, 19 Sep 2016 18:37:16 +0200 Subject: [PATCH] Update .pgpass comment in readme. Fixes #5 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9bc7a00..cef1a7b 100644 --- a/README.md +++ b/README.md @@ -71,11 +71,11 @@ After restarting PostgreSQL, you can create the pg_cron functions and metadata t CREATE EXTENSION pg_cron; ``` -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](https://www.postgresql.org/docs/current/static/auth-pg-hba-conf.html). Alternatively, you can create a [.pgpass file](https://www.postgresql.org/docs/current/static/libpq-pgpass.html) in the working directory of the database server. +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](https://www.postgresql.org/docs/current/static/auth-pg-hba-conf.html) for the user running the cron job. Alternatively, you can add the password to a [.pgpass file](https://www.postgresql.org/docs/current/static/libpq-pgpass.html), which libpq will use when opening a connection. ## Advanced usage -Since pg_cron uses libpq, you can also run periodic jobs on other machines. This can be especially useful when you are using the [Citus extension](https://www.citusdata.com/product) to distribute tables across many PostgreSQL servers and need to run periodic jobs across all of them. +Since pg_cron uses libpq, you can also run periodic jobs on other machines. This can be especially useful when you are using the [Citus extension](https://www.citusdata.com/product) to distribute tables across many PostgreSQL servers and need to run periodic jobs across all of them. If you are superuser, then you can manually modify the cron.job table and use custom values for nodename and nodeport to connect to a different machine: