mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-13 14:13:23 +02:00
Get rid of VARATT_SIZE and VARATT_DATA, which were simply redundant with VARSIZE and VARDATA, and as a consequence almost no code was using the longer names. Rename the length fields of struct varlena and various derived structures to catch anyplace that was accessing them directly; and clean up various places so caught. In itself this patch doesn't change any behavior at all, but it is necessary infrastructure if we hope to play any games with the representation of varlena headers. Greg Stark and Tom Lane
11 lines
244 B
C
11 lines
244 B
C
/* $PostgreSQL: pgsql/contrib/cube/cubedata.h,v 1.8 2007/02/27 23:48:05 tgl Exp $ */
|
|
|
|
#define CUBE_MAX_DIM (100)
|
|
|
|
typedef struct NDBOX
|
|
{
|
|
int32 vl_len_; /* varlena header (do not touch directly!) */
|
|
unsigned int dim;
|
|
double x[1];
|
|
} NDBOX;
|