Re: [HACKERS] use of SEQ_MINVALUE in btree_gin

2016-07-12 Thread Tom Lane
Peter Eisentraut writes: > btree_gin uses SEQ_MINVALUE as a way to get the smallest int64 value. > This is actually wrong because the smallest int64 value is > SEQ_MINVALUE-1, so this might be slightly broken. > The whole thing was done as a convenience when

[HACKERS] use of SEQ_MINVALUE in btree_gin

2016-07-11 Thread Peter Eisentraut
btree_gin uses SEQ_MINVALUE as a way to get the smallest int64 value. This is actually wrong because the smallest int64 value is SEQ_MINVALUE-1, so this might be slightly broken. The whole thing was done as a convenience when INT64_IS_BUSTED had to be considered, but I think we can get rid of