DEV Community

#postgres

Posts on tips and tricks, using and learning about PostgreSQL for database development and analysis.

Posts

đź‘‹ Sign in for the ability to sort posts by relevant, latest, or top.
A REST API State Machine for Email Verification

A REST API State Machine for Email Verification

Comments
5 min read
Our second process carries its own copy of the schema: nine of twelve tables, five of them ever queried, and not one write

Our second process carries its own copy of the schema: nine of twelve tables, five of them ever queried, and not one write

Comments
5 min read
Our data export contains the log of our data exports, so each copy is one row longer than the last

Our data export contains the log of our data exports, so each copy is one row longer than the last

Comments
5 min read
Postgres to Snowflake Replication Without Kafka or Airflow

Postgres to Snowflake Replication Without Kafka or Airflow

17
Comments 1
12 min read
How to Build an IT Asset Assignment and Return System (SQL + REST API)

How to Build an IT Asset Assignment and Return System (SQL + REST API)

Comments
11 min read
Our ULID is twenty lines, and the id it generates is deliberately not a secret

Our ULID is twenty lines, and the id it generates is deliberately not a secret

Comments
7 min read
Drizzle turns a JS array into ($1, $2), so our batch updates were sending Postgres a record cast

Drizzle turns a JS array into ($1, $2), so our batch updates were sending Postgres a record cast

Comments
5 min read
What Breaks When a Database Diagram Reaches 1,000 Tables, and What We Redesigned

What Breaks When a Database Diagram Reaches 1,000 Tables, and What We Redesigned

Comments
13 min read
PostgreSQL: Changing an Integer Column to Boolean - In Place or a New Column, and the Four Errors on the Way

PostgreSQL: Changing an Integer Column to Boolean - In Place or a New Column, and the Four Errors on the Way

Comments
10 min read
Foreign Keys Between Modules in a Modular Monolith: Keep, Restrict, or Drop?

Foreign Keys Between Modules in a Modular Monolith: Keep, Restrict, or Drop?

Comments
10 min read
Deleting a discount programme: 930 lines of files, two dropped tables, and a reservation lifecycle nobody needed

Deleting a discount programme: 930 lines of files, two dropped tables, and a reservation lifecycle nobody needed

Comments
4 min read
One jsonb column, and three places where losing it has to be cheaper than losing the score

One jsonb column, and three places where losing it has to be cheaper than losing the score

Comments
4 min read
Quick tip: one Postgres advisory lock stops your scheduled job running twice

Quick tip: one Postgres advisory lock stops your scheduled job running twice

Comments
5 min read
PostgreSQL: Cannot Alter Type of a Column Used by a View - How to Change It, and How to Find Every View in the Way

PostgreSQL: Cannot Alter Type of a Column Used by a View - How to Change It, and How to Find Every View in the Way

Comments
9 min read
SQL Window Functions, Joins, CTEs and Subqueries: A Hospital Data Guide

SQL Window Functions, Joins, CTEs and Subqueries: A Hospital Data Guide

Comments
25 min read
đź‘‹ Sign in for the ability to sort posts by relevant, latest, or top.