postgresql/src
Tom Lane de57004799 Fix some oversights in commit 2455ab488.
The idea was to generate all the junk in a destroyable subcontext rather
than leaking it in the caller's context, but partition_bounds_create was
still being called in the caller's context, allowing plenty of scope for
leakage.  Also, get_rel_relkind() was still being called in the rel's
rd_pdcxt, creating a risk of session-lifespan memory wastage.

Simplify the logic a bit while at it.  Also, reduce rd_pdcxt to
ALLOCSET_SMALL_SIZES, since it seems likely to not usually be big.

Probably something like this needs to be back-patched into v11,
but for now let's get some buildfarm testing on this.

Discussion: https://postgr.es/m/15943.1552601288@sss.pgh.pa.us
2019-03-14 18:36:33 -04:00
..
backend Fix some oversights in commit 2455ab488. 2019-03-14 18:36:33 -04:00
bin Fix thinko when bumping on temporary directories in pg_checksums 2019-03-14 14:14:49 +09:00
common Add routine able to update the control file to src/common/ 2019-03-12 10:03:33 +09:00
fe_utils More unconstify use 2019-02-13 11:50:16 +01:00
include Add BKI_DEFAULT to pg_class.relrewrite 2019-03-14 21:25:39 +01:00
interfaces Fix potential memory access violation in ecpg if filename of include file is 2019-03-11 16:11:16 +01:00
makefiles Move port-specific parts of with_temp_install to port makefile. 2019-02-04 18:54:56 +00:00
pl Refactor ParamListInfo initialization 2019-03-14 13:30:09 +01:00
port Fix error handling of readdir() port implementation on first file lookup 2019-03-04 09:49:06 +09:00
template Yet further rethinking of build changes for macOS Mojave. 2018-11-02 18:54:00 -04:00
test Ensure dummy paths have correct required_outer if rel is parameterized. 2019-03-14 12:16:36 -04:00
timezone More unconstify use 2019-02-13 11:50:16 +01:00
tools Create a script that can renumber manually-assigned OIDs. 2019-03-12 10:50:48 -04:00
tutorial SQL comment: remove extra word in heading comment 2019-01-25 18:57:21 -05:00
.gitignore
DEVELOPERS
Makefile Fix partial-build problems introduced by having more generated headers. 2018-04-09 16:42:10 -04:00
Makefile.global.in Revert attempts to use POPCNT etc instructions 2019-02-15 16:32:30 -03:00
Makefile.shlib Ensure static libraries have correct mod time even if ranlib messes it up. 2018-11-29 15:53:44 -05:00
nls-global.mk Replace @postgresql.org with @lists.postgresql.org for mailinglists 2019-01-19 19:06:35 +01:00