Re: [Patch] Temporary tables that do not bloat pg_catalog (a.k.a fast temp tables)
От
Alvaro Herrera
Тема
Re: [Patch] Temporary tables that do not bloat pg_catalog
(a.k.a fast temp tables)
Дата
Msg-id
20160822205011.GA149299@alvherre.pgsql
Ответ на
Список
Дерево обсуждения
[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>
Robert Haas wrote: > However: > > 1. The number of tables for which we would need to add a duplicate, > unlogged table is formidable. You need pg_attribute, pg_attrdef, > pg_constraint, pg_description, pg_type, pg_trigger, pg_rewrite, etc. > And the backend changes needed so that we used the unlogged copy for > temp tables and the permanent copy for regular tables is probably > really large. Check. This is the most serious issue, IMV. > 2. You can't write to unlogged tables on standby servers, so this > doesn't help solve the problem of wanting to use temporary tables on > standbys. Check. We could think about relaxing this restriction, which would enable the feature to satisfy that use case. (I think the main complication there is the init fork of btrees on those catalogs; other relations could just be truncated to empty on restart.) > 3. While it makes creating temporary tables a lighter-weight > operation, because you no longer need to write WAL for the catalog > entries, there's probably still substantially more overhead than just > stuffing them in backend-local RAM. So the performance benefits are > probably fairly modest. You also save catalog bloat ... These benefits may not be tremendous, but I think they may be good enough for many users. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
В списке pgsql-hackers по дате отправления
От: Robert Haas
Дата: