Re: Change "database system identifier" in pg_control?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Joshua Colson <joshua(dot)colson(at)ination(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Change "database system identifier" in pg_control?
Date: 2006-12-15 00:10:19
Message-ID: 29504.1166141419@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Joshua Colson <joshua(dot)colson(at)ination(dot)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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Thomas Markus 2006-12-15 09:28:55 out of memory in backup and restore
Previous Message Marc G. Fournier 2006-12-14 23:53:55 Re: Where to Get Version of PostgreSQL Installation