Better HN
topnewbestaskshowjobs
Log inSign up

x4m

153 karma · joined Feb 17, 2011 (15y ago) · 100 submissions

Postgres Hacker
Submissions

comment 4mo ago · link · parent

Was a flight to space an iteration?

comment 4mo ago · link · parent

As Odyssey maintainer, I have to admit that it is exceptionally difficult to achieve stability (e.i. quality) of PgBouncer.

It has two limitations: it is single threaded and it is developed only re-actively. PgBouncer docs used to say that prepared statements can never be supported, in 2022 we supported it in Odyssey and then PgBouncer implemented it too.

In a sense Odyssey is developed to motivate PgBouncer development. To provide alternatives that keep PgBouncer from stagnation.

Yet, I can't say that scalability with SO_REUSEPORT is a good solution.

comment 4mo ago · link · parent

With Odyssey we have customers with 50k+ connections operating normally.

Also consider SQPR - it's a connection pooler with sharding capabilities. It handles data migration between shard on top of request routing. Odyssey will inherit this capability once it is stable enough in functions set.

comment 4mo ago · link · parent

Just use https://github.com/yandex/odyssey :) It's a scalable PgBouncer.

comment 9mo ago · link · parent

I'd love to! But MySQL is developed inside Oracle, and OCA somewhat scares me. Perhaps, I'll give a try to MariaDB or other forks.

6.

Unmerged Patches and Useful Failures: My Journey to Postgres Major Contributor(medium.com ↗)

9 points · by x4m · 9mo ago · 2 comments

comment 1y ago · link · parent

And there's also https://postgrespro.com/docs/enterprise/current/multimaster With a history behind it.

8.

SPQR 2.6.0 with Multicolumn Sharding(github.com ↗)

5 points · by x4m · 1y ago · 2 comments

comment 2y ago · link · parent

I think this should run just fine, why not? As long as you have proper Postgres operator, such proxy will run normally on top of that.

10.

WAL-G 3.0.0 – fast partial cluster recovery for Postgres(github.com ↗)

12 points · by x4m · 2y ago · 1 comment

comment 2y ago · link · parent

+1

there's already well maintained extension https://github.com/fboulnois/pg_uuidv7

It's slightly different from recommendations by draft RFC version (there's no counter), but fully within spec requirements. From practical point there's no difference at all.

12.

How to make your first contribution to ClickHouse(youtube.com ↗)

3 points · by x4m · 3y ago · discuss

13.

Show HN: Postgres Security Educational Tasks(github.com ↗)

1 points · by x4m · 3y ago · discuss

14.

Compute\Storage Disaggregation for GreenplumDB(github.com ↗)

18 points · by x4m · 3y ago · discuss

comment 3y ago · link · parent

FWIW Steam Deck runs 8k transactions per second if you build Postgres there. A nice place to work on open source development, actually. https://twitter.com/x4mmmmmm/status/1620984546216017921

16.

Postgres Hacking 101: Buffer Page and Its API(youtube.com ↗)

1 points · by x4m · 3y ago · discuss

17.

Postgres Hacking 101: Benchmarking a Patch(youtube.com ↗)

7 points · by x4m · 3y ago · discuss

comment 3y ago · link · parent

> Reduce the memory usage of prepared queries

FWIW Odyssey supports prepared statements in transaction pooling.

comment 4y ago · link · parent

I concur that Odyssey docs are insufficient to build a big picture. But I'm trying to answer every question in the Internets about Odyssey :) Documenting is hard - everything seems obvious to me, but understand that may things are not that obvious. // Odyssey maintainer

comment 4y ago · link · parent

I think the book is free because Egor and PostgresPro want to develop the community. If you want to pay back - you can just start contributing to Postgres. No need to wait :)

comment 4y ago · link · parent

You are running on up to date version which seems to have no known critical bugs.

comment 4y ago · link · parent

Just revert d9d0762 or use actual REL_14_STABLE.

comment 5y ago · link · parent

Transaction pooling rules are equivalent in Odyssey and PgBouncer.

comment 5y ago · link · parent

It seems like there's issue when you have a user for accessing authentication table you login with the same user. It fails when due to mixing same pool for auth and for work. I'll look into differentiating these pools more closely. As a simple workaround you can setup different user for accessing password and not login into Odyssey with this user.

comment 5y ago · link · parent

Odyssey could work fine on arm, but we've a small ASM function https://github.com/yandex/odyssey/blob/master/third_party/ma... . We need to reimplement it for ARM64 or at least fallback on some generic context swap.

comment 5y ago · link · parent

Odyssey stands before the databases and packs thousands of NodeJS connection into few tens of real server connections.

comment 5y ago · link · parent

I'm not actually aware of all detailed plans. My job is to advance PostgreSQL ecosystem. But I'll pass a question to someone with broader view.

comment 5y ago · link · parent

I think there's a lot of different HA solutions - Patroni, Stolon, Pacemaker to name few.
1234