Re: query plan wierdness?

Поиск
Список
Период
Сортировка
От Joel McGraw
Тема Re: query plan wierdness?
Дата
Msg-id 7B3E33EF2A10A84185E3667F6B9A1B7825EE21@ECIEXCHANGE.eldocomp.com
обсуждение исходный текст
Ответ на query plan wierdness?  (Joel McGraw <jmcgraw@eldocomp.com>)
Список pgsql-performance
Well, you're kind of right.  I removed the limit, and now _both_
versions of the query perform a sequence scan!

Oh, I forgot to include in my original post: this is PostgreSQL 7.3.4
(on x86 Linux and sparc Solaris 6)

-Joel

-----Original Message-----
From: Guido Barosio [mailto:gbarosio@sinectis.com.ar]
Sent: Wednesday, July 07, 2004 2:46 PM
To: Joel McGraw
Cc: pgsql-performance@postgresql.org
Subject: Re: [PERFORM] query plan wierdness?

The limit is tricking you.
I guess a sequential scan is cheaper than an index scan with the limit
26 found there.

I am wrong?

Greets

--
-------------------------------------------
Guido Barosio
Buenos Aires, Argentina
-------------------------------------------

-- CONFIDENTIALITY NOTICE --

This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain
informationthat is privileged, confidential and exempt from disclosure under applicable law. If you are not the
intendedaddressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use,
copy,disclose or distribute to anyone the message or any information contained in the message. If you have received
thismessage in error, please immediately advise the sender by reply email, and delete the message. Thank you. 

В списке pgsql-performance по дате отправления:

Предыдущее
От: Joel McGraw
Дата:
Сообщение: query plan wierdness?
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: query plan wierdness?