Re: [Patch] Temporary tables that do not bloat pg_catalog (a.k.a fast temp tables)
От
Tom Lane
Тема
Re: [Patch] Temporary tables that do not bloat pg_catalog (a.k.a fast temp tables)
Дата
Msg-id
1184.1469890030@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
[Patch] Temporary tables that do not bloat pg_catalog (a.k.a fast
temp tables) Aleksander Alekseev <a.alekseev@postgrespro.ru>
Re: [Patch] Temporary tables that do not bloat pg_catalog
(a.k.a fast temp tables) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [Patch] Temporary tables that do not bloat pg_catalog
(a.k.a fast temp tables) Pavel Stehule <pavel.stehule@gmail.com>
Re: [Patch] Temporary tables that do not bloat pg_catalog (a.k.a fast temp tables) Tom Lane <tgl@sss.pgh.pa.us>
Re: [Patch] Temporary tables that do not bloat pg_catalog
(a.k.a fast temp tables) Christoph Berg <myon@debian.org>
Re: [Patch] Temporary tables that do not bloat pg_catalog
(a.k.a fast temp tables) Christoph Berg <myon@debian.org>
Re: [Patch] Temporary tables that do not bloat pg_catalog
(a.k.a fast temp tables) David Steele <david@pgmasters.net>
Re: [Patch] Temporary tables that do not bloat pg_catalog
(a.k.a fast temp tables) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [Patch] Temporary tables that do not bloat pg_catalog
(a.k.a fast temp tables) Aleksander Alekseev <a.alekseev@postgrespro.ru>
Re: [Patch] Temporary tables that do not bloat pg_catalog
(a.k.a fast temp tables) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [Patch] Temporary tables that do not bloat pg_catalog (a.k.a fast temp tables) Tom Lane <tgl@sss.pgh.pa.us>
Re: [Patch] Temporary tables that do not bloat pg_catalog
(a.k.a fast temp tables) Aleksander Alekseev <a.alekseev@postgrespro.ru>
Re: [Patch] Temporary tables that do not bloat pg_catalog
(a.k.a fast temp tables) Robert Haas <robertmhaas@gmail.com>
Re: [Patch] Temporary tables that do not bloat pg_catalog
(a.k.a fast temp tables) Anastasia Lubennikova <a.lubennikova@postgrespro.ru>
Re: [Patch] Temporary tables that do not bloat pg_catalog
(a.k.a fast temp tables) Dmitry Dolgov <9erthalion6@gmail.com>
Re: [Patch] Temporary tables that do not bloat pg_catalog
(a.k.a fast temp tables) Robert Haas <robertmhaas@gmail.com>
Re: [Patch] Temporary tables that do not bloat pg_catalog (a.k.a fast temp tables) Tom Lane <tgl@sss.pgh.pa.us>
Re: [Patch] Temporary tables that do not bloat pg_catalog
(a.k.a fast temp tables) Andres Freund <andres@anarazel.de>
Re: [Patch] Temporary tables that do not bloat pg_catalog (a.k.a fast temp tables) Tom Lane <tgl@sss.pgh.pa.us>
Re: [Patch] Temporary tables that do not bloat pg_catalog
(a.k.a fast temp tables) Andres Freund <andres@anarazel.de>
Re: [Patch] Temporary tables that do not bloat pg_catalog
(a.k.a fast temp tables) Aleksander Alekseev <a.alekseev@postgrespro.ru>
Re: [Patch] Temporary tables that do not bloat pg_catalog
(a.k.a fast temp tables) Robert Haas <robertmhaas@gmail.com>
Re: [Patch] Temporary tables that do not bloat pg_catalog
(a.k.a fast temp tables) Aleksander Alekseev <a.alekseev@postgrespro.ru>
Re: [Patch] Temporary tables that do not bloat pg_catalog
(a.k.a fast temp tables) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [Patch] Temporary tables that do not bloat pg_catalog
(a.k.a fast temp tables) Jim Nasby <Jim.Nasby@BlueTreble.com>
Re: [Patch] Temporary tables that do not bloat pg_catalog
(a.k.a fast temp tables) Robert Haas <robertmhaas@gmail.com>
Re: [Patch] Temporary tables that do not bloat pg_catalog
(a.k.a fast temp tables) Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [Patch] Temporary tables that do not bloat pg_catalog
(a.k.a fast temp tables) Andres Freund <andres@anarazel.de>
Re: [Patch] Temporary tables that do not bloat pg_catalog
(a.k.a fast temp tables) Aleksander Alekseev <a.alekseev@postgrespro.ru>
Re: [Patch] Temporary tables that do not bloat pg_catalog (a.k.a fast
temp tables) Greg Stark <stark@mit.edu>
Re: Re: [Patch] Temporary tables that do not bloat
pg_catalog (a.k.a fast temp tables) Claudio Freire <klaussfreire@gmail.com>
Re: [Patch] Temporary tables that do not bloat pg_catalog
(a.k.a fast temp tables) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [Patch] Temporary tables that do not bloat pg_catalog
(a.k.a fast temp tables) Robert Haas <robertmhaas@gmail.com>
Re: [Patch] Temporary tables that do not bloat pg_catalog
(a.k.a fast temp tables) Vik Fearing <vik@2ndquadrant.fr>
Re: [Patch] Temporary tables that do not bloat pg_catalog
(a.k.a fast temp tables) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [Patch] Temporary tables that do not bloat pg_catalog
(a.k.a fast temp tables) Andres Freund <andres@anarazel.de>
Re: [Patch] Temporary tables that do not bloat pg_catalog
(a.k.a fast temp tables) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [Patch] Temporary tables that do not bloat pg_catalog (a.k.a fast temp tables) Andres Freund <andres@anarazel.de>
Re: [Patch] Temporary tables that do not bloat pg_catalog
(a.k.a fast temp tables) Corey Huinker <corey.huinker@gmail.com>
Re: [Patch] Temporary tables that do not bloat pg_catalog
(a.k.a fast temp tables) Claudio Freire <klaussfreire@gmail.com>
Re: [Patch] Temporary tables that do not bloat pg_catalog
(a.k.a fast temp tables) Andres Freund <andres@anarazel.de>
Re: [Patch] Temporary tables that do not bloat pg_catalog
(a.k.a fast temp tables) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [Patch] Temporary tables that do not bloat pg_catalog (a.k.a fast temp tables) Andres Freund <andres@anarazel.de>
Re: [Patch] Temporary tables that do not bloat pg_catalog
(a.k.a fast temp tables) Corey Huinker <corey.huinker@gmail.com>
Re: [Patch] Temporary tables that do not bloat pg_catalog
(a.k.a fast temp tables) Claudio Freire <klaussfreire@gmail.com>
Re: [Patch] Temporary tables that do not bloat pg_catalog
(a.k.a fast temp tables) Andres Freund <andres@anarazel.de>
Re: [Patch] Temporary tables that do not bloat pg_catalog
(a.k.a fast temp tables) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [Patch] Temporary tables that do not bloat pg_catalog
(a.k.a fast temp tables) Claudio Freire <klaussfreire@gmail.com>
Re: [Patch] Temporary tables that do not bloat pg_catalog
(a.k.a fast temp tables) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [Patch] Temporary tables that do not bloat pg_catalog
(a.k.a fast temp tables) Claudio Freire <klaussfreire@gmail.com>
Re: [Patch] Temporary tables that do not bloat pg_catalog
(a.k.a fast temp tables) Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [Patch] Temporary tables that do not bloat pg_catalog
(a.k.a fast temp tables) Claudio Freire <klaussfreire@gmail.com>
Re: [Patch] Temporary tables that do not bloat pg_catalog
(a.k.a fast temp tables) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [Patch] Temporary tables that do not bloat pg_catalog
(a.k.a fast temp tables) Geoff Winkless <pgsqladmin@geoff.dj>
Pavel Stehule writes: > But there are some patterns used with work with temp tables,that should not > working, and we would to decide if we prepare workaround or not. > -- problematic pattern (old code) > IF NOT EXISTS(SELECT * FROM pg_class WHERE ....) THEN > CREATE TEMP TABLE xxx() > ELSE > TRUNCATE TABLE xxx; > END IF; > -- modern patter (new code) > BEGIN > TRUNCATE TABLE xxx; > EXCEPTION WHEN ..... THEN > CREATE TEMP TABLE(...) > END; If the former stops working, that's a sufficient reason to reject the patch: it hasn't been thought through carefully enough. The key reason why I don't think that's negotiable is that if there aren't (apparently) catalog entries corresponding to the temp tables, that will almost certainly break many things in the backend and third-party extensions, not only user code patterns like this one. We'd constantly be fielding bug reports that "feature X doesn't work with temp tables anymore". In short, I think that the way to make something like this work is to figure out how to have "virtual" catalog rows describing a temp table. Or maybe to partition the catalogs so that vacuuming away temp-table rows is easier/cheaper than today. regards, tom lane
В списке pgsql-hackers по дате отправления
От: David G. Johnston
Дата: