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

From Merlin Moncure
Subject Re: Temporary tables under hot standby
Date
Msg-id CAHyXU0xyox=B0XsCkSrZVDhpw89_KzynwueSD8bRos3-U6PVPQ@mail.gmail.com
Whole thread Raw
In response to Re: Temporary tables under hot standby  (Simon Riggs <simon@2ndQuadrant.com>)
List pgsql-hackers
On Thu, May 3, 2012 at 4:11 AM, Simon Riggs <simon@2ndquadrant.com> wrote:
> which seems to me to be actually harder than just rewriting as derived
> table and isn't an option on Microstrategy etc, hence my observation
> that GTTs don't help HS much. What I would like to see, one day, is
> for temp tables to work without any changes.

yes. except (global) temp tables can:
*) be updated with data not derived from permanent tables (think:
session management, etc)
*) outlive a single transaction
*) be indexed independently of the sourcing tables
*) be referred to from multiple queries (you can simulate this with
CTE, but that approach obviously has limits)

of course, temp tables that would 'just work' would be wonderful.

merlin


pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: outdated comment in heapam.c
Next
From: Merlin Moncure
Date:
Subject: Re: How hard would it be to support LIKE in return declaration of generic record function calls ?