Search Postgresql Archives

Re: auto-reconnect: temp schemas, sequences, transactions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Marek =?utf-8?q?Wi=C4=99ckowski?= <wieckom@xxxxxxx> writes:
> If I understand correctly, Tom's reply in: 
> http://archives.postgresql.org/pgsql-general/2007-06/msg01668.php suggests 
> that temp schemas are kept when a session gets disconnected because 
> connections get automatically re-established with the same backend id, and if 
> this succeeds the old temp tables get picked up by the new connection as if 
> there was no disconnection at all.

Uh, no, surely not.  The schema itself is re-used if it exists, but all
the contained tables get flushed by the new session (if for some reason
the old session failed to do that, as it would in case of a crash).
Re-use of the schema object is just a minor implementation optimization
--- there's no expectation that temp tables would ever survive into
another session.

			regards, tom lane

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux