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.1713493...@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/85312d95e959bae16c5d0bbf79ae74bcd7fec1a9

Modified Files
--------------
src/interfaces/ecpg/preproc/parser.c |  4 +++-
src/interfaces/ecpg/preproc/pgc.l    | 42 ++++++++++++++++++------------------
2 files changed, 24 insertions(+), 22 deletions(-)

Reply via email to