Simon Riggs <simon(dot)riggs(at)enterprisedb(dot)com> writes:
> Sounds like a good change.
> Surely we need a test to exercise this works? Otherwise ready...
There are lots of places in the core regression tests where we'd have
used a temp table, except that we needed to do EXPLAIN and the results
would've been unstable, so we used a short-lived plain table instead.
Find one of those and change it to use a temp table.
regards, tom lane