>> I was not convinced by the overall memory management around variables
>> to begin with, and it is even less so with their new copy management.
>> Maybe having a clean "Variables" data structure could help improve the
>> situation.
>
> Ok!
Note that there is something for psql (src/bin/psql/variable.c) which may
or may not be shared. It should be checked before recoding eventually the
same thing.
--
Fabien.