mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-15 08:20:16 +08:00
e57ab04565
attached to the same message with the Earth Distance patches. Recent changes include changing the subscript in one place I forgot in the previous bugfix patch. A couple of added regression tests, which should help catch this mistake if it reappears. I also put in a limit of 100 dimensions in cube_large and cube_in to prevent making it easy to create very large cubes. Changing one define in cubedata.h will raise the limit if some needs more dimensions. Bruno Wolff III
8 lines
160 B
C
8 lines
160 B
C
#define CUBE_MAX_DIM (100)
|
|
typedef struct NDBOX
|
|
{
|
|
unsigned int size; /* required to be a Postgres varlena type */
|
|
unsigned int dim;
|
|
double x[1];
|
|
} NDBOX;
|