• Tom Lane's avatar
    Prevent ExecInsert() and ExecUpdate() from scribbling on the result tuple · 76ce39e3
    Tom Lane authored
    slot of the topmost plan node when a trigger returns a modified tuple.
    These appear to be the only places where a plan node's caller did not
    treat the result slot as read-only, which is an assumption that nodeUnique
    makes as of 8.1.  Fixes trigger-vs-DISTINCT bug reported by Frank van Vugt.
    76ce39e3
execMain.c 60.4 KB