# Extending Prisma 8 with Typed Postgres ltree

DevFeed: [Extending Prisma 8 with Typed Postgres ltree](<https://devfeed.tech/articles/extending-prisma-8-with-typed-postgres-ltree-47729.md>)

Original publisher: [Read original article](<https://www.prisma.io/blog/prisma-next-ltree-extension>)

Author: Jason Procka

Published: 2026-07-20T00:00:00Z

Content type: tutorial

Language: en

Sources: [Prisma](<https://devfeed.tech/sources/prisma-blog.md>)

Topics: [PostgreSQL](<https://devfeed.tech/topics/postgresql.md>), [Prisma](<https://devfeed.tech/topics/prisma.md>), [Object-relational mapping](<https://devfeed.tech/topics/orm.md>), [Database](<https://devfeed.tech/topics/database.md>), [SQL](<https://devfeed.tech/topics/sql.md>)

Tags: [orm](<https://devfeed.tech/tags/orm.md>), [postgres](<https://devfeed.tech/tags/postgres.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>), [prisma](<https://devfeed.tech/tags/prisma.md>), [queries](<https://devfeed.tech/tags/queries.md>), [sql](<https://devfeed.tech/tags/sql.md>)

## AI overview

A tutorial on extending Prisma 8 with typed PostgreSQL ltree support. It explains how ltree represents hierarchical paths and supports ancestor, descendant, pattern, and shared-ancestor queries, while comparing it with parent references, text paths, and nested sets.

## Source excerpt

Use PostgreSQL ltree in Prisma 8 with prisma-ltree: typed path columns plus ancestor and descendant queries.