Re: Thoughts on using Text::Template for our autogenerated code? - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Thoughts on using Text::Template for our autogenerated code?
Date
Msg-id 20230330184844.z67zlr6mkmpihsdm@awork3.anarazel.de
Whole thread Raw
In response to Thoughts on using Text::Template for our autogenerated code?  (Corey Huinker <corey.huinker@gmail.com>)
Responses Re: Thoughts on using Text::Template for our autogenerated code?  (Corey Huinker <corey.huinker@gmail.com>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: pgsql: Clean up role created in new subscription test.
Next
From: Jeff Davis
Date:
Subject: Re: running logical replication as the subscription owner