frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

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

3•polishdude20•1y 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•1y 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•1y 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•1y 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•1y 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•1y ago
Oh yes I agree with you. It may become a big push to convince my org to do that

It's clear that Fable-class LLMs are feeling constrained by "normal" vernacular

https://twitter.com/jconorgrogan/status/2073443593268650212
1•indigodaddy•1m ago•0 comments

How to deal with "vibecoding depression" of indie hackers

https://www.brachkow.com/notes/vibecoding-depression/
1•brachkow•1m ago•0 comments

Consoles continue their trend of just becoming worse PCs

https://www.pcgamer.com/gaming-industry/consoles-continue-their-trend-of-just-becoming-worst-pcs/
1•redbell•1m ago•0 comments

JWST discovers a new barred spiral galaxy

https://phys.org/news/2026-07-jwst-barred-spiral-galaxy.html
1•wglb•3m ago•0 comments

Show HN: BloomDisk – free open-source alternative to paid Mac disk analyzers

https://github.com/Nabilhassan12345/BloomDisk
1•nabilhassan•3m ago•0 comments

Ovaries may take on job in immune system after tenure as reproductive organs

https://medicalxpress.com/news/2026-07-ovaries-job-immune-tenure-reproductive.html
2•wglb•5m ago•0 comments

Show HN: Tool for Auditing Embedded Linux Hosts

https://github.com/nstarke/embedded_linux_audit
2•bootbloopers•5m ago•0 comments

Garbage-collecting Byzantine, open-membership CRDTs without a quorum

https://github.com/HumanGuardrail/anchored-stability
1•schneitergus•5m ago•0 comments

AgentPost – async agent-to-agent messaging without hosting a receive endpoint

https://github.com/2JasonP/agentpost/blob/main/TWO_AGENTS.md
1•2JasonP•6m ago•0 comments

Why we built yet another Postgres connection pooler

https://pgdog.dev/blog/why-yet-another-connection-pooler
1•levkk•7m ago•0 comments

Solo – scaffold a production SaaS, then run its operations autonomously

https://thesolo.ai/
2•rchaz•11m ago•0 comments

I Gave Claude Fable Access to My Pen Plotter

https://harmonique.one/posts/i-gave-claude-fable-access-to-my-pen-plotter
1•futurecat•11m ago•0 comments

Microsoft Fires 4800 as Xbox Division Undergoes Major Reorganization

https://www.ibtimes.com/microsoft-sheds-more-2-its-staff-xbox-division-undergoes-major-reorganiza...
2•justacrow•11m ago•2 comments

Ask HN: What are some programming languages you wish you could use more?

1•mghackerlady•13m ago•1 comments

OlleeWatch (F91W Mod) Software Update: Q2 2026

https://www.olleewatch.com/blog/software-update-spring-2026
1•finnlab•13m ago•0 comments

Show HN: Messageboard – A simple API-first dashboard for human readable messages

https://messageboard.tech/
1•dchanco•13m ago•0 comments

Otaku – one terminal client for Ollama, LM Studio, and MLX

https://github.com/enclavum/otaku
1•enclavum5•13m ago•0 comments

NATO to Replace Boeing Awacs with Saab GlobalEye

https://www.reuters.com/business/aerospace-defense/nato-plans-saab-globaleye-jets-replace-awacs-s...
1•daneel_w•13m ago•0 comments

Honeybee Queens Push Pesticides to Eggs to Protect Themselves

https://www.ucdavis.edu/food/news/honeybee-queens-push-pesticides-eggs-protect-themselves-over-th...
1•gmays•13m ago•0 comments

'It's just his AI and my AI going back and forth'

https://fortune.com/article/ai-communication-undermining-human-relationships-middle-management/
1•gumby•14m ago•0 comments

AI Short Video Generator Website for Sale

https://flippa.com/13365327-ai-powered-video-generation-platform-for-creating-viral-short-form-co...
1•kilincarslan•14m ago•1 comments

NASA chief praises progress Blue Origin is making after launch failure

https://arstechnica.com/space/2026/07/nasa-chief-praises-progress-blue-origin-is-making-after-lau...
1•rbanffy•15m ago•0 comments

EU startup built an AI system that matches Mythos on zero-day discovery

https://aisle.com/blog/mythos-at-home-and-its-called-aisle
1•tinthedev•15m ago•0 comments

Consciousness and the Laws of Physics (2021)

https://philarchive.org/rec/CARCAT-33
1•hackingonempty•15m ago•0 comments

Decline of PhD Admissions Could Imperil a 'Generation of New Talent'

https://www.nytimes.com/2026/07/06/us/research-universities-fewer-phds-science.html
1•gumby•15m ago•0 comments

Resetting Xbox

https://news.xbox.com/en-us/2026/07/06/resetting-xbox/
6•dijksterhuis•16m ago•2 comments

GitHub & other LLM-gen-AI Cos Urge You to Misdirect California on FOSS Licensing

https://sfconservancy.org/blog/2026/jul/03/github-gen-ai-california-22757-ok-for-foss-license/
1•hn_acker•16m ago•1 comments

Does Speaking to Agents Like Cavemen Save 65% of Tokens? We Test

https://blog.jetbrains.com/ai/2026/07/speak-to-ai-agents-like-cavemen-tosave-tokens/
2•adletbalzhanov•17m ago•0 comments

Microsoft device telemetry key to unmasking alleged Scattered Spider hacker

https://www.itnews.com.au/news/microsoft-device-telemetry-key-to-unmasking-alleged-scattered-spid...
1•_____k•19m ago•0 comments

I Changed My Name

https://robida.net/entries/2026/07/01/i-changed-my-name
1•surprisetalk•19m ago•0 comments