pgsql-http icon indicating copy to clipboard operation
pgsql-http copied to clipboard

Use PgSQL memory management

Open pramsey opened this issue 5 months ago • 1 comments

Watch out for lifetimes of objects, in particular need to switch into top memory context for the long-lived elements (context) while staying in statement context for short-lived objects.

pramsey avatar Aug 12 '25 20:08 pramsey

Note that curl is taking copies of strings in set_opt and that opts have longer lifespans than queries, so all opt handling needs to be wrapped in a change in context to an upper context.

sfc-gh-pramsey avatar Oct 09 '25 18:10 sfc-gh-pramsey