Re: initdb / bootstrap design - Mailing list pgsql-hackers

From Andres Freund
Subject Re: initdb / bootstrap design
Date
Msg-id 154B31E4-DE61-42F6-B3EB-FFF59A23EF37@anarazel.de
Whole thread Raw
In response to Re: initdb / bootstrap design  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hi,

On February 19, 2022 4:39:38 PM PST, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>Andres Freund <andres@anarazel.de> writes:
>> A quick way to prototype the moving the handlign to the backend would be to
>> just call postgres with input redirection from postgres.bki...
>
>Hmm.  I was thinking of inventing an include-file command in the
>BKI language, and making initdb just send an INCLUDE command.
>That's arguably overkill for the immediate need, but it looks like it
>requires just a few lines of code (flex provides pretty much all of the
>infrastructure already), and maybe we'd find another use for it later.
>
>However, redirection does sound like a very easy answer ...

Medium term I'd rather do neither, because I'd like to avoid the restart in-between bootstrap and the various sql
files.But short term redirection redirection might be good enough - it does mostly work on windows I think ... 

Andres
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: initdb / bootstrap design
Next
From: Peter Geoghegan
Date:
Subject: Re: Removing more vacuumlazy.c special cases, relfrozenxid optimizations