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

From Corey Huinker
Subject Thoughts on using Text::Template for our autogenerated code?
Date
Msg-id CADkLM=cq1JAXgFpksja9nNUUaW4z0a7cyP3g5Lk9mYqcB1bBEA@mail.gmail.com
Whole thread Raw
Responses Re: Thoughts on using Text::Template for our autogenerated code?  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Thoughts on using Text::Template for our autogenerated code?  (Andres Freund <andres@anarazel.de>)
Re: Thoughts on using Text::Template for our autogenerated code?  (Daniel Gustafsson <daniel@yesql.se>)
List pgsql-hackers
Is there a barrier to us using non-core perl modules, in this case Text::Template?

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

The module itself works like this https://www.perlmonks.org/?node_id=33296

Some other digging around shows that the module has been around since 1996 (Perl5 was 1994) and hasn't had a feature update (or any update for that matter) since 2003. So it should meet our baseline 5.14 requirement, which came out in 2011.

I'm happy to proceed with a proof-of-concept so that people can see the costs/benefits, but wanted to first make sure it wasn't a total non-starter.

pgsql-hackers by date:

Previous
From: Corey Huinker
Date:
Subject: Re: Autogenerate some wait events code and documentation
Next
From: Andrey Lepikhov
Date:
Subject: Re: [POC] Allow an extension to add data into Query and PlannedStmt nodes