frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Any good tools to pgdump multi tenant database?

3•polishdude20•9mo ago
Just joined a new company and they run a multi tenant database in postgres where each tenant is distinguished by their account ID. I'd like to be able to dump the data of a single account to my local instance to assist in debugging.

Problem is, many of the entities do not include an account ID. For example, a user can have an account ID but a user post will not but it will be tied to a user ID.

Also foreign keys aren't really implemented fully.

Are there any tools or techniques that could help make this process easier to do?

Comments

tudorg•9mo ago
You can try with data subsetting tools, a few that I know are: greenmask, jailer, tonic condenser, and I think there are more. They are not exactly for your use case, but might help you a bit. The problem is most of these tools can walk foreign keys, but only in one directions.

Also, since you said FK are not fully implemented, then there just won't be enough information for them to work with. So you can either work on fixing the foreign keys or have more complex scripts.

polishdude20•9mo ago
Thanks for the suggestions!

Yeah due to the unavailability of FK's, I'd have to somehow map certain ID columns to the tables they're for, accounting for slight naming convention differences.

woyten•9mo ago
In case you don’t have FKs you could specify virtual foreign keys in Greenmask.

Check out docs for details

https://docs.greenmask.io/latest/database_subset/#virtual-re...

abhisek•9mo ago
This is poor design. Multi-tenant data model design must have a tenant or segment ID for every tenant segmented tables. While it may not be a problem initially but as the business grows, you may need to move tenant data to separate DBs or even different regions based on compliance requirements. IMHO it is a good idea to run DB migrations and have a tenant ID populated in all tenant segmented tables
polishdude20•9mo ago
Oh yes I agree with you. It may become a big push to convince my org to do that

Show HN: FiveW – Stay current on AI in 5 minutes a day

https://www.fivew.xyz/feed
1•ethanmlam•1m ago•0 comments

'Failed experiment:' Florida committee unanimously OKs plan to scrap HOAs

https://www.news4jax.com/news/local/2026/03/03/failed-experiment-florida-committee-unanimously-ok...
1•bilsbie•1m ago•0 comments

Based base64 (now with more steganography)

https://blog.jordan.matelsky.com/bb64/
1•j6m8•2m ago•0 comments

Alphabet's sideloading auth: a kill switch for frontline and enterprise OpSec

1•MissMajordazure•3m ago•0 comments

Bureaucratic way of efficient AI-assisted development

https://anatoliikmt.me/posts/2026-03-02-ai-dev-flow/
1•anatoliikmt•4m ago•0 comments

Pregnant women's brains shed grey matter to prime them for motherhood

https://www.bbc.com/news/articles/cy0d59e7wjlo
1•tagawa•4m ago•0 comments

Who Invented Photography? The first men to trap light, the first to get credit

https://worldhistory.substack.com/p/who-invented-photography
1•crescit_eundo•5m ago•0 comments

100% secure way to test proprietary sparse AI kernel (ROLV) on any hardware

https://img1.wsimg.com/blobby/go/68eb7843-76aa-4f45-831c-bf0cbe513bde/downloads/6e53a51a-26bf-403...
1•heggenhougen•5m ago•1 comments

TrashAlert – I asked AI what day my trash gets picked up and it hallucinated

https://trashalert.io
1•hudtaylor•6m ago•1 comments

Google Chrome is switching to a two-week release cycle

https://9to5google.com/2026/03/03/chrome-two-week-updates/
1•alwillis•7m ago•0 comments

The End of Eleventy

https://brennan.day/the-end-of-eleventy/
1•brennanbrown•7m ago•0 comments

NATO shot down an Iranian missile over Turkey, said nothing about Article 5

https://medium.com/@lightcapai/a-missile-hit-turkish-soil-nato-said-nothing-about-article-5-that-...
1•IbrisUsta•9m ago•0 comments

Show HN: YourFinanceWORKS – Open-source financial management with AI OCR

1•snowsky•11m ago•0 comments

Show HN: Decima-8 – A deterministic 230KB neuromorphic engine and 1.3MB IDE

https://decima.rulerom.com/
1•intentgarden•11m ago•1 comments

The Loop Is Getting Fast

https://jackhrt.com/p/the-loop-is-getting-very-fast
1•jackhrt•12m ago•0 comments

Sony Pulls Back from PlayStation Games on PC

https://www.bloomberg.com/news/articles/2026-03-04/sony-pulls-back-from-playstation-games-on-pc
2•jsheard•13m ago•0 comments

Questions from a Rust ZK Meetup in Kraków

https://rustarians.com/10-questions-from-a-zk-meetup-in-krakow/
1•adamsmo•13m ago•0 comments

Show HN: Spendtrace, Feature-level AWS cost attribution (found a 17× gap))

https://github.com/Joshyi-Abini/Spendtrace
1•joshyi_ba•13m ago•0 comments

Show HN: TailBar – Tailscale menu bar app for macOS

https://github.com/JungHoonGhae/TailBar
1•lucasghae•14m ago•0 comments

We Wrote a Book: Writing for Developers (Manning Publications)

https://github.com/scynthiadunlop/WritingForDevelopersBook
2•cyndunlop•14m ago•1 comments

Infographics for Computer Fundamentals

https://bytebytego.com/guides/computer-fundamentals/
1•YJ-e•15m ago•0 comments

Show HN: Cicada – Claude Code usage analysis TUI

https://github.com/base-14/cicada
1•rnjn•15m ago•0 comments

Show HN: Quantlix – Runtime enforcement layer for AI systems

https://www.quantlix.ai/
1•jensenjesper•16m ago•0 comments

Downdetector and Speedtest have been sold for over $1B

https://www.engadget.com/cybersecurity/downdetector-and-speedtest-have-been-sold-for-over-1-billi...
4•taubek•16m ago•1 comments

World Cup games in Boston at risk

https://www.nytimes.com/athletic/7084751/2026/03/04/foxboro-fifa-world-cup-row/
1•m4tthumphrey•16m ago•0 comments

MIT-BIH electrocardiogram data: A List of available datasets

https://medium.com/@protobioengineering/mit-bih-electrocardiogram-data-a-list-of-available-datase...
1•teleforce•17m ago•0 comments

The 12-Factor App – 15 Years later. Does it Still Hold Up in 2026?

https://lukasniessen.medium.com/the-12-factor-app-15-years-later-does-it-still-hold-up-in-2026-c8...
1•PaulHoule•17m ago•0 comments

Agent payments have a three-body problem

https://www.sideband.pub/p/agent-payments-have-a-three-body
1•shawnyeager•19m ago•0 comments

The Agentic Data Stack open-source, composable architecture for analytics

https://clickhouse.com/blog/the-agentic-data-stack
1•jamesriso•20m ago•0 comments

Show HN: Captain's Log – Your ship sinks when you stop committing

https://github.com/JungHoonGhae/captains-log
1•lucasghae•20m ago•0 comments