From: Tom Lane <tgl@sss.pgh.pa.us>
To: Stef <svb@ucs.co.za>
Cc: pgsql-admin@postgresql.org
Subject: Re: Multiple postmasters for one data directory...
Date: Thu, 11 Mar 2004 10:54:41 -0500
Message-ID: <20180.1079020481@sss.pgh.pa.us> (raw)
In-Reply-To: <20040311165256.5a68e02a.svb@ucs.co.za>
References: <20040311165256.5a68e02a.svb@ucs.co.za>
Stef <svb@ucs.co.za> writes:
> I've managed to make such a database cluster on a separate postmaster,
> and re-linked all the database directories to point to the data directories
> of all the other postmasters.
> Although this workaround seems to be working rather well, I know for one
> thing that it could be disastrous to have two postmasters running on the
> same data directory at the same time, so I'll ensure that that doesn't happen.
> Is what I'm doing VERY bad, and are there more things I'm overlooking?
> Can this setup possibly break everything?
I'm afraid you have already shot yourself in the foot.
The above cannot work because there is no way to share pg_xlog or
pg_clog across database clusters. You have now got transaction numbers
from the "shared" postmaster inserted into the other databases, and when
you go back to separate postmasters you will have corruption. I'm
surprised you do not already see inconsistencies, because if the
"shared" installation was a fresh one then it would probably see most of
the committed transaction numbers of the other databases as being "in
the future".
Get out your backup tapes, because what you have on disk now is just a
pile of inconsistent bits.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, svb@ucs.co.za
Subject: Re: Multiple postmasters for one data directory...
In-Reply-To: <20180.1079020481@sss.pgh.pa.us>
References: <20040311165256.5a68e02a.svb@ucs.co.za> <20180.1079020481@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox