Fixed the pg_listen syntax (#285)

* Fixed the pg_listen syntax

Can't run killall -SIGUSR1 postgrest: No such file or directory

Error happens because pg_listen needs the full path to killall.
This commit is contained in:
ycheng2020
2019-12-08 01:00:02 -05:00
committed by Steve Chavez
parent a0091f61a1
commit 30d241fcff
+2 -2
View File
@@ -213,9 +213,9 @@ Then run the `pg_listen <https://github.com/begriffs/pg_listen>`_ utility to mon
.. code-block:: bash
pg_listen <db-uri> ddl_command_end "killall -SIGUSR1 postgrest"
pg_listen <db-uri> ddl_command_end $(which killall) -SIGUSR1 postgrest
Now, whenever the structure of the database schema changes, PostgreSQL will notify the ``ddl_command_end`` channel, which will cause ``pg_listen`` to send PostgREST the signal to reload its cache.
Now, whenever the structure of the database schema changes, PostgreSQL will notify the ``ddl_command_end`` channel, which will cause ``pg_listen`` to send PostgREST the signal to reload its cache. Note that pg_listen requires full path to the executable in the example above.
Daemonizing
===========