Re: Order by optimisations?

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: Order by optimisations?
Дата
Msg-id 42D72110.8010001@familyhealth.com.au
обсуждение исходный текст
Ответ на Re: Order by optimisations?  ("Andrew Dunstan" <andrew@dunslane.net>)
Список pgsql-hackers
> I assume that this is program generated SQL, as I hope a human would know
> better than to write this. In which case, isn't the answer to improve the
> generator rather than expect postgres to make up for its defficiencies?

Well, the issue in my case is we have user food diaries.  Usually, 
99.9999% of the time we pull up a single date of their diary.  However, 
for printing purposes we need a range.

It's a large query, so it's implemented as a simple PL/PSQL stored 
procedure.

I was trying to avoid having to c&p the entire stored proc to make a 
'range version'.

If PostgreSQL was smart enough to deal with a range of 1 day and a sort 
on it efficiently, I'd just use the range stored proc exclusively....

Chris



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

Предыдущее
От: "Luke Lonergan"
Дата:
Сообщение: Re: multibyte regression tests
Следующее
От: Christopher Kings-Lynne
Дата:
Сообщение: Re: Order by optimisations?