postgresql_16:3.5.8.2 Lines
PostgreSQL 16 > The SQL Language > Data Types > Geometric Types > Lines
Lines are represented by the linear equation *A*x + *B*y + *C* = 0, where *A* and *B* are not both zero. Values of type line are input and output in the following form: { *A*, *B*, *C* } Alternatively, any of the following forms can be used for input: [ ( *x1* , *y1* ) , ( *x2* , *y2* ) ] ( ( *x1* , *y1* ) , ( *x2* , *y2* ) ) ( *x1* , *y1* ) , ( *x2* , *y2* ) *x1* , *y1* , *x2* , *y2* where (*x1*,*y1*) and (*x2*,*y2*) are two different points on the line.