Re: remove separate postgres.(sh)description files

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: remove separate postgres.(sh)description files
Дата
Msg-id ba705a4b-a706-fc26-0243-7be22d61f081@iki.fi
обсуждение исходный текст
Ответ на remove separate postgres.(sh)description files  (John Naylor <john.naylor@2ndquadrant.com>)
Ответы Re: remove separate postgres.(sh)description files
Список pgsql-hackers
On 31/12/2019 02:08, John Naylor wrote:
> I'm guessing the initial data for pg_(sh)description is output into
> separate files because it was too difficult for the traditional shell
> script to maintain enough state to do otherwise.

Yeah, I guess so. The roots of postgres.description goes all the way 
back to 1997, when not only genbki was a shell script, but also initdb.

> With Perl, it's just as easy to assemble the data into the same
> format as the rest of the catalogs and then let the generic code path
> output it into postgres.bki. The attached patch does that and
> simplifies the catalog makefile and initdb.c.
Nice cleanup! Looks like we didn't have any mention of the 
postgres.(sh)decription files in the docs, so no doc updates needed. 
Grepping around, there are a few stray references to 
postgres.description still:

$ git grep -r -I postgres.shdescript .
src/backend/catalog/.gitignore:/postgres.shdescription
src/backend/catalog/Makefile:# postgres.bki, postgres.description, 
postgres.shdescription,
src/tools/msvc/clean.bat:if %DIST%==1 if exist 
src\backend\catalog\postgres.shdescription del /q 
src\backend\catalog\postgres.shdescription

Barring objections, I'll remove those too, and commit this.

- Heikki



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

Предыдущее
От: Fabien COELHO
Дата:
Сообщение: Re: pgbench - use pg logging capabilities
Следующее
От: Dilip Kumar
Дата:
Сообщение: Re: Fastpath while arranging the changes in LSN order in logical decoding