Re: Thoughts on using Text::Template for our autogenerated code?

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: Thoughts on using Text::Template for our autogenerated code?
Дата
Msg-id 20230330184844.z67zlr6mkmpihsdm@awork3.anarazel.de
обсуждение исходный текст
Ответ на Thoughts on using Text::Template for our autogenerated code?  (Corey Huinker <corey.huinker@gmail.com>)
Ответы Re: Thoughts on using Text::Template for our autogenerated code?  (Corey Huinker <corey.huinker@gmail.com>)
Список pgsql-hackers
Hi,

On 2023-03-30 13:06:46 -0400, Corey Huinker wrote:
> Is there a barrier to us using non-core perl modules, in this case
> Text::Template?

I don't think we should have a hard build-time dependency on non-core perl
modules. On some operating systems having to install such dependencies is
quite painful (e.g. windows).


> I think it would be a tremendous improvement in readability and
> maintainability over our current series of print statements, some
> multiline, some not.

I think many of those could just be replaced by multi-line strings and/or here
documents to get most of the win.

Greetings,

Andres Freund



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: Clean up role created in new subscription test.
Следующее
От: Jeff Davis
Дата:
Сообщение: Re: running logical replication as the subscription owner