Skip to content
Snippets Groups Projects
Commit d9c99c66 authored by Alvaro Herrera's avatar Alvaro Herrera
Browse files

Fix pg_replication_slot example output


The example output of pg_replication_slot is wrong.  Correct it and make
the output stable by explicitly listing columns to output.

Author: Kyotaro Horiguchi <horiguchi.kyotaro@lab.ntt.co.jp>
Reviewed-by: default avatarMichael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/20180731.190909.42582169.horiguchi.kyotaro@lab.ntt.co.jp
parent ed5d8196
No related branches found
Tags
No related merge requests found
...@@ -960,10 +960,10 @@ postgres=# SELECT * FROM pg_create_physical_replication_slot('node_a_slot'); ...@@ -960,10 +960,10 @@ postgres=# SELECT * FROM pg_create_physical_replication_slot('node_a_slot');
-------------+----- -------------+-----
node_a_slot | node_a_slot |
postgres=# SELECT * FROM pg_replication_slots; postgres=# SELECT slot_name, slot_type, active FROM pg_replication_slots;
slot_name | slot_type | datoid | database | active | xmin | restart_lsn | confirmed_flush_lsn slot_name | slot_type | active
-------------+-----------+--------+----------+--------+------+-------------+--------------------- -------------+-----------+--------
node_a_slot | physical | | | f | | | node_a_slot | physical | f
(1 row) (1 row)
</programlisting> </programlisting>
To configure the standby to use this slot, <varname>primary_slot_name</> To configure the standby to use this slot, <varname>primary_slot_name</>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment