Re: Temporary tables under hot standby

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: Temporary tables under hot standby
Дата
Msg-id CAHyXU0xyox=B0XsCkSrZVDhpw89_KzynwueSD8bRos3-U6PVPQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Temporary tables under hot standby  (Simon Riggs <simon@2ndQuadrant.com>)
Список 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 по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: outdated comment in heapam.c
Следующее
От: Merlin Moncure
Дата:
Сообщение: Re: How hard would it be to support LIKE in return declaration of generic record function calls ?