Re: Clog handling on exec'ed backend - Mailing list pgsql-patches

From Tom Lane
Subject Re: Clog handling on exec'ed backend
Date
Msg-id 11399.1051927439@sss.pgh.pa.us
Whole thread Raw
In response to Clog handling on exec'ed backend  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: Clog handling on exec'ed backend
List pgsql-patches
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> It basically makes one of the Clog data structures into a shared memory
> area when using exec (EXEC_BACKEND is defined).  It passes all the
> regression/initdb tests on Unix.

It would be cleaner to make the array of LWLockIds part of ClogCtlData,
if you're going to do it that way.  I have doubts that pushing all
LWLockIds into shared memory is a feasible solution, however.

Out of curiosity: have you actually tested any of this Windows code
you're proposing to commit?  A lot of it looks to me like it's not
gonna work --- stuff is getting done too soon or too late.  For
example, I don't see how a backend is going to read GUC variables
when it doesn't yet know where the data directory is.

            regards, tom lane


pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Clog handling on exec'ed backend
Next
From: Bruce Momjian
Date:
Subject: Re: Clog handling on exec'ed backend