mirror of
https://github.com/postgres/postgres.git
synced 2025-10-21 02:52:47 +03:00
Change delimiter used for display of NextXID
NextXID has been rendered in the form of a pg_lsn even though it really is not. This can cause confusion, so change the format from %u/%u to %u:%u, per discussion on hackers. Complaint by me, patch by me and Bruce, reviewed by Michael Paquier and Alvaro. Applied to HEAD only. Author: Joe Conway, Bruce Momjian Reviewed-by: Michael Paquier, Alvaro Herrera Backpatch-through: master
This commit is contained in:
@@ -197,11 +197,18 @@ get_control_data(ClusterInfo *cluster, bool live_check)
|
||||
p++; /* remove ':' char */
|
||||
cluster->controldata.chkpnt_nxtepoch = str2uint(p);
|
||||
|
||||
p = strchr(p, '/');
|
||||
if (strchr(p, '/') != NULL)
|
||||
p = strchr(p, '/');
|
||||
/* delimiter changed from '/' to ':' in 9.6 */
|
||||
else if (GET_MAJOR_VERSION(cluster->major_version) >= 906)
|
||||
p = strchr(p, ':');
|
||||
else
|
||||
p = NULL;
|
||||
|
||||
if (p == NULL || strlen(p) <= 1)
|
||||
pg_fatal("%d: controldata retrieval problem\n", __LINE__);
|
||||
|
||||
p++; /* remove '/' char */
|
||||
p++; /* remove '/' or ':' char */
|
||||
cluster->controldata.chkpnt_nxtxid = str2uint(p);
|
||||
got_xid = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user