Skip truncating ON COMMIT DELETE ROWS temp tables, if the transaction hasn't touched any temporary tables.
We could try harder, and keep track of whether we've inserted to any temp tables, rather than accessed them, and which temp tables have been inserted to. But this is dead simple, and already covers many interesting scenarios. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/c9d7dbacd387ab3814bc6b38010a9e72a02ea4f5 Modified Files -------------- src/backend/commands/tablecmds.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) -- Sent via pgsql-committers mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers
