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

The creative software industry has declared war on Adobe

https://www.theverge.com/tech/913765/adobe-rivals-free-creative-software-app-updates
1•bookofjoe•18s ago•0 comments

Older Women Are in Demand by Younger Men

https://www.nytimes.com/2026/04/16/opinion/younger-men-dating-older-women.html
1•metadat•1m ago•0 comments

Mystery Cpuid Bit

https://www.os2museum.com/wp/mystery-cpuid-bit/
1•ingve•2m ago•0 comments

Attention Decay

https://dzoba.com/blog/attention-decay/
2•speckx•4m ago•0 comments

Ask HN: Agents Craving Context

1•AnthonyR•6m ago•0 comments

Why robots can't replace guide dogs (yet)

https://www.popsci.com/technology/robots-replace-guide-dogs/
1•Vaslo•7m ago•0 comments

Internet Content Regulation Is Coming to Canada

https://axisofeasy.com/aoe/internet-content-regulation-is-coming-to-canada/
4•StuntPope•7m ago•0 comments

The Shocking Secrets of Madison Square Garden's Surveillance Machine

https://www.wired.com/story/madison-square-garden-jim-dolan-surveillance-machine/
1•jbegley•7m ago•0 comments

What Are Skiplists Good For?

https://antithesis.com/blog/2026/skiptrees/
1•mfiguiere•9m ago•0 comments

Why Everyone Gets the F1 Inerter Wrong – Explained Clearly [video]

https://www.youtube.com/watch?v=4FOjKXdqFZA
1•ogogmad•10m ago•0 comments

Writing text horizontally? Go 2D Like crosswords, demo for CSS/JS menu system

https://numtel.github.io/memphis/
1•numtel•10m ago•1 comments

Will Gemma 4 replace Claude Code or are we lying to ourselves again

https://webmatrices.com/post/will-gemma-4-actually-replace-claude-code-or-are-we-lying-to-ourselv...
1•bishwasbh•11m ago•0 comments

The Problem with AI Agents Isn't Identity, It's Authorization

https://fusionauth.io/blog/ai-authorization
1•mooreds•11m ago•0 comments

Is Your Site Agent-Ready? (By Cloudflare)

https://isitagentready.com
1•WesSouza•11m ago•1 comments

Critical Atlantic current significantly more likely to collapse than thought

https://www.theguardian.com/environment/2026/apr/15/critical-atlantic-current-significantly-more-...
2•mooreds•12m ago•1 comments

Token Waste Management: I audited 9,667 Claude Code sessions for $19

https://thoughts.jock.pl/p/token-waste-management-opus-47-2026
1•joozio•12m ago•0 comments

Shared Dictionaries: compression that keeps up with the agentic web

https://blog.cloudflare.com/shared-dictionaries/
3•salkahfi•12m ago•0 comments

Show HN: Breeze, auto-confirm Windows Hello face recognition dialogs

https://github.com/evan-choi/breeze-wh
1•evan-choi•13m ago•0 comments

The jobs you want most are never posted

https://taylordesseyn.substack.com/p/the-jobs-you-want-most-are-never
1•mooreds•13m ago•0 comments

Linux Foundation Networking Welcomes O-RAN Software Community as Formal Project

https://www.linuxfoundation.org/press/lf-networking-welcomes-o-ran-software-community-as-formal-p...
1•teleforce•14m ago•0 comments

Show HN: Lazyagent – Preserve what your AI agents doing and analyze usage

https://github.com/chojs23/lazyagent
1•neozz•15m ago•0 comments

Free Software Foundation Says OnlyOffice Cannot Use AGPL to Restrict Forks

https://linuxiac.com/fsf-says-onlyoffice-cannot-use-agpl-to-restrict-forks/
1•speckx•15m ago•0 comments

PDD – Psychopath Driven Development

1•zwilderrr•17m ago•0 comments

Occulta – Cryptographic address book with UWB proximity key exchange

https://github.com/aibo-cora/occulta
1•ghafla•17m ago•0 comments

Nodes, Edges, and the Historian's Craft: Knowledge Graphs as Research Notes

https://computationalhistory.substack.com/p/nodes-edges-and-the-historians-craft
1•m-hodges•18m ago•0 comments

AI adoption will accelerate the e-waste crisis

https://restofworld.org/2026/global-ewaste-crisis/
1•donohoe•19m ago•0 comments

Atlassian is changing how we use customer data on August 17, 2026

https://www.atlassian.com/trust/ai/data-contribution
1•TechTechTech•19m ago•1 comments

VTK Integrating WebGPU

https://www.kitware.com/webgpu-one-graphics-api-to-rule-them-all/
1•mehmetoguzderin•19m ago•0 comments

Who Is Amy Eskridge? Scientist's Death Queried Amid US Expert Mysteries

https://www.newsweek.com/who-is-amy-eskridge-scientist-death-queried-us-expert-mysteries-11843659
1•Jimmc414•22m ago•0 comments

Potential breakthrough pancreatic cancer drug succeeds in late-stage trial

https://www.cnbc.com/2026/04/13/pancreatic-cancer-drug-daraxonrasib-from-revolution-medicines-suc...
3•gmays•22m ago•0 comments