Re: SELECT * FROM <table> LIMIT 1; is really slow
От
Manfred Koizar
Тема
Re: SELECT * FROM <table> LIMIT 1; is really slow
Дата
Msg-id
du7cb0hofgubhhfnbp2t46pbkrqf92cc56@email.aon.at
Ответ на
Список
Дерево обсуждения
SELECT * FROM <table> LIMIT 1; is really slow David Blasby <dblasby@refractions.net>
Re: SELECT * FROM <table> LIMIT 1; is really slow Tom Lane <tgl@sss.pgh.pa.us>
Re: SELECT * FROM <table> LIMIT 1; is really slow Christopher Kings-Lynne <chriskl@familyhealth.com.au>
Re: SELECT * FROM <table> LIMIT 1; is really slow Tom Lane <tgl@sss.pgh.pa.us>
Re: SELECT * FROM <table> LIMIT 1; is really slow Dennis Bjorklund <db@zigo.dhs.org>
Re: SELECT * FROM <table> LIMIT 1; is really slow Tom Lane <tgl@sss.pgh.pa.us>
Re: SELECT * FROM <table> LIMIT 1; is really slow Manfred Koizar <mkoi-pg@aon.at>
Re: SELECT * FROM <table> LIMIT 1; is really slow Tom Lane <tgl@sss.pgh.pa.us>
Re: SELECT * FROM <table> LIMIT 1; is really slow Manfred Koizar <mkoi-pg@aon.at>
Re: SELECT * FROM <table> LIMIT 1; is really slow Alvaro Herrera <alvherre@dcc.uchile.cl>
Re: SELECT * FROM <table> LIMIT 1; is really slow Manfred Koizar <mkoi-pg@aon.at>
Re: SELECT * FROM <table> LIMIT 1; is really slow Tom Lane <tgl@sss.pgh.pa.us>
Re: SELECT * FROM <table> LIMIT 1; is really slow Alvaro Herrera <alvherre@dcc.uchile.cl>
Re: SELECT * FROM <table> LIMIT 1; is really slow Tom Lane <tgl@sss.pgh.pa.us>
Re: SELECT * FROM <table> LIMIT 1; is really slow Alvaro Herrera <alvherre@dcc.uchile.cl>
Re: SELECT * FROM <table> LIMIT 1; is really slow Tom Lane <tgl@sss.pgh.pa.us>
Re: SELECT * FROM <table> LIMIT 1; is really slow Alvaro Herrera <alvherre@dcc.uchile.cl>
Re: SELECT * FROM <table> LIMIT 1; is really slow Tom Lane <tgl@sss.pgh.pa.us>
Re: SELECT * FROM <table> LIMIT 1; is really slow Alvaro Herrera <alvherre@dcc.uchile.cl>
Re: SELECT * FROM <table> LIMIT 1; is really slow Alvaro Herrera <alvherre@dcc.uchile.cl>
Re: SELECT * FROM <table> LIMIT 1; is really slow Manfred Koizar <mkoi-pg@aon.at>
Re: SELECT * FROM <table> LIMIT 1; is really slow Alvaro Herrera <alvherre@dcc.uchile.cl>
Nested transactions and tuple header info Bruce Momjian <pgman@candle.pha.pa.us>
Re: Nested transactions and tuple header info Tom Lane <tgl@sss.pgh.pa.us>
Re: Nested transactions and tuple header info Bruce Momjian <pgman@candle.pha.pa.us>
Re: Nested transactions and tuple header info Tom Lane <tgl@sss.pgh.pa.us>
Re: Nested transactions and tuple header info Bruce Momjian <pgman@candle.pha.pa.us>
Re: Nested transactions and tuple header info Alvaro Herrera <alvherre@dcc.uchile.cl>
Re: Nested transactions and tuple header info Bruce Momjian <pgman@candle.pha.pa.us>
Re: Nested transactions and tuple header info Tom Lane <tgl@sss.pgh.pa.us>
Re: Nested transactions and tuple header info Alvaro Herrera <alvherre@dcc.uchile.cl>
Re: Nested transactions and tuple header info Tom Lane <tgl@sss.pgh.pa.us>
Re: Nested transactions and tuple header info Bruce Momjian <pgman@candle.pha.pa.us>
Re: Nested transactions and tuple header info Bruce Momjian <pgman@candle.pha.pa.us>
Re: Nested transactions and tuple header info Alvaro Herrera <alvherre@dcc.uchile.cl>
Re: Nested transactions and tuple header info Alvaro Herrera <alvherre@dcc.uchile.cl>
Re: Nested transactions and tuple header info Alvaro Herrera <alvherre@dcc.uchile.cl>
Re: Nested transactions and tuple header info Tom Lane <tgl@sss.pgh.pa.us>
Re: Nested transactions and tuple header info Alvaro Herrera <alvherre@dcc.uchile.cl>
Re: Nested transactions and tuple header info Bruce Momjian <pgman@candle.pha.pa.us>
Re: SELECT * FROM <table> LIMIT 1; is really slow Manfred Koizar <mkoi-pg@aon.at>
Re: SELECT * FROM <table> LIMIT 1; is really slow Gaetano Mendola <mendola@bigfoot.com>
Re: SELECT * FROM <table> LIMIT 1; is really slow David Blasby <dblasby@refractions.net>
Re: SELECT * FROM <table> LIMIT 1; is really slow Tom Lane <tgl@sss.pgh.pa.us>
Re: SELECT * FROM <table> LIMIT 1; is really slow pgsql@mohawksoft.com
Re: SELECT * FROM <table> LIMIT 1; is really slow David Blasby <dblasby@refractions.net>
Re: SELECT * FROM <table> LIMIT 1; is really slow David Blasby <dblasby@refractions.net>
Re: SELECT * FROM <table> LIMIT 1; is really slow Tom Lane <tgl@sss.pgh.pa.us>
Re: SELECT * FROM <table> LIMIT 1; is really slow Paul Ramsey <pramsey@refractions.net>
On Wed, 26 May 2004 18:17:55 -0400, Tom Lane wrote: >(Some days I think we should dump >VACUUM FULL, because it's optimized for a case that's no longer very >interesting...) So we still have to stick with VACUUM FULL for some time, right? The next set of compatibility breakers I'm currently working on requires a change in VACUUM FULL behaviour. I would only move tuples that are visible to all running transactions. OTOH I wouldn't stop at the first unmovable tuple. WithX active tuple. free space or dead tupley new tuple, not yet visible to a running transactionz deleted tuple, still visible to a running transaction the current implementation transforms this relation XXXX.... XXXX.... XXXX.... XXXX.... XXyX.... XXXX.... XzXX.... XXXX.... into XXXXXXXX XXXXXzXX XXXXXXXX XXXXXXyX The new implementation would leave it as XXXXXXXX XXXXXXXX XXXXXXXX XXXXXX.. ..y..... ........ .z...... If there are concurrent long-running transactions, the new VACUUM FULL wouldn't truncate the relation as aggressively as it does now. It could leave the relation with lots of free space near the end. This was absolutely unacceptable at the time when VACUUM FULL was designed. But now we could use lazy VACUUM as an excuse for VACUUM FULL not working so hard. After the transaction still seeing z terminates, VACUUM (without FULL) can truncate the relation to XXXXXXXX XXXXXXXX XXXXXXXX XXXXXX.. ..y..... and when y is updated the new version will be stored in a lower block and plain VACUUM can truncate the relation again: XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXY. AFAICS this would make vacuum.c much simpler (no more chain moves). Clearly this change alone doesn't have any merit. But would such a patch have any chance of being accepted, if it facilitates improvements in other areas? ServusManfred
В списке pgsql-hackers по дате отправления