Re: what is difference between LOCAL and GLOBAL TEMP TABLES in PostgreSQL
От | Jaime Casanova |
---|---|
Тема | Re: what is difference between LOCAL and GLOBAL TEMP TABLES in PostgreSQL |
Дата | |
Msg-id | c2d9e70e0707021846g4e75ff27l500e158339d62018@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: what is difference between LOCAL and GLOBAL TEMP TABLES in PostgreSQL (Alvaro Herrera <alvherre@commandprompt.com>) |
Ответы |
Re: what is difference between LOCAL and GLOBAL TEMP TABLES in PostgreSQL
|
Список | pgsql-hackers |
On 7/3/07, Alvaro Herrera <alvherre@commandprompt.com> wrote: > Tom Lane escribió: > > Jim Nasby <decibel@decibel.org> writes: > > > I've often thought that having global temp tables would be a really > > > good idea, since it would drastically reduce the need to vacuum > > > catalog tables, > > > > I rather doubt that. The most likely implementation would involve > > cloning a "template" entry into pg_class. > > How about a new relkind which causes the table to be located in > PGDATA/base/<dboid>/pg_temp_<backendid>/<relfilenode> > > So each backend can have its own copy of the table with the same > relfilenode; there's no need for extra catalog entries. > we recently make the path for temp files to be just base/pgsql_tmp or pg_tblspc/<tblspc_oid>/pgsql_tmp. do we want to complicate things again? while not just a new rekind indicating this is a template and not and actual table. and using that template for creating the actual tables? -- regards, Jaime Casanova "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs and the universe trying to produce bigger and better idiots. So far, the universe is winning." Richard Cook
В списке pgsql-hackers по дате отправления: