Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcef939c

Browse files
committed
Rename pg_replication_slot's new active_in to active_pid.
Ind811c03 active_in was added but discussion since showed thatactive_pid is preferred as a name.Discussion: CAMsr+YFKgZca5_7_ouaMWxA5PneJC9LNViPzpDHusaPhU9pA7g@mail.gmail.com
1 parent4d930ee commitcef939c

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

‎contrib/test_decoding/expected/ddl.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ SELECT pg_drop_replication_slot('regression_slot');
603603

604604
/* check that the slot is gone */
605605
SELECT * FROM pg_replication_slots;
606-
slot_name | plugin | slot_type | datoid | database | active |active_in | xmin | catalog_xmin | restart_lsn
607-
-----------+--------+-----------+--------+----------+--------+-----------+------+--------------+-------------
606+
slot_name | plugin | slot_type | datoid | database | active |active_pid | xmin | catalog_xmin | restart_lsn
607+
-----------+--------+-----------+--------+----------+--------+------------+------+--------------+-------------
608608
(0 rows)
609609

‎doc/src/sgml/catalogs.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5401,7 +5401,7 @@
54015401
</row>
54025402

54035403
<row>
5404-
<entry><structfield>active_in</structfield></entry>
5404+
<entry><structfield>active_pid</structfield></entry>
54055405
<entry><type>integer</type></entry>
54065406
<entry></entry>
54075407
<entry>The process ID of the session using this slot if the slot

‎src/backend/catalog/system_views.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ CREATE VIEW pg_replication_slots AS
665665
L.datoid,
666666
D.datnameAS database,
667667
L.active,
668-
L.active_in,
668+
L.active_pid,
669669
L.xmin,
670670
L.catalog_xmin,
671671
L.restart_lsn

‎src/include/catalog/pg_proc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5106,7 +5106,7 @@ DATA(insert OID = 3779 ( pg_create_physical_replication_slot PGNSP PGUID 12 1 0
51065106
DESCR("create a physical replication slot");
51075107
DATA(insert OID = 3780 ( pg_drop_replication_slot PGNSP PGUID 12 1 0 0 0 f f f f f f v 1 0 2278 "19" _null_ _null_ _null_ _null_ pg_drop_replication_slot _null_ _null_ _null_ ));
51085108
DESCR("drop a replication slot");
5109-
DATA(insert OID = 3781 ( pg_get_replication_slotsPGNSP PGUID 12 1 10 0 0 f f f f f t s 0 0 2249 "" "{19,19,25,26,16,23,28,28,3220}" "{o,o,o,o,o,o,o,o,o}" "{slot_name,plugin,slot_type,datoid,active,active_in,xmin,catalog_xmin,restart_lsn}" _null_ pg_get_replication_slots _null_ _null_ _null_ ));
5109+
DATA(insert OID = 3781 ( pg_get_replication_slotsPGNSP PGUID 12 1 10 0 0 f f f f f t s 0 0 2249 "" "{19,19,25,26,16,23,28,28,3220}" "{o,o,o,o,o,o,o,o,o}" "{slot_name,plugin,slot_type,datoid,active,active_pid,xmin,catalog_xmin,restart_lsn}" _null_ pg_get_replication_slots _null_ _null_ _null_ ));
51105110
DESCR("information about replication slots currently in use");
51115111
DATA(insert OID = 3786 ( pg_create_logical_replication_slot PGNSP PGUID 12 1 0 0 0 f f f f f f v 2 0 2249 "19 19" "{19,19,25,3220}" "{i,i,o,o}" "{slot_name,plugin,slot_name,xlog_position}" _null_ pg_create_logical_replication_slot _null_ _null_ _null_ ));
51125112
DESCR("set up a logical replication slot");

‎src/test/regress/expected/rules.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1396,11 +1396,11 @@ pg_replication_slots| SELECT l.slot_name,
13961396
l.datoid,
13971397
d.datname AS database,
13981398
l.active,
1399-
l.active_in,
1399+
l.active_pid,
14001400
l.xmin,
14011401
l.catalog_xmin,
14021402
l.restart_lsn
1403-
FROM (pg_get_replication_slots() l(slot_name, plugin, slot_type, datoid, active,active_in, xmin, catalog_xmin, restart_lsn)
1403+
FROM (pg_get_replication_slots() l(slot_name, plugin, slot_type, datoid, active,active_pid, xmin, catalog_xmin, restart_lsn)
14041404
LEFT JOIN pg_database d ON ((l.datoid = d.oid)));
14051405
pg_roles| SELECT pg_authid.rolname,
14061406
pg_authid.rolsuper,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp