↑↓ select ↵ open ⌫ change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Functions / Geometric Functions And Operators

Extracts box's diagonal as a line segment (same as lseg(box)).

Reading PG 18current·documented in 8 of 27 versions, 13 to 20

Signatures & examples

diagonal ( box ) → lseg
Extracts box's diagonal as a line segment (same as lseg(box)).
diagonal(box '(1,2),(0,0)') → [(1,2),(0,0)]
Version history 1
  1. 12 → 13 added

Definition snapshot: b7bd9cda · English manual source