nowfound

Life & fun · January 15, 2024

BSON Extension for Postgres

JSON support in postgres is superb but sometimes you really want decimal, date, and binary types, "carefree" UTF8 string handling (i.e. no escaping), and robust roundtrippability. So I made an extension for BSON.

BSON Extension for Postgres launched on January 15, 2024 with 115 votes, #484 of 4,438 launches that month and more than 95% of that year's launches. The site was still online in September 2026, 2 years on.

Visit github.com ↗Alternativestop 11% of January 2024

In plain words

The BSON Extension for Postgres adds BSON data type support to PostgreSQL, complementing the existing JSON functionality. It enables storage and handling of decimal, date, and binary types alongside UTF-8 strings without requiring escape sequences, while maintaining robust data roundtrippability. The extension is designed for developers who need BSON's richer type system within their Postgres databases.

written from the facts on this page · September 2026

From the sources

postgres support for BSON. Contribute to buzzm/postgresbson development by creating an account on GitHub.

Does a similar job

all alternatives →
  • BSON Extension for SQLite2024 · github.com · ▲8

    sqlite is, well, everywhere. It's a little shy on high-fidelity types, though, esp no dates and penny-precise numbers. And carrying rich shapes in JSON doesn't really help because JSON lacks those too. BSON supports these types but more importantly is a data carrier external to the database; you can fluidly move BSON in and out of sqlite without creating your own binary representations; just use the BSON SDK for your environment. Upwards of 20 languages are supported. The BSON extension is designed to exploit sqlite built-in JSON functions as desired.

  • Pg_jsonschema – A Postgres extension for JSON validation2022 · github.com · ▲203

    pg_jsonschema is a solution we're exploring to allow enforcing more structure on json and jsonb typed postgres columns. We initially wrote the extension as an excuse to play with pgx, the rust framework for writing postgres extensions. That let us lean on existing rust libs for validation (jsonschema), so the extension's implementation is only 10 lines of code :) https://github.com/supabase/pg_jsonschema/blob/fb7ab09bf6050... happy to answer any questions!

  • PE
    Pg-extend-rs – Easy Postgres extensions in Rust2018 · bluejekyll.github.io · ▲244
  • BA
  • PRQL in PostgreSQL2024 · github.com · ▲267

    This extension let's you write PRQL functions in PostgreSQL. When I first saw PRQL on Hacker News a few months ago, I was immediately captivated by the idea, yet equally disappointed that there was no integration for PostgreSQL. Having previous experience with writing PostgreSQL extensions in C, I thought this was a great opportunity to try out the pgrx framework and decided to integrate PRQL with PostgreSQL myself. The maintainers of both PRQL and pgrx were very nice to work with. Thanks guys.

  • Pg-typesafe – Strongly typed queries for PostgreSQL and TypeScriptFeb 2026 · github.com · ▲69

    Throughout my career, I tried many tools to query PostgreSQL, and in the end, concluded that for what I do, the simplest is almost always the best: raw SQL queries. Until now, I typed the results manually and relied on tests to catch problems. While this is OK in e.g., GoLang, it is quite annoying in TypeScript. First, because of the more powerful type system (it's easier to guess that updated_at is a date than it is to guess whether it's nullable or not), second, because of idiosyncrasies (INT4s are deserialised as JS numbers, but INT8s are deserialised as strings). So I wrote pg-typesafe,…

More life & fun this month

the category →

Source: Show HN post ↗

Launched alongside, January 2024

the whole month →
  • Amie▲1,334

    Turn meeting notes into automated workflows. Handle meetings, summaries, todos and emails (soon) with your AI personal assistant.

    Work · 2024 · amie.so

  • Findr▲1,296

    Search all your apps, at once

    AI · 2024 · usefindr.com

  • Beautifully designed for your work and life

    Work · 2024 · notion.so

  • Connect meetings, track to-do, get aligned

    AI · 2024 · huudle.io

  • IM

    Sit in Shade - Discover the optimal seat to stay in the shade during your journey. Sit In Shade provides real-time sun exposure data and route visualization.

    Life & fun · 2024 · sitinshade.com

  • Letterly▲937

    Turn your speech into well-written text

    AI · 2024 · letterly.app