mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
- Add aligment of variable data types
- Add aligment for interval data types - Avoid floating point overflow in penalty functions Janko Richter <jankorichter@yahoo.de> and teodor
This commit is contained in:
@ -41,6 +41,17 @@ typedef struct
|
||||
* Numeric btree functions
|
||||
*/
|
||||
|
||||
|
||||
#define penalty_range_enlarge(olower,oupper,nlower,nupper) do { \
|
||||
res = 0; \
|
||||
if ( (nupper) > (oupper) ) \
|
||||
res += ( (nupper) - (oupper) ); \
|
||||
if ( (olower) > (nlower) ) \
|
||||
res += ( (olower) - (nlower) ); \
|
||||
} while (0);
|
||||
|
||||
|
||||
|
||||
extern bool gbt_num_consistent( const GBT_NUMKEY_R * key , const void * query,
|
||||
const StrategyNumber * strategy , bool is_leaf,
|
||||
const gbtree_ninfo * tinfo );
|
||||
|
Reference in New Issue
Block a user