Re: Change "database system identifier" in pg_control? - Mailing list pgsql-admin

From Tom Lane
Subject Re: Change "database system identifier" in pg_control?
Date
Msg-id 29504.1166141419@sss.pgh.pa.us
Whole thread Raw
In response to Change "database system identifier" in pg_control?  (Joshua Colson <joshua.colson@ination.com>)
Responses Re: Change "shutdown time" was: Change "database system  (Joshua Colson <joshua.colson@ination.com>)
List pgsql-admin
Joshua Colson <joshua.colson@ination.com> writes:
> So I thought I would try to change the SYSID to 4965793265546637307 and
> have another shot at it.
> I'm not a PG guru so please let me know, is there any chance that what
> I'm doing will be successful, or am I just wasting my time?

You'd have to modify pg_resetxlog to force that value into the sysid
rather than whatever is there.  Hand-editing wouldn't work very well
because of (a) the CRC on pg_control and (b) the need to copy the
value into extant WAL segments.

            regards, tom lane

pgsql-admin by date:

Previous
From: Joshua Colson
Date:
Subject: Change "database system identifier" in pg_control?
Next
From: Thomas Markus
Date:
Subject: out of memory in backup and restore