Fix relcache leak when row triggers on partitions are fired by COPY.
Robert Haas <rhaas@postgresql.org>
Fix relcache leak when row triggers on partitions are fired by COPY. Thomas Munro, reviewed by Amit Langote Discussion: http://postgr.es/m/CAEepm=15Jss-yhFApuKzxcoCuFnb8TR8iQiWMjG=CLYPx48QLw@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/copy.c | modified | +3 −0 |
| src/backend/commands/trigger.c | modified | +1 −10 |
| src/backend/executor/execMain.c | modified | +21 −18 |
| src/include/executor/executor.h | modified | +1 −0 |
| src/test/regress/expected/triggers.out | modified | +10 −0 |
| src/test/regress/sql/triggers.sql | modified | +12 −0 |
Discussion
- Relcache leak when row triggers on partitions are fired by COPY 5 messages · 2017-05-16