summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Gustafsson2023-05-25 10:43:16 +0000
committerDaniel Gustafsson2023-05-25 10:43:16 +0000
commit661bf96cd208238efb45c75e3af5ad400e5b0026 (patch)
treed6a32beb8a1a18f666ef8c42edebaa34fa7508e0
parent8f5e42d3346924b5d6330208d62ec1b19fdbc110 (diff)
doc: Fix example query for pg_walinspect
The LIMIT clause had ended up in the wrong place in the query. Backpatch to v15 where pg_walinspect was introduced. Reported-by: Jian He <[email protected]> Discussion: https://postgr.es/m/CACJufxHqXDr4NnmwmR6pEiVPAg54J0dgwMuYQzrH5BX6+NtF1g@mail.gmail.com Backpatch-through: 15
-rw-r--r--doc/src/sgml/pgwalinspect.sgml5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/src/sgml/pgwalinspect.sgml b/doc/src/sgml/pgwalinspect.sgml
index a1a4422fb42..762ad698176 100644
--- a/doc/src/sgml/pgwalinspect.sgml
+++ b/doc/src/sgml/pgwalinspect.sgml
@@ -250,8 +250,9 @@ block_fpi_data |
For example:
<screen>
postgres=# SELECT * FROM pg_get_wal_stats('0/1E847D00', '0/1E84F500')
- WHERE count > 0 LIMIT 1 AND
- "resource_manager/record_type" = 'Transaction';
+ WHERE count > 0 AND
+ "resource_manager/record_type" = 'Transaction'
+ LIMIT 1;
-[ RECORD 1 ]----------------+-------------------
resource_manager/record_type | Transaction
count | 2