Re: Large writable variables - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Large writable variables
Date
Msg-id 13249.1539733722@sss.pgh.pa.us
Whole thread Raw
In response to Re: Large writable variables  (Andres Freund <andres@anarazel.de>)
Responses Re: Large writable variables  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
BTW, I looked around for .o files with large BSS numbers, and came across

$ size src/interfaces/ecpg/ecpglib/prepare.o
   text    data     bss     dec     hex filename
   4023       4 1048576 1052603  100fbb src/interfaces/ecpg/ecpglib/prepare.o

That megabyte is from a statically allocated statement cache array.
Seems a bit unfriendly to users of ecpglib, given that many apps
would never use the statement cache (AFAICT you have to explicitly
ask for auto-prepare mode to get to that code).

Doesn't look hard to fix though.

            regards, tom lane


pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: pgsql: Add TAP tests for pg_verify_checksums
Next
From: Andres Freund
Date:
Subject: Re: TupleTableSlot abstraction