Live data from Hacker News

PgDog is funded and coming to a database near you

pgdog.dev

261–270 of 275 posts

Re: PgDog is funded and coming to a database near you

#261
post #245

I have mentioned this before, but here it goes again: I'm really happy that there's more options for Postgres sharding and I applaud Pgdog and the team's efforts and energy. Having said that, this makes it a no-go for me: > shard_number = hash(data) % num_shards https://docs.pgdog.dev/features/sharding/basics/#terminology Most sharding solutions distribute the hash value over linear ranges, that then split across "vi…

Yeah good callout. We'll add rendezvous soon enough. Until then, being compatible with Postgres partitions has been advantageous -- while we build everything out, people were able to migrate to PgDog for the query routing layer while doing the resharding in Postgres. Adding a sharding function in our architecture is relatively straightforward. We also support plugins which can control the flow (and direction) for que…

TBH I don't think it's that straightforward, I see it more of a notable architectural change. At a very high level, this means:

* Adding a sharding function, as you say.

* Developing an external service for metadata (shard placement) or alternatively have that metadata in one place and replicate (consistently!) to every query router.

* Implementing functions/catalogs for the users to understand the placement and configure/alter it.

* Implementing shard migration / rebalancing capabilities, possibly using Postgres logical replication (plus notable automation).

Here's one idea if you follow this path, something that Citus doesn't have: make the sharding function pluggable and pick one by default which is well-known and available in many languages (e.g. xxhash). If you do so, and guarantee stability of those functions, they could be used externally (applications) to route queries / inserts especially to the appropriate shard. While it makes application more complex, it may allow (combined with access to the metadata service) for faster ingestion paths (this is often known as application assisted sharding), and its not exclusive of the query routers.

Edit: formatting

Re: PgDog is funded and coming to a database near you

#262

Earlier quoted context omitted.

The creator of pgdog is also the creator of pgcat, so I think they probably don't need to do this.

I only just now realized pg cat pg dog What's he going to name the next version? pg emu ?

pg_pachy ?

Re: PgDog is funded and coming to a database near you

#265

Earlier quoted context omitted.

Dynamo definitely scales better than anything else at the tradeoff of not guaranteeing durability in the case of enough node failures and (like most distributed databases) not allowing interaction between different pieces of data.

> Tradeoff of not being able to query your data Fixed it.

Dynamo is not write-only.

Re: PgDog is funded and coming to a database near you

#266
post #63
post #30

I'm curious how this might help with our biggest downtime-causer with postgres, which is major version upgrades. Poolers do a great job for failover and load balancing, but we consistently need ~10-20 minutes of downtime once or twice a year to do upgrades. Logical replication between old->new versions could probably help, but it would still require flipping everything over to the new cluster without partial writes o…

It's weird that PostgreSQL still doesn't have a proper, open source, general multi-master implementation. At this point i wonder if i'll ever see that.

pssst... we're 100% open source under the PostgreSQL license, with active-active multi-master replication for any topology from single-region HA to write-anywhere global. :-) try it out on the Downloads page on our site https://www.pgedge.com/download/enterprise-postgres for secure downloads, or check out Spock on GitHub (https://github.com/pgEdge/spock) and the Active Consistency Engine (https://github.com/pgedge/ace) to integrate the extension & tool yourself. Answers to common questions in our FAQ: https://www.pgedge.com/resources/faq#pgedge-distributed-post...

Re: PgDog is funded and coming to a database near you

#267

Earlier quoted context omitted.

There's multiple solutions coming up in this space: 1. Neki as you mentioned 2. PgDog 3. Multigres, headed by original creator of Vitesse

Citus is an older one that does something like this, right? But it's an extension, not a proxy.

I could be wrong, but with Citus, for most use cases, you can only have one co-ordinator node which fans out requests. So theoretically, you still can run into bottle necks at some point if 1 coordinator node is not enough.

With proxies like pgdog, multigres, and eventually Neki, these can scale out horizontally, so you get true unlimited scale.

Re: PgDog is funded and coming to a database near you

#268

Earlier quoted context omitted.

Citus is an older one that does something like this, right? But it's an extension, not a proxy.

I could be wrong, but with Citus, for most use cases, you can only have one co-ordinator node which fans out requests. So theoretically, you still can run into bottle necks at some point if 1 coordinator node is not enough. With proxies like pgdog, multigres, and eventually Neki, these can scale out horizontally, so you get true unlimited scale.

Doesn't PgDog only have one proxy, or can you have multiple? I imagine they'd need to coordinate on sharding rules somehow.

Re: PgDog is funded and coming to a database near you

#269
post #63

Earlier quoted context omitted.

It's weird that PostgreSQL still doesn't have a proper, open source, general multi-master implementation. At this point i wonder if i'll ever see that.

What about Multigres[0]? It builds on top of Postgres and adds HA (based on Flexible Paxos[1]), sharding, etc. They're still not production-ready, but I'm highly optimistic they will solve a lot of the problems Postgres have. For example, with Multigres, you should be able to achieve true zero downtime major version upgrade by simply resharding [2]. With vanilla Postgres + pgBouncer, you can only achieve near-zero do…

> What about Multigres[0]?

According to they githyb (https://github.com/multigres/multigres) as of today (June 12th, 2026):

> Multigres is a Vitess adaptation for Postgres. The project is currently in the early stages of development.

Maybe it works, maybe it doesn't. I would start looking into it when it gets released as stable. Otherwise it's unfair.

Re: PgDog is funded and coming to a database near you

#270
post #63

Earlier quoted context omitted.

It's weird that PostgreSQL still doesn't have a proper, open source, general multi-master implementation. At this point i wonder if i'll ever see that.

Well, not officially, but there are solutions for that. Like BDR (or Postgres Distributed nowadays) by EDB.

> Like BDR (or Postgres Distributed nowadays) by EDB.

which is not open source afaik

Post reply on HN