From: Daniele Varrazzo Date: Tue, 26 Jul 2022 12:25:56 +0000 (+0100) Subject: docs: NOTIFY command in uppercase X-Git-Tag: 3.1~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a70c98fd64ab6c281251c11460f9f6fa6e1d191;p=thirdparty%2Fpsycopg.git docs: NOTIFY command in uppercase --- diff --git a/docs/advanced/async.rst b/docs/advanced/async.rst index db0b341a4..bbcfbd042 100644 --- a/docs/advanced/async.rst +++ b/docs/advanced/async.rst @@ -255,11 +255,11 @@ If you run some :sql:`NOTIFY` in a :program:`psql` session: .. code:: psql - =# notify mychan, 'hello'; + =# NOTIFY mychan, 'hello'; NOTIFY - =# notify mychan, 'hey'; + =# NOTIFY mychan, 'hey'; NOTIFY - =# notify mychan, 'stop'; + =# NOTIFY mychan, 'stop'; NOTIFY You may get output from the Python process such as:: @@ -280,7 +280,7 @@ received immediately, but only during a connection operation, such as a query. conn.add_notify_handler(lambda n: print(f"got this: {n}")) # meanwhile in psql... - # =# notify mychan, 'hey'; + # =# NOTIFY mychan, 'hey'; # NOTIFY print(conn.execute("SELECT 1").fetchone())