postgresql/src/backend
Tom Lane f2004f19ed Fix memory leak in printtup.c.
Commit f2dec34e1 changed things so that printtup's output stringinfo
buffer was allocated outside the per-row temporary context, not inside
it.  This creates a need to free that buffer explicitly when the temp
context is freed, but that was overlooked.  In most cases, this is all
happening inside a portal or executor context that will go away shortly
anyhow, but that's not always true.  Notably, the stringinfo ends up
getting leaked when JDBC uses row-at-a-time fetches.  For a query
that returns wide rows, that adds up after awhile.

Per bug #15700 from Matthias Otterbach.  Back-patch to v11 where the
faulty code was added.

Discussion: https://postgr.es/m/15700-8c408321a87d56bb@postgresql.org
2019-03-18 17:54:41 -04:00
..
access Fix memory leak in printtup.c. 2019-03-18 17:54:41 -04:00
bootstrap tableam: Add and use scan APIs. 2019-03-11 12:46:41 -07:00
catalog Partial implementation of SQL/JSON path language 2019-03-16 12:16:48 +03:00
commands Revise parse tree representation for VACUUM and ANALYZE. 2019-03-18 15:14:52 -04:00
executor Enable parallel query with SERIALIZABLE isolation. 2019-03-15 17:47:04 +13:00
foreign Update copyright for 2019 2019-01-02 12:44:25 -05:00
jit Renaming for new subscripting mechanism 2019-02-01 12:50:32 -03:00
lib Move hash_any prototype from access/hash.h to utils/hashutils.h 2019-03-11 13:17:50 -03:00
libpq Add new clientcert hba option verify-full 2019-03-09 12:19:47 -08:00
main Replace @postgresql.org with @lists.postgresql.org for mailinglists 2019-01-19 19:06:35 +01:00
nodes Refactor ParamListInfo initialization 2019-03-14 13:30:09 +01:00
optimizer Enable parallel query with SERIALIZABLE isolation. 2019-03-15 17:47:04 +13:00
parser Revise parse tree representation for VACUUM and ANALYZE. 2019-03-18 15:14:52 -04:00
partitioning Update copyright year in files added by 1bb5e78218. 2019-03-16 16:00:38 +05:30
po Translation updates 2018-06-25 12:37:18 +02:00
port Add shared_memory_type GUC. 2019-02-03 12:47:26 +01:00
postmaster Fold vacuum's 'int options' parameter into VacuumParams. 2019-03-18 13:57:33 -04:00
regex Update copyright for 2019 2019-01-02 12:44:25 -05:00
replication Add walreceiver API to get remote server version 2019-03-15 10:16:26 +01:00
rewrite tableam: Add and use scan APIs. 2019-03-11 12:46:41 -07:00
snowball Update copyright for 2019 2019-01-02 12:44:25 -05:00
statistics Rename nodes/relation.h to nodes/pathnodes.h. 2019-01-29 16:49:25 -05:00
storage Improve code comments in b0eaa4c51b. 2019-03-16 06:55:56 +05:30
tcop Revise parse tree representation for VACUUM and ANALYZE. 2019-03-18 15:14:52 -04:00
tsearch Move hash_any prototype from access/hash.h to utils/hashutils.h 2019-03-11 13:17:50 -03:00
utils Fix optimization of foreign-key on update actions 2019-03-18 17:19:21 +01:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
common.mk Remove PARTIAL_LINKING build mode. 2018-03-30 17:33:04 -07:00
Makefile Fix make rules for jsonpath grammar making them similar to SQL grammar 2019-03-17 10:55:52 +03:00
nls.mk Translation updates 2018-06-25 12:37:18 +02:00