`ltree` is a PostgreSQL extension for representing labels of data stored in a hierarchical tree-like structure. Extensive facilities for searching through label trees are provided.
The ltree
bundled extension for PostgreSQL is a contrib module that ships as part of PostgreSQL. It defines an ltree
data type to add functionality for representing labels of data stored in a hierarchical tree-like structure. Extensive facilities for searching through label trees are provided.
ltree
is loaded with CREATE EXTENSION
. See the documentation linked above for details on usage.
For more information see postgresql.