Re: Transactions and temp tables - Mailing list pgsql-hackers

From Emmanuel Cecchet
Subject Re: Transactions and temp tables
Date
Msg-id 493D79C0.7080405@frogthinker.org
Whole thread Raw
In response to Re: Transactions and temp tables  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
List pgsql-hackers
Hi all,

Here is a new version of the patch still based on the last proposal by
Heikki.
This patch only support temp tables that are created AND dropped in the
same transaction. This works with any kind of temp table (with on commit
options or not).
This simplifies the problem since the temp tables we consider here
cannot be accessed by another backend anyway since their scope is the
one of the transaction.
We do NOT allow:
- access to temp tables that were not created AND dropped in the transaction
- created temp tables that are not dropped at prepare time
- dropped temp tables that were not created in the transaction

The attached patch has a number of tests for all these cases including
sequences and index on temp tables.

Let me know what you think
Emmanuel

--
Emmanuel Cecchet
FTO @ Frog Thinker
Open Source Development & Consulting
--
Web: http://www.frogthinker.org
email: manu@frogthinker.org
Skype: emmanuel_cecchet


Attachment

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: new vacuum is slower for small tables
Next
From: Tom Lane
Date:
Subject: Re: [COMMITTERS] pgsql: Properly unregister OpenSSL callbacks when libpq is done with