mirror of
https://github.com/postgres/postgres.git
synced 2025-11-19 13:42:17 +03:00
Doc: use uppercase keywords in SQLs
Use uppercase SQL keywords consistently throughout the documentation to ease reading. Also add whitespace in a couple of places where it improves readability. Author: Erik Wienhold <ewie@ewie.name> Reviewed-by: David Rowley <dgrowleyml@gmail.com> Discussion: https://postgr.es/m/82eb512b-8ed2-46be-b311-54ffd26978c4%40ewie.name
This commit is contained in:
@@ -1137,7 +1137,7 @@ postgres 27093 0.0 0.0 30096 2752 ? Ss 11:34 0:00 postgres: ser
|
||||
Here are examples of how wait events can be viewed:
|
||||
|
||||
<programlisting>
|
||||
SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event is NOT NULL;
|
||||
SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event IS NOT NULL;
|
||||
pid | wait_event_type | wait_event
|
||||
------+-----------------+------------
|
||||
2540 | Lock | relation
|
||||
@@ -1150,7 +1150,7 @@ SELECT a.pid, a.wait_event, w.description
|
||||
FROM pg_stat_activity a JOIN
|
||||
pg_wait_events w ON (a.wait_event_type = w.type AND
|
||||
a.wait_event = w.name)
|
||||
WHERE a.wait_event is NOT NULL and a.state = 'active';
|
||||
WHERE a.wait_event IS NOT NULL AND a.state = 'active';
|
||||
-[ RECORD 1 ]------------------------------------------------------&zwsp;------------
|
||||
pid | 686674
|
||||
wait_event | WALInitSync
|
||||
|
||||
Reference in New Issue
Block a user