Re: Selecting pairs of numbers

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: Selecting pairs of numbers
Дата
Msg-id A737B7A37273E048B164557ADEF4A58B50FB371E@ntex2010i.host.magwien.gv.at
обсуждение исходный текст
Ответ на Re: Selecting pairs of numbers  ("Charles Clavadetscher" <clavadetscher@swisspug.org>)
Список pgsql-general
Charles Clavadetscher wrote:
>> aklaver@test=> create table pr_test(x int, y int);
>>
>> aklaver@test=> select * from pr_test  where (x, y) between (1, 3) and
>> (3,2) order by x,y;
>>   x | y
>> ---+---
>>   1 | 3
>>   1 | 4
>>   2 | 1
>>   2 | 2
>>   2 | 3
>>   2 | 4
>>   3 | 1
>>   3 | 2
> 
> +1, nice.

And the really cool thing about it is that it will work well
with a combined index on (x, y).

Yours,
Laurenz Albe

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

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: BDR Rejoin of failed node, hangs.
Следующее
От: Steve Pritchard
Дата:
Сообщение: Recording exceptions within function (autonomous transactions?)