I have some ids in a table, but there are gaps in between. I want to select these gaps.
For example, the integer numbers in my table are:
1
2
5
9
15
And I want to select:
3
4
6
7
8
10
11
12
13
14
My version of PostgreSQL is 9.1.1, so I cannot use int4range.