Move bki file pre-processing from initdb to bootstrap

Поиск
Список
Период
Сортировка
От Krishnakumar R
Тема Move bki file pre-processing from initdb to bootstrap
Дата
Msg-id CAPMWgZ9TCByVjpfdsgyte4rx=YsrAttYay2xDK4UN4Lm=-wJMQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: Move bki file pre-processing from initdb to bootstrap  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Move bki file pre-processing from initdb to bootstrap  (Peter Eisentraut <peter@eisentraut.org>)
Список pgsql-hackers
Hi All,

This patch moves the pre-processing for tokens in the bki file from
initdb to bootstrap. With these changes the bki file will only be
opened once in bootstrap and parsing will be done by the bootstrap
parser.

The flow of bki file processing will be as follows:
- In initdb gather the values used to replace the tokens in the bki file.
- Pass these values into postgres bootstrap startup using '-i' option
as key-value pairs.
- In bootstrap open the bki file (the bki file name was received as a
parameter).
- During the parsing of the bki file, replace the tokens received as
parameters with their values.

Related discussion can be found here:
https://www.postgresql.org/message-id/20220216021219.ygzrtb3hd5bn7olz%40alap3.anarazel.de

Note: Currently the patch breaks on windows due to placement of extra
quotes when passing parameters (Thanks to Thomas Munro for helping me
find that). Will follow up with v2 fixing the windows issues on
passing  the parameters and format fixes.

Please review and provide feedback.

--
Thanks and Regards,
Krishnakumar (KK).
[Microsoft]

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Alexander Lakhin
Дата:
Сообщение: Re: lockup in parallel hash join on dikkop (freebsd 14.0-current)
Следующее
От: "Ryo Matsumura (Fujitsu)"
Дата:
Сообщение: PATCH: document for regression test forgets libpq test