Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 60d5076

Browse files
committed
Rename pg_stat_wal_receiver.conn_info to conninfo.
Per discussion on pgsql-hackers, conninfo is better as the column name because it's more commonly used in PostgreSQL. Catalog version bumped due to the change of pg_proc. Author: Michael Paquier
1 parent 397bf6e commit 60d5076

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

doc/src/sgml/monitoring.sgml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1303,7 +1303,7 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i
13031303
<entry>Replication slot name used by this WAL receiver</entry>
13041304
</row>
13051305
<row>
1306-
<entry><structfield>conn_info</></entry>
1306+
<entry><structfield>conninfo</></entry>
13071307
<entry><type>text</></entry>
13081308
<entry>
13091309
Connection string used by this WAL receiver,

src/backend/catalog/system_views.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ CREATE VIEW pg_stat_wal_receiver AS
682682
s.latest_end_lsn,
683683
s.latest_end_time,
684684
s.slot_name,
685-
s.conn_info
685+
s.conninfo
686686
FROM pg_stat_get_wal_receiver() s
687687
WHERE s.pid IS NOT NULL;
688688

src/include/catalog/catversion.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@
5353
*/
5454

5555
/* yyyymmddN */
56-
#define CATALOG_VERSION_NO 201606291
56+
#define CATALOG_VERSION_NO 201607071
5757

5858
#endif

src/include/catalog/pg_proc.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -2746,7 +2746,7 @@ DATA(insert OID = 3318 ( pg_stat_get_progress_info PGNSP PGUID 12 1 100 0 0
27462746
DESCR("statistics: information about progress of backends running maintenance command");
27472747
DATA(insert OID = 3099 ( pg_stat_get_wal_senders PGNSP PGUID 12 1 10 0 0 f f f f f t s r 0 0 2249 "" "{23,25,3220,3220,3220,3220,23,25}" "{o,o,o,o,o,o,o,o}" "{pid,state,sent_location,write_location,flush_location,replay_location,sync_priority,sync_state}" _null_ _null_ pg_stat_get_wal_senders _null_ _null_ _null_ ));
27482748
DESCR("statistics: information about currently active replication");
2749-
DATA(insert OID = 3317 ( pg_stat_get_wal_receiver PGNSP PGUID 12 1 0 0 0 f f f f f f s r 0 0 2249 "" "{23,25,3220,23,3220,23,1184,1184,3220,1184,25,25}" "{o,o,o,o,o,o,o,o,o,o,o,o}" "{pid,status,receive_start_lsn,receive_start_tli,received_lsn,received_tli,last_msg_send_time,last_msg_receipt_time,latest_end_lsn,latest_end_time,slot_name,conn_info}" _null_ _null_ pg_stat_get_wal_receiver _null_ _null_ _null_ ));
2749+
DATA(insert OID = 3317 ( pg_stat_get_wal_receiver PGNSP PGUID 12 1 0 0 0 f f f f f f s r 0 0 2249 "" "{23,25,3220,23,3220,23,1184,1184,3220,1184,25,25}" "{o,o,o,o,o,o,o,o,o,o,o,o}" "{pid,status,receive_start_lsn,receive_start_tli,received_lsn,received_tli,last_msg_send_time,last_msg_receipt_time,latest_end_lsn,latest_end_time,slot_name,conninfo}" _null_ _null_ pg_stat_get_wal_receiver _null_ _null_ _null_ ));
27502750
DESCR("statistics: information about WAL receiver");
27512751
DATA(insert OID = 2026 ( pg_backend_pid PGNSP PGUID 12 1 0 0 0 f f f f t f s r 0 0 23 "" _null_ _null_ _null_ _null_ _null_ pg_backend_pid _null_ _null_ _null_ ));
27522752
DESCR("statistics: current backend PID");

src/test/regress/expected/rules.out

+2-2
Original file line numberDiff line numberDiff line change
@@ -1893,8 +1893,8 @@ pg_stat_wal_receiver| SELECT s.pid,
18931893
s.latest_end_lsn,
18941894
s.latest_end_time,
18951895
s.slot_name,
1896-
s.conn_info
1897-
FROM pg_stat_get_wal_receiver() s(pid, status, receive_start_lsn, receive_start_tli, received_lsn, received_tli, last_msg_send_time, last_msg_receipt_time, latest_end_lsn, latest_end_time, slot_name, conn_info)
1896+
s.conninfo
1897+
FROM pg_stat_get_wal_receiver() s(pid, status, receive_start_lsn, receive_start_tli, received_lsn, received_tli, last_msg_send_time, last_msg_receipt_time, latest_end_lsn, latest_end_time, slot_name, conninfo)
18981898
WHERE (s.pid IS NOT NULL);
18991899
pg_stat_xact_all_tables| SELECT c.oid AS relid,
19001900
n.nspname AS schemaname,

0 commit comments

Comments
 (0)