---
title: "Posts"
description: "Engineering blog posts from companies, open source projects, research labs and engineers, each with a summary, topics and a difficulty level."
url: "https://swe.quest/?source=neon&tag=sql"
---

# Posts

Filtered by topics: SQL, source: Neon.

Posts 1–20 of 20, page 1 of 1, newest first.

## 2025-10-20

- [Handling Time-Variant DAGs with Constraints in Postgres](https://swe.quest/articles/handling-time-variant-dags-with-constraints-in-postgres-1fba8d43f4c83cc3.md): Neon · 2025-10-20 · Medium · 7 min read · PostgreSQL, SQL, Data structures, Databases
  Vehicle attachments in a fleet (trucks pulling trailers) are modeled as a time-variant DAG in a single Postgres table of edges with validity intervals and a source-authority priority.

## 2025-09-26

- [Implementing a Kalman Filter in Postgres to Smooth GPS Data](https://swe.quest/articles/implementing-a-kalman-filter-in-postgres-to-smooth-gps-data-fd49bdbe30ebf6c9.md): Neon · 2025-09-26 · Medium · 5 min read · PostgreSQL, Maps & geospatial, SQL, Algorithms, Performance engineering
  A Kalman Filter can run entirely inside Postgres to smooth noisy GPS tracks, with per-device state (estimate plus covariance matrix) kept in a devices table and a kalman\_step SQL function applying predict/update steps that can use HDOP or speed.

## 2025-08-21

- [The 10 Most Popular Postgres Extensions on Neon](https://swe.quest/articles/the-10-most-popular-postgres-extensions-on-neon-732f7020bbe3e6dc.md): Neon · 2025-08-21 · Easy · 5 min read · PostgreSQL, SQL, Databases
  The ten most installed Postgres extensions across Neon's platform are plpgsql and pg\_stat\_statements (each in 1M+ databases), followed by uuid-ossp, pgvector, pgcrypto, pg\_trgm, PostGIS, citext, unaccent and hstore.

## 2025-07-14

- [How to fix missing table errors in pg\_cron](https://swe.quest/articles/how-to-fix-missing-table-errors-in-pg-cron-3e70d0e00b3759de.md): Neon · 2025-07-14 · Medium · 8 min read · PostgreSQL, Scheduling, SQL
  pg\_cron stores scheduled jobs as raw SQL text, separate from Postgres' system catalogs, so dropping a table leaves jobs that fail every run with "relation does not exist" and fill cron.job\_run\_details with errors.

## 2025-05-27

- [Recreating S3 in Postgres using PostgREST](https://swe.quest/articles/recreating-s3-in-postgres-using-postgrest-d07b4a06448dac82.md): Neon · 2025-05-27 · Medium · 7 min read · PostgreSQL, API design, Identity & auth, SQL
  A simple S3-like file server can be built inside Postgres by storing binary data in a BYTEA table and exposing it through PostgREST's functions-as-RPC via the Neon Data API.

## 2025-02-17

- [The Dangers of Testing in SQLite as a Postgres User](https://swe.quest/articles/the-dangers-of-testing-in-sqlite-as-a-postgres-user-e7593810c6b7484d.md): Neon · 2025-02-17 · Medium · 9 min read · Testing, PostgreSQL, SQLite, SQL
  Testing against SQLite when production runs Postgres gives false confidence.

## 2024-12-10

- [What To Know About Postgres if You’re Coming From SQL Server](https://swe.quest/articles/what-to-know-about-postgres-if-you-re-coming-from-sql-server-2dbf370eb4f4c29d.md): Neon · 2024-12-10 · Medium · 9 min read · PostgreSQL, SQL, Databases
  Postgres and SQL Server share SQL but differ in dialect details that trip up migrating developers.

## 2024-09-26

- [Postgres 17 is Now Available on Neon](https://swe.quest/articles/postgres-17-is-now-available-on-neon-84c88d00e9905bce.md): Neon · 2024-09-26 · Medium · 6 min read · PostgreSQL, SQL
  Postgres 17 is available on Neon for all plans, including Free, and can be provisioned in a few steps.

## 2024-08-30

- [Top 3 features in Postgres 17](https://swe.quest/articles/top-3-features-in-postgres-17-b0d086972cf3cc60.md): Neon · 2024-08-30 · Medium · 5 min read · PostgreSQL, SQL
  Postgres 17 adds RETURNING support to MERGE (with a merge\_action() function that reports whether each row was inserted, updated or deleted), SQL/JSON functions including JSON\_TABLE for turning JSON into relational rows, and performance work.

## 2024-07-17

- [If I have read-only tables in Postgres, should I index them heavily?](https://swe.quest/articles/if-i-have-read-only-tables-in-postgres-should-i-index-them-heavily-cd42f0cfb1d86dc0.md): Neon · 2024-07-17 · Medium · 9 min read · PostgreSQL, Performance engineering, SQL
  Even when writes are off the table, heavily indexing read-only Postgres tables only pays off under certain conditions: table size, query complexity, data cardinality and resource constraints.

## 2024-07-08

- [How and when to use btree\_gist](https://swe.quest/articles/how-and-when-to-use-btree-gist-a2bcb15ac54b481b.md): Neon · 2024-07-08 · Medium · 10 min read · PostgreSQL, Maps & geospatial, Performance engineering, SQL
  Postgres's btree\_gist extension lets a single GiST index combine one-dimensional B-Tree-style columns (like dates) with spatial PostGIS geometries, so queries filtering on both space and time can use one index scan.

## 2024-06-07

- [How to Minimise the Impact of Database Latency](https://swe.quest/articles/how-to-minimise-the-impact-of-database-latency-bc4c9682c5942467.md): Neon · 2024-06-07 · Medium · 9 min read · PostgreSQL, Performance engineering, SQL, Serverless
  Database round-trip latency compounds with every sequential query, so co-locating the backend with the database and cutting round trips matters more than raw query speed.

## 2024-06-05

- [The silent syntax difference in foreign keys between Postgres and MySQL](https://swe.quest/articles/the-silent-syntax-difference-in-foreign-keys-between-postgres-and-mysql-36df1bac8b9567ad.md): Neon · 2024-06-05 · Medium · 6 min read · MySQL, PostgreSQL, SQL, Schema migrations
  MySQL parses but silently ignores inline column-level \`REFERENCES\` clauses, so a foreign key written Postgres-style (\`customer\_id INT REFERENCES customers(customer\_id) ON DELETE CASCADE\`) creates no constraint, no index and no cascade behavior in MySQL.

## 2024-04-04

- [Performance tips for Neon Postgres](https://swe.quest/articles/performance-tips-for-neon-postgres-9739985c47432424.md): Neon · 2024-04-04 · Medium · 8 min read · PostgreSQL, Performance engineering, Serverless, SQL
  Neon's serverless Postgres follows mostly standard Postgres tuning, plus a few Neon-specific checks.

## 2024-02-29

- [Postgres Support Recap: Investigating Postgres Query Performance](https://swe.quest/articles/postgres-support-recap-investigating-postgres-query-performance-82d2d3f876d71410.md): Neon · 2024-02-29 · Medium · 9 min read · PostgreSQL, Performance engineering, SQL, Observability
  Three starting points for diagnosing slow Postgres queries: use pg\_stat\_statements to find long-running queries by mean execution time and then EXPLAIN ANALYZE them, check the cache hit ratio (in Neon via the neon\_stat\_file\_cache view, since Neon extends shared buffers with a local file cache), and look for table and index bloat caused by MVCC dead tuples.

## 2023-09-18

- [Understanding the new JSON capabilities in Postgres 16](https://swe.quest/articles/understanding-the-new-json-capabilities-in-postgres-16-72256e4ab11a87d0.md): Neon · 2023-09-18 · Medium · 3 min read · PostgreSQL, SQL
  Postgres 16 expands SQL/JSON syntax with JSON\_ARRAY(), JSON\_ARRAYAGG() and the IS JSON predicate, each shown with runnable examples.

## 2023-05-16

- [ORMs vs. Query Builders for your Typescript application](https://swe.quest/articles/orms-vs-query-builders-for-your-typescript-application-9783c98c487b60f6.md): Neon · 2023-05-16 · Medium · 9 min read · TypeScript, PostgreSQL, Schema migrations, Developer tools, SQL
  Drizzle, Kysely, Prisma and Zapatos are compared as type-safe Postgres libraries for TypeScript across schema definition, query syntax, raw SQL support, migrations, edge-runtime support and community size.

## 2023-05-09

- [Why SQL template tags are not vulnerable to SQL injection attacks](https://swe.quest/articles/why-sql-template-tags-are-not-vulnerable-to-sql-injection-attacks-09e86639b19ec938.md): Neon · 2023-05-09 · Medium · 6 min read · Application security, JavaScript, PostgreSQL, SQL
  SQL template tags like Neon's \`sql\` function look like string interpolation but are safe from SQL injection because they are JavaScript tagged template functions.

## 2023-03-14

- [Announcing pg\_tiktoken: A Postgres Extension for Fast BPE Tokenization](https://swe.quest/articles/announcing-pg-tiktoken-a-postgres-extension-for-fast-bpe-tokenization-f53006f2756f2730.md): Neon · 2023-03-14 · Medium · 5 min read · PostgreSQL, LLMs, SQL
  pg\_tiktoken is a Postgres extension on Neon that wraps OpenAI's tiktoken BPE tokenizer, exposing tiktoken\_encode (returns token IDs) and tiktoken\_count (returns token counts) for encodings such as cl100k\_base, p50k\_base, p50k\_edit and r50k\_base or their model names.

## 2022-10-26

- [PostgreSQL 15: Three features you can try with Neon](https://swe.quest/articles/postgresql-15-three-features-you-can-try-with-neon-d9568102bec3b3d5.md): Neon · 2022-10-26 · Medium · 3 min read · PostgreSQL, SQL
  Neon now supports PostgreSQL 15, and three of its features can be tried from Neon's SQL Editor with runnable examples.

Same list as RSS: [https://swe.quest/feed.xml?source=neon&tag=sql](https://swe.quest/feed.xml?source=neon&tag=sql). Lists take `?page=`, `?per=12|24|48|96` and, on the home page, `?tag=` (up to 3), `?source=`, `?difficulty=easy|medium|hard` and `?search=`.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
