mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-31 10:30:33 +03:00 
			
		
		
		
	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;
 |