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:23:32 -0400 |
commit | 41fb35fabf03bffa812caddf24323d4d06f811ba (patch) | |
tree | f110b59ba635a6a074854e763a4ad60336dbb71d /src/include/fe_utils/string_utils.h | |
parent | a7b5573d665c8a37fad9bc69f44c5b4e8760a73b (diff) | |
download | postgresql-41fb35fabf03bffa812caddf24323d4d06f811ba.tar.gz postgresql-41fb35fabf03bffa812caddf24323d4d06f811ba.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/include/fe_utils/string_utils.h')
0 files changed, 0 insertions, 0 deletions