ecpg: put all string-valued tokens returned by pgc.l in local storage.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 85312d95e959bae16c5d0bbf79ae74bcd7fec1a9
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2024-11-27T17:50:23Z
Releases: 18.0
ecpg: put all string-valued tokens returned by pgc.l in local storage.

This didn't work earlier in the patch series (I think some of
the strings were ending up in data-type-related structures),
but apparently we're now clean enough for it.  This considerably
reduces process-lifespan memory leakage.

Discussion: https://postgr.es/m/2011420.1713493114@sss.pgh.pa.us

Files

PathChange+/−
src/interfaces/ecpg/preproc/parser.c modified +3 −1
src/interfaces/ecpg/preproc/pgc.l modified +21 −21

Discussion