Re: Drupal and PostgreSQL - performance issues?

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: Drupal and PostgreSQL - performance issues?
Дата
Msg-id 20081016144046.GH4452@tamriel.snowman.net
обсуждение исходный текст
Ответ на Re: Drupal and PostgreSQL - performance issues?  (Tomasz Ostrowski <tometzky@batory.org.pl>)
Ответы Re: Drupal and PostgreSQL - performance issues?
Re: Drupal and PostgreSQL - performance issues?
Список pgsql-general
* Tomasz Ostrowski (tometzky@batory.org.pl) wrote:
> There is an issue report with lengthy discussion on drupal.org:
> http://drupal.org/node/196862
> And a proposed patch:
> http://drupal.org/files/issues/drupal_lookup_path-5.x.patch.txt
> which uses "limit 1". This patch is not applied though. I don't know why.

I don't see 'limit 1' anywhere in that patch..  And you don't want to
use 'limit 1' *and* count(*), that doesn't do what you're expecting
(since count(*) is an aggregate and limit 1 is applied after).  You
really want to do something more like:

select true from tab1 limit 1;

And then test if you got back any rows or not (which might be what
*your* patch does, hadn't looked at it yet).

    Thanks,

        Stephen

Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Numbering rows
Следующее
От: "Merlin Moncure"
Дата:
Сообщение: Re: PL/pgSQL stored procedure returning multiple result sets (SELECTs)?