Re: Selecting pairs of numbers - Mailing list pgsql-general

From Charles Clavadetscher
Subject Re: Selecting pairs of numbers
Date
Msg-id 06c501d0fff6$11e6f210$35b4d630$@swisspug.org
Whole thread Raw
In response to Re: Selecting pairs of numbers  (Adrian Klaver <adrian.klaver@aklaver.com>)
Responses Re: Selecting pairs of numbers
List pgsql-general
> 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.



pgsql-general by date:

Previous
From: Sachin Srivastava
Date:
Subject: How to reduce pg_dump backup time
Next
From: Craig Ringer
Date:
Subject: Re: BDR Rejoin of failed node, hangs.