diff options
author | Robert Haas <rhaas@postgresql.org> | 2016-08-16 13:23:32 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2016-08-16 13:28:10 -0400 |
commit | 0aa1e9a44db0b8f8b08acadf2833c724489bd279 (patch) | |
tree | beff9e11056a9e4cf4dc41145f585c84934ead7c /src/fe_utils/string_utils.c | |
parent | d95a7c3fbcfd5e65802f7fb0bee31a914160d9ed (diff) | |
download | postgresql-0aa1e9a44db0b8f8b08acadf2833c724489bd279.tar.gz postgresql-0aa1e9a44db0b8f8b08acadf2833c724489bd279.zip |
Fix possible crash due to incorrect allocation context.
Commit af33039317ddc4a0e38a02e2255c2bf453115fd2 aimed to reduce
leakage from tqueue.c, which is good. Unfortunately, by changing the
memory context in which all of gather_readnext() executes, it also
changed the context in which ExecShutdownGatherWorkers executes, which
is not good, because that function eventually causes a call to
ExecParallelRetrieveInstrumentation, which proceeds to allocate
planstate->worker_instrument in a short-lived context, causing a
crash.
Rushabh Lathia, reviewed by Amit Kapila and by me.
Diffstat (limited to 'src/fe_utils/string_utils.c')
0 files changed, 0 insertions, 0 deletions