Re: Implementation of global temporary tables?
От | Atri Sharma |
---|---|
Тема | Re: Implementation of global temporary tables? |
Дата | |
Msg-id | CAOeZVidb5CyOKj6+FiP8_zEiGARgh4nhqvYbv0scyf_PQpcTMQ@mail.gmail.com обсуждение исходный текст |
Ответ на | Implementation of global temporary tables? (Pavel Stehule <pavel.stehule@gmail.com>) |
Ответы |
Re: Implementation of global temporary tables?
|
Список | pgsql-hackers |
* We have unlogged tablesSome was changed from 2009:* We have updatable CTEOpened questions:1. Name and conformance with standard of this feature - because we doesn't support modules, a mapping ANSI -> PG should not be trivial2. ImplementationI see three possible ways how to implement it:2.a - using on demand created temp tables - most simple solution, but doesn't help with catalogue bloating2.b - using unlogged tables for holding statistics, relfilenode, and all necessary data3.c - store ephemeral metadata only in memory without MVCC
With 2.a, essentially, we are defining a global definition of a temp table, but the actual per session objects still follow the same rules are our current temp tables do?
2.b seems like a lot of new data, and if we are defining new paths for e.g. statistics for global temp tables, we might end up adding new logic in planner to use those tables. I am not seeing how this will work.
Could you elaborate a bit on 3.c please?
Something that really bothers me here, on a different note, is the catalog churn this could cause. Of course, you mentioned in as a point in your email, but I feel that 2.a's showstopper could be the massive catalog churn it causes. Maybe have a way to manage such tables without getting pg_class to bloat pretty quickly (I am assuming you do not mean metadata as the catalog metadata in 3.c).
Regards,
Atri
В списке pgsql-hackers по дате отправления: