pgsql: Avoid statically allocating statement cache in ecpglib/prepare.c

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Avoid statically allocating statement cache in ecpglib/prepare.c
Date: 2018-10-17 04:04:59
Message-ID: E1gCd4t-0005fY-DA@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e15aae829e3eb686bdf03dea9022a61f8039a7ef

Modified Files
--------------
src/interfaces/ecpg/ecpglib/prepare.c | 21 ++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2018-10-17 16:27:08 pgsql: Improve tzparse's handling of TZDEFRULES ("posixrules") zone dat
Previous Message Andres Freund 2018-10-16 22:48:44 Re: pgsql: Add TAP tests for pg_verify_checksums