Re: [COMMITTERS] pgsql-server/src

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Oliver Elphick <olly(at)lfix(dot)co(dot)uk>
Cc: Thomas Lockhart <lockhart(at)fourpalms(dot)org>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [COMMITTERS] pgsql-server/src
Date: 2002-08-13 14:00:19
Message-ID: 25368.1029247219@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Oliver Elphick <olly(at)lfix(dot)co(dot)uk> writes:
> Could you not store the location of the xlog directory as an entry in
> $PGDATA/global/pg_control?

We could do that *only* if we were to produce an xlog-moving program
immediately; otherwise we've regressed in functionality compared to
prior releases.

I do not think it's necessary to be quite that anal about tying the two
directories together --- the manual symlinking procedure I described has
been around for two releases now, and while doubtless not that many
people have actually done it, we've not heard any reports of failures.
The thing is that if the DBA has to do this himself, he is very well
aware that he's performing a critical procedure, and he's not likely
to muck it up.

I think that from a safety point of view either a symlink or a
config-file entry are perfectly acceptable, and in general I prefer
plain-text config files to those which are not. (Right now, pg_control
is *not* a config file: there is not anything in it that you might want
to edit in normal system maintenance. It should stay that way.)

Marc's idea of matching signature files would be a better
safety-checking mechanism than just making the data directory's xlog
link hard to get at.

regards, tom lane

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2002-08-13 14:06:06 Re: [COMMITTERS] pgsql-server/src backend/tcop/postgres.cbacke
Previous Message Oliver Elphick 2002-08-13 13:59:45 Re: [COMMITTERS] pgsql-server/src

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2002-08-13 14:06:06 Re: [COMMITTERS] pgsql-server/src backend/tcop/postgres.cbacke
Previous Message Lamar Owen 2002-08-13 14:00:13 Re: OOP real life example (was Re: Why is MySQL more