Re: Temporary tables under hot standby - Mailing list pgsql-hackers

From Nicolas Barbier
Subject Re: Temporary tables under hot standby
Date
Msg-id CAP-rdTbCr2TAaKgeDVvWGoEMAUqapR9_DHXNnC9Qhir9aZ_ERg@mail.gmail.com
Whole thread Raw
In response to Re: Temporary tables under hot standby  (Simon Riggs <simon@2ndQuadrant.com>)
Responses Re: Temporary tables under hot standby  (Nicolas Barbier <nicolas.barbier@gmail.com>)
Re: Temporary tables under hot standby  (Simon Riggs <simon@2ndQuadrant.com>)
List pgsql-hackers
2012/4/25 Simon Riggs <simon@2ndquadrant.com>:

> So you are saying it is OK to not be able to *create* them on HS, just
> *use* pre-defined tables?
>
> That's almost useless IMHO.
>
> Applications expect to be able to do this all in the same transaction
> on one session
> CREATE TEMP TABLE x;
>  ...DML commands...
> SELECT ... FROM x;

That’s not how standard-like temporary tables work, they are supposed
to be declared beforehand. That makes sense if you consider the schema
and the set of database-using applications as one. I assume that
wanting to define applications independently from the database schema
is the reason of existence for the PG-like temporary transactions.

The way standard-like temporary tables work is exactly why I assume
Noah proposes to implement them: because they work nicely with HS.

Nicolas

--
A. Because it breaks the logical sequence of discussion.
Q. Why is top posting bad?


pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: [v9.3] Extra Daemons (Re: elegant and effective way for running jobs inside a database)
Next
From: Nicolas Barbier
Date:
Subject: Re: Temporary tables under hot standby