]> granicus.if.org Git - postgresql/commit
Avoid statically allocating statement cache in ecpglib/prepare.c.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 17 Oct 2018 04:04:48 +0000 (00:04 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 17 Oct 2018 04:04:48 +0000 (00:04 -0400)
commite15aae829e3eb686bdf03dea9022a61f8039a7ef
tree2614a76258667353b324d7fe81e7f61b68e5a48a
parent92dff341160ae896dcfff2dac59fd0c860892f26
Avoid statically allocating statement cache in ecpglib/prepare.c.

This removes a megabyte of storage that isn't used at all in ecpglib's
default operating mode --- you have to enable auto-prepare to get any
use out of it.  Seems well worth the trouble to allocate on demand.

Discussion: https://postgr.es/m/20181015200754.7y7zfuzsoux2c4ya@alap3.anarazel.de
src/interfaces/ecpg/ecpglib/prepare.c