[COMMITTERS] pgsql: Fix use-after-free around DISTINCT transition function calls.

2016-10-17 Thread Heikki Linnakangas
Fix use-after-free around DISTINCT transition function calls. Have tuplesort_gettupleslot() copy the contents of its current table slot as needed. This is based on an approach taken by tuplestore_gettupleslot(). In the future, tuplesort_gettupleslot() may also be taught to avoid copying the tuple

[COMMITTERS] pgsql: Fix use-after-free around DISTINCT transition function calls.

2016-10-17 Thread Heikki Linnakangas
Fix use-after-free around DISTINCT transition function calls. Have tuplesort_gettupleslot() copy the contents of its current table slot as needed. This is based on an approach taken by tuplestore_gettupleslot(). In the future, tuplesort_gettupleslot() may also be taught to avoid copying the tuple