Unique namespace per session for temp tables?

Поиск
Список
Период
Сортировка
От Emmanuel Cecchet
Тема Unique namespace per session for temp tables?
Дата
Msg-id 4A29A4EE.3030002@asterdata.com
обсуждение исходный текст
Ответы Re: Unique namespace per session for temp tables?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi all,<br /><br /> Following the issue with temp tables and 2PC, we thought that each session in Postgres was
supposedto generate a unique namespace for its temporary tables.<br /> But if we execute the following scenario:<br
/><strong><br/> First session</strong>. <br /> BEGIN; <br /> CREATE TEMP TABLE foo (x int) ON COMMIT DROP; <br />
PREPARETRANSACTION 't1'; <br /><strong>Disconnect</strong>. <br /><strong>Wait</strong> (at least until backend process
forfirst session exits). <br /><strong>Reconnect new session</strong>. <br /> CREATE TEMP TABLE foo (x int); <--
blocksuntil t1 commits <br /><br /> The issue we see is that a totally unrelated session (which should have a unique
temporaryschema), reuses the temporary schema that is locked away in the prepared transaction. Isn't that breaking the
assumptionthat each session should have a unique schema for its temp tables?<br /><br /> Thanks in advance for your
insights.<br/> Emmanuel<br /><pre class="moz-signature" cols="72">-- 
 
Emmanuel Cecchet
Aster Data Systems
Web: <a class="moz-txt-link-freetext" href="http://www.asterdata.com">http://www.asterdata.com</a>
</pre>

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: 8.4b2 tsearch2 strange error
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Unique namespace per session for temp tables?