| От | Tom Lane |
|---|---|
| Тема | Re: query not using index for descending records? |
| Дата | |
| Msg-id | 25739.1075401655@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: query not using index for descending records? (Stephan Szabo <sszabo@megazone.bigpanda.com>) |
| Список | pgsql-sql |
Stephan Szabo <sszabo@megazone.bigpanda.com> writes:
> Yeah, that's what I figured. I thought it might be useful for people to
> play with though since at least for the integer/float types writing C
> versions of the comparitors is easy. I was thinking for real it'd be nice
> to be able to use the normal comparitor but invert the return value as
> necessary rather than providing two functions, but I didn't look at what
> that would take.
I think the C versions should be written to just call the "normal"
comparators and negate the result, which'll make them one-liner
boilerplate. It's just a matter of grinding out all that boilerplate ...
regards, tom lane
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера