# Postgres as a Graph Database: (Ab)using pgRouting

DevFeed: [Postgres as a Graph Database: (Ab)using pgRouting](<https://devfeed.tech/articles/postgres-as-a-graph-database-ab-using-pgrouting-487.md>)

Original publisher: [Read original article](<https://supabase.com/blog/pgrouting-postgres-graph-database>)

Author: Paul Copplestone

Published: 2025-02-25T07:00:00Z

Content type: tutorial

Language: en

Sources: [Supabase Blog](<https://devfeed.tech/sources/supabase-blog.md>)

Topics: [Databases](<https://devfeed.tech/topics/databases.md>), [graph-database](<https://devfeed.tech/topics/graph-database.md>), [Graphs](<https://devfeed.tech/topics/graphs.md>), [Geographic Information System](<https://devfeed.tech/topics/gis.md>), [Algorithms](<https://devfeed.tech/topics/algorithms.md>), [Neo4j](<https://devfeed.tech/topics/neo4j.md>)

Tags: [algorithm](<https://devfeed.tech/tags/algorithm.md>), [geospatial](<https://devfeed.tech/tags/geospatial.md>), [graph-database](<https://devfeed.tech/tags/graph-database.md>), [graphs](<https://devfeed.tech/tags/graphs.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [learn](<https://devfeed.tech/tags/learn.md>), [postgres](<https://devfeed.tech/tags/postgres.md>), [routing](<https://devfeed.tech/tags/routing.md>)

## AI overview

This article explains how pgRouting, a Postgres extension commonly used with PostGIS, can provide lightweight graph functionality. It covers shortest-path and network analysis, GIS applications, task scheduling with dependency graphs, critical-path analysis, and the use of Dijkstra's algorithm.

## Source excerpt

Learn how to use pgRouting as a lightweight graph database solution in Postgres.