]> granicus.if.org Git - postgresql/commit
Skip truncating ON COMMIT DELETE ROWS temp tables, if the transaction hasn't
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 29 Jan 2013 08:40:22 +0000 (10:40 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 29 Jan 2013 08:43:33 +0000 (10:43 +0200)
commitc9d7dbacd387ab3814bc6b38010a9e72a02ea4f5
treee785a23531d42bcfc482f0f6049de00b9ce3337e
parentfd4ced5230162b50a5c9d33b4bf9cfb1231aa62e
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.
src/backend/commands/tablecmds.c