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

From Heikki Linnakangas
Subject Re: Transactions and temp tables
Date
Msg-id 49364748.4060402@enterprisedb.com
Whole thread Raw
In response to Re: Transactions and temp tables  (Emmanuel Cecchet <manu@frogthinker.org>)
List pgsql-hackers
Emmanuel Cecchet wrote:
> I think that the Assert in is_temp_rel(Oid) in tablecmds.c should be 
> replaced by if (on_commits == NULL) return false;
> As the use case below shows, a regular table can be created and hold a 
> LOCKTAG_RELATION lock that will trigger the call to is_temp_rel in 
> is_preparable_locktag. The assert will break if no temp table was accessed.

Yes, you're right.

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com


pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: pg_stop_backup wait bug fix
Next
From: Heikki Linnakangas
Date:
Subject: Re: Transactions and temp tables