Re: Control File

From: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
To: "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Bruno Almeida do Lago <teolupus(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Control File
Date: 2006-04-14 09:42:02
Message-ID: 443F6E6A.2060001@pse-consulting.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Jim C. Nasby wrote:
> On Thu, Apr 13, 2006 at 04:39:59AM -0400, Bruce Momjian wrote:
>
>>Tom Lane wrote:
>>
>>>Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
>>>
>>>>Bruno Almeida do Lago wrote:
>>>>
>>>>>After that night, I started to ask myself if PostgreSQL should not have a
>>>>>control file to check if expected datafiles are where they should be and
>>>>>JUST warn about missing ones?
>>>
>>>>I don't think this happens frequently enough to add code for it.
>>>
>>>I think we saw it happen once to Joe Conway's DB. But I see no
>>>particular reason why Postgres needs a feature for this --- you can
>>>stick a test into your database start script if you need it.
>>
>>Right, that is the only other time I remember it.
>
>
> The difference now is that we have tablespaces, which makes this
> scenario more likely. Previously I suspect common practice was to either
> leave everything in $PGDATA, or at most to move pg_xlog somewhere else
> and symlink it in, and I'm guessing that the databse will complain
> loudly if it can't find pg_xlog. So I suspect this will become far more
> common. As for adding checks to startup scripts, that's a PITA because
> those scripts will have no idea of where tablespaces might be defined,
> so you'd have to hard-code that info in.

... And we don't have startup scripts in win32. If tablespaces are used
there, they may well reside on some kind of detachable media (SAN)

Regards,
Andreas

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2006-04-14 13:46:57 Re: OS cached buffers (was: Support Parallel Query Execution
Previous Message Greg Stark 2006-04-14 09:27:24 Re: Practical impediment to supporting multiple SSL libraries