]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
docs: NOTIFY command in uppercase
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 26 Jul 2022 12:25:56 +0000 (13:25 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 26 Jul 2022 12:25:56 +0000 (13:25 +0100)
docs/advanced/async.rst

index db0b341a484a8f8f877ce7c560e7d34ff2471477..bbcfbd0426856988b80f84c19f67227f7ba2b866 100644 (file)
@@ -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())