Change timeline field of IDENTIFY_SYSTEM to int8
authorPeter Eisentraut <[email protected]>
Mon, 4 Jul 2022 05:25:26 +0000 (07:25 +0200)
committerPeter Eisentraut <[email protected]>
Mon, 4 Jul 2022 05:32:48 +0000 (07:32 +0200)
It was int4, but in the other replication commands, timelines are
returned as int8.

Reviewed-by: Nathan Bossart <[email protected]>
Discussion: https://www.postgresql.org/message-id/flat/7e4fdbdc-699c-4cd0-115d-fb78a957fc22@enterprisedb.com

doc/src/sgml/protocol.sgml
src/backend/replication/walsender.c

index a94743b587b23661dd7efc0ce53218e3120cf12a..c0b89a3c01c07250ac5bee9b3069e03bd62bf9d4 100644 (file)
@@ -1838,7 +1838,7 @@ psql "dbname=postgres replication=database" -c "IDENTIFY_SYSTEM;"
        </varlistentry>
 
        <varlistentry>
-        <term><literal>timeline</literal> (<type>int4</type>)</term>
+        <term><literal>timeline</literal> (<type>int8</type>)</term>
         <listitem>
          <para>
           Current timeline ID. Also useful to check that the standby is
index e42671722a808006d340f3258026d26e7ad40d21..fa60c92e13a3321dcf4bdbe59e46f6ff87ba7d2d 100644 (file)
@@ -444,7 +444,7 @@ IdentifySystem(void)
    TupleDescInitBuiltinEntry(tupdesc, (AttrNumber) 1, "systemid",
                              TEXTOID, -1, 0);
    TupleDescInitBuiltinEntry(tupdesc, (AttrNumber) 2, "timeline",
-                             INT4OID, -1, 0);
+                             INT8OID, -1, 0);
    TupleDescInitBuiltinEntry(tupdesc, (AttrNumber) 3, "xlogpos",
                              TEXTOID, -1, 0);
    TupleDescInitBuiltinEntry(tupdesc, (AttrNumber) 4, "dbname",