↑↓ select↵ open⌫ change scopeOpen full search

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

Wiki / Functions

polygon

Converts box to a 4-point polygon.

English manual coverage begins with PostgreSQL 7.1. Source history and runtime observations have their own recorded version boundaries.

Reading PG 18·Select a recorded version

group
geometry
group label
Geometric Functions And Operators
lang
en
layout
table-new
pages
functions-geometry.html
prose only
false

Definition PG 18

Converts box to a 4-point polygon.

Signatures and overloads

polygon ( box ) → polygon → polygon
Converts box to a 4-point polygon.
polygon ( circle ) → polygon → polygon
Converts circle to a 12-point polygon.
polygon ( integer, circle ) → polygon → polygon
Converts circle to an n-point polygon.
polygon ( path ) → polygon → polygon
Converts closed path to a polygon with the same list of points.

Compare versions

Source references

Full definition and evidence JSON

Definition sources

center · PostgreSQL 18 · wiki-repair-20261023:45698fd295f56910d6cecc26b56843d54684bb0d98f12d1125b3886d89aefe5f

Text language: en · wiki-repair-20261023:45698fd295f56910d6cecc26b56843d54684bb0d98f12d1125b3886d89aefe5f