edgedb VS pgx

Compare edgedb vs pgx and see what are their differences.

edgedb

A graph-relational database with declarative schema, built-in migration system, and a next-generation query language (by edgedb)

pgx

Build Postgres Extensions with Rust! [Moved to: https://github.com/tcdi/pgrx] (by tcdi)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
edgedb pgx
19 19
12,280 2,376
1.6% -
9.9 9.6
1 day ago about 1 year ago
Python Rust
Apache License 2.0 MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

edgedb

Posts with mentions or reviews of edgedb. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-08-22.
  • EdgeDB – A graph-relational database with declarative schema
    1 project | news.ycombinator.com | 10 Feb 2024
  • Beyond SQL: A relational database for modern applications
    4 projects | news.ycombinator.com | 22 Aug 2023
    A new DB, with a new query language that's like "SQL done right"? This immediately reminded me of EdgeDB: https://edgedb.com/

    Is there anyone here who knows enough about these two products to do a compare/contrast?

  • EdgeDB 3.0
    2 projects | news.ycombinator.com | 22 Jun 2023
    The whole thing consists of these main parts:

    1. SQL parser: https://github.com/edgedb/edgedb/tree/master/edb/pgsql/parse...

  • DuckDB 0.8.0
    5 projects | news.ycombinator.com | 17 May 2023
    >relational no-sql

    Do you mean something like edgeDB?[0]

    Or do you mean some non-declarative language completely? I don't see the latter making much sense. The issue with SQL for me is the "natural language" which quickly loses all intended readabilty when you have SELECT col1, col2 FROM (SELECT * FROM ... WHERE 1=0 AND ... which is what edgeDB is trying to solve.

    [0]https://edgedb.com/

  • Question about custom properties querying with the query builder
    1 project | /r/edgedb | 28 Sep 2022
    We need to land #3747, then something like this should work
  • EdgeDB 2.0
    13 projects | news.ycombinator.com | 28 Jul 2022
  • GraphQL Is a Trap?
    18 projects | news.ycombinator.com | 6 May 2022
    You have to do your own optimiser to avoid, for instance, the N+1 query problem. (Just Google that, plenty of explanations around.) Many GraphQL frameworks have a “naive” subquery implementation that performs N individual subqueries. You either have to override this for each parent/child pairing, or bolt something on the back to delay all the “SELECT * FROM tbl_subquery WHERE id = ?” operations and convert them into one “… WHERE id IN (…)”. Sounds like a great use of your time.

    In the end you might think to yourself “why am I doing this, when my SQL database already has query optimisation?”. And it’s a fair question, you are onto it. Try one of those auto-GraphQL things instead. EdgeDB (https://edgedb.com) does it as we speak, runs atop Postgres. Save yourself the enormous effort if you’re only building a GraphQL API for a single RBDMS, and not as a façade for a cluster of microservices and databases and external requests.

    Or just nod to your boss and go back to what being a backend developer has always meant: laboriously building by hand completely ad hoc JSON versions of SQL RBDMS schemas, each terribly unhappy in its own way. In no way does doing it manually but presenting GraphQL deviate from this Sisyphean tradition.

    I read in the article that NOT having GraphQL exactly match your DB schema is a best practice. My response is “did a backend developer write this?”

  • How we sharded our test suite for 10x faster runs on GitHub Actions
    3 projects | /r/devops | 3 May 2022
    Same idea, yeah. Unfortunately, in our case we couldn't use pytest due to complicated test setup, so we used a customized unittest runner instead.
  • GraphQL is now available on Supabase
    14 projects | news.ycombinator.com | 29 Mar 2022
    EdgeDB [1] has indeed a rich GraphQL layer, but it's a very different project.

    While it also builds on top of Postgres, EdgeDB replaces the entire relational database front-end. EdgeDB features a SQL replacement language called EdgeQL (analytical capabilities of SQL married with deep-fetching in GraphQL), a higher-level data model (tables -> object types), integrated migrations engine, a custom protocol with great performance & great client APIs, and many other things. Read more here [2].

    (disclaimer: I'm EdgeDB co-founder)

    [1] https://github.com/edgedb/edgedb

    [2] https://www.edgedb.com/blog/edgedb-1-0

  • EdgeDB 1.0
    16 projects | news.ycombinator.com | 10 Feb 2022
    I'm curious how this squares up with what someone linked elsewhere: https://github.com/edgedb/edgedb/discussions/3403

    > EdgeDB does not treat Postgres as a simple standard SQL store. The opposite is true. To realize the full potential of the graph-relational model and EdgeQL efficiently, we must squeeze every last bit of functionality out of PostgreSQL's implementation of SQL and its schema.

    This would seem to be an opposing view of how coupled EdgeDB and PostgreSQL are. Which is it?

pgx

Posts with mentions or reviews of pgx. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-04-05.
  • Write Postgres functions in Rust
    3 projects | /r/rust | 5 Apr 2023
    It uses pgx (https://github.com/tcdi/pgx) which is our more generalized framework for developing Postgres extensions with Rust.
  • Why not Rust for Omnigres?
    2 projects | dev.to | 6 Jan 2023
    It's a great question, considering I've been using Rust for a number of years now, and I generally advocate its use for its rich ecosystem, safety and tooling. I actively contribute to pgx, a library for building Postgres extensions in Rust. Yet, Omnigres appears to be all done in C.
  • Supabase Wrappers: A Framework for Building Postgres Foreign Data Wrappers
    14 projects | news.ycombinator.com | 15 Dec 2022
    Our release today is a framework which extends this functionality to other databases/systems. If you’re familiar with Multicorn[1] or Steampipe[2], then it’s very similar. The framework is written in Rust, using the excellent pgx[3].

    We have developed FDWs for Stripe, Firebase, BigQuery, Clickhouse, and Airtable (all in various “pre-release” states). The plan is to focus on the tools we’re using internally while we stabalize the framework.

    There’s a lot in the blog post into our goals for this release. It’s early, but one of the things I’m most excited about.

    [0] Postgres FDW: [https://www.postgresql.org/docs/current/sql-createforeigndat...

    [1] Multicorn: https://multicorn.org/

    [2] Steampipe: https://steampipe.io/

    [2] pgx: [https://github.com/tcdi/pgx](https://github.com/tcdi/pgx)

  • Apache Age, a PostgreSQL Extension with Graph Database Functionality
    3 projects | news.ycombinator.com | 2 Nov 2022
  • Postgres FTS vs the new wave of search engines
    3 projects | /r/PostgreSQL | 14 Oct 2022
    BTW one nice easter egg is that with pgx there is actually no reason that we can't build even better search solutions inside the database itself.
  • Postgres Full Text Search vs. the Rest
    21 projects | news.ycombinator.com | 14 Oct 2022
    > That thread led me to a project/product idea where you take an existing Postgres instance used for normal products or whatever, replicate it to various read only clusters with a custom search extension loaded and some orchestrator sitting on top (I’ve written most of one in rust that uses 0mq to communicate with it’s nodes) and create drop in search from existing databases with a nice guided web gui for automatic tuning suitable for most business use cases.

    Very interesting idea -- just want to add one thing, write it in rust (with pgx?[0]) :)

    [0]: https://github.com/tcdi/pgx

  • Show HN: pg_idkit, a Postgres extension for generating exotic UUIDs
    3 projects | news.ycombinator.com | 11 Sep 2022
    Hey HN,

    It turns out choosing a good database-optimized UUID (and deciding whether to use serial, etc) isn't quite so simple, and I finally got a chance to do some exploration, write about it[0].

    One of the reasons Postgres is the best open source database out there is it's extensibility -- so I hacked up a small extension for generating some of the more exotic (but crucially, lexicograhically sortable) UUID generation mechanisms:

    https://github.com/t3hmrman/pg_idkit

    This idea has been bumbling around my head for a while, but I finally got a chance to build it while working with Supabase on a post about IDs[0]!

    Most of the heavy lifting is done by pgx[1] which is an amazing framework for building Postgres extensions in Rust. I think we are very early to the trend of amazing postgres extensions built in Rust, and it's yet another reason that it's an exciting time to be all-in on Postgres.

    [0]: https://supabase.com/blog/choosing-a-postgres-primary-key

    [1]: https://github.com/tcdi/pgx

    [0]: https://supabase.com/blog/choosing-a-postgres-primary-key

  • Introducing pg_idkit: an extension for generating lexicographically sortable UUIDs (UUIDv6-8, CUID, Timeflake) in Postgres
    2 projects | /r/PostgreSQL | 9 Sep 2022
    The extension is still WIP but for those of ya'll that like Rust it's built on pgx which has excellent DX. The rust involved isn't complicated -- I'm basically laundering the functionality from other crates that are listed in the README.md.
  • GitHub - supabase/pg_jsonschema: PostgreSQL extension providing JSON Schema validation
    2 projects | /r/PostgreSQL | 23 Jul 2022
    Seems to be using this: https://github.com/tcdi/pgx
  • Show HN: Pg_jsonschema – A Postgres extension for JSON validation
    8 projects | news.ycombinator.com | 21 Jul 2022
    - https://github.com/furstenheim/is_jsonb_valid

    pgx[0] is going to be pretty revolutionary for the postgres ecosystem I think -- there is so much functionality that can be utilized at the database level and I can't think of a language I want to do it with more than Rust.

    [0]: https://github.com/tcdi/pgx

What are some alternatives?

When comparing edgedb and pgx you can also consider the following projects:

supabase - The open source Firebase alternative.

tauri - Build smaller, faster, and more secure desktop applications with a web frontend.

cockroach - CockroachDB - the open source, cloud-native distributed SQL database.

code - Source code for the book Rust in Action

neon - Neon: Serverless Postgres. We separated storage and compute to offer autoscaling, branching, and bottomless storage.

bevy - A refreshingly simple data-driven game engine built in Rust

Prisma - Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB

postgrest - REST API for any Postgres database

supabase-graphql-example - A HackerNews-like clone built with Supabase and pg_graphql

edgedb-rust - The official Rust binding for EdgeDB

feophant - A PostgreSQL inspired SQL database written in Rust.