2025-01-01

Richard Towers | Representing graphs in Postgresql

A detailed exploration of representing and querying graph data structures in PostgreSQL using nodes and edges tables, demonstrated through Lord of the Rings character relationships. The solution showcases how to implement complex relationship queries using recursive CTEs and parameterized statements for flexible graph traversal.

Original archive.is archive.ph web.archive.org

Log in to get one-click access to archived versions of this article.

read comments on news aggregators:

Related articles

Markov Chains explained visually

Markov chains are mathematical systems that model transitions between different states with associated probabilities, represented through transition matrices or diagrams. The concept finds practical applications in various fields, from weather prediction to Google's PageRank algorithm, with the ability to simulate real-world phenomena by incorporating probabilistic state transitions.

Postgres as a Graph Database: (Ab)using pgRouting

pgRouting, a Postgres extension typically used for geospatial routing, offers versatile graph functionality beyond GIS applications. The extension can handle task scheduling, resource allocation in distributed systems, and power recommendation engines, making it a lightweight alternative to specialized graph databases.

EdgeDB is now Gel and Postgres is the Future | Gel Blog

PostgreSQL's unique position as a truly open-source, advanced relational database with extensive modularity is driving its accelerating adoption across the industry. EdgeDB announces its rebranding as Gel, introducing full SQL support and deeper ecosystem integration while maintaining its role as a PostgreSQL frontend layer enhancement. The platform aims to provide seamless database integration similar to how TypeScript enhances JavaScript.

Closing A Back Door In Illinois FOIA

A legal battle over database schema access through FOIA requests in Illinois reached the state Supreme Court, ultimately ruling that schemas could be withheld as 'file layouts.' New legislation (SB0226) aims to require public bodies to provide database structure descriptions, enabling citizens to request specific database queries.

Top-level Files of tip

An open-source bookmarking server built with Common Lisp and PostgreSQL, offering multi-account support and minimal JavaScript requirements. The project prioritizes portability and simplicity, running efficiently on OpenBSD while maintaining core security features through bcrypt password storage and optional captcha protection.

GitHub - nexsol-technologies/pgassistant: PgAssistant is an open-source tool designed to help developers understand and optimize their PostgreSQL database performance.

PgAssistant is an open-source tool that helps developers analyze and optimize PostgreSQL database performance through features like schema optimization, query management, and AI-powered assistance. The tool integrates with OpenAI and local LLMs for query optimization while offering practical features like SQL linting, DDL generation, and PGTune integration.

How We Migrated Checkly From Heroku to AWS

A detailed account of Checkly's migration from Heroku to AWS in 2022, driven by PostgreSQL upgrade limitations and maintenance window constraints. The migration involved careful planning, data replication strategies, and resulted in a successful transition with minimal downtime, offering valuable insights for similar cloud platform migrations.

Microsoft bolsters PostgreSQL with NoSQL-like extensions

Microsoft released open source PostgreSQL extensions to handle document-style data, challenging MongoDB's dominance in the NoSQL space while blurring the lines between relational and non-relational databases. The extensions enable BSON support and MongoDB-compatible commands, partnering with FerretDB to create a viable MongoDB alternative on PostgreSQL.

How about trailing commas in SQL?

A discussion on implementing trailing commas in SQL explores various approaches, from supporting only popular cases to comprehensive implementation across all comma-separated constructs, highlighting challenges in both PostgreSQL implementation and SQL standardization.

SQLite or PostgreSQL? It's Complicated!

A detailed exploration of SQLite vs PostgreSQL performance for a Twilio blog analytics dashboard, featuring comprehensive benchmarking tests on both development and production environments, leading to unexpected findings about database performance under different query loads and concurrency levels.