postgresql_16:3.5.8.4 Boxes
PostgreSQL 16 > The SQL Language > Data Types > Geometric Types > Boxes
Boxes are represented by pairs of points that are opposite corners of the box. Values of type box are specified using any of the following syntaxes: ( ( *x1* , *y1* ) , ( *x2* , *y2* ) ) ( *x1* , *y1* ) , ( *x2* , *y2* ) *x1* , *y1* , *x2* , *y2* where (*x1*,*y1*) and (*x2*,*y2*) are any two opposite corners of the box.
Boxes are output using the second syntax.
Any two opposite corners can be supplied on input, but the values will be reordered as needed to store the upper right and lower left corners, in that order.