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

Apple TV's Upcoming Cyberpunk Series Will Be the Matrix Meets Blade Runner

https://screenrant.com/neuromancer-apple-tv-matrix-meets-blade-runner/
1•mindcrime•57s ago•0 comments

Berlin offers free entry for litter picking to make tourists do their bit

https://www.euronews.com/my-europe/2026/04/16/berlin-offers-free-entry-for-litter-picking-to-make...
1•ohjeez•1m ago•0 comments

TSA Bans This Knife at Checkpoint – Then Airlines Hand It to You on Plane

https://viewfromthewing.com/tsa-bans-this-knife-at-the-checkpoint-then-airlines-hand-it-to-you-on...
1•bookofjoe•4m ago•0 comments

Ask HN: Does magic link authentication use HTML canvansing?

1•trinsic2•6m ago•0 comments

SF is obsessed with the safest drivers and ignoring the ones killing people

https://www.sfchronicle.com/opinion/openforum/article/pedestrian-death-driver-accident-22210904.php
1•aranchelk•9m ago•0 comments

Write Code Like You Just Learned How to Program

https://prog21.dadgum.com/87.html
2•tosh•9m ago•1 comments

Salesforce launches Headless 360 turn platform in infrastructure for AI agents

https://venturebeat.com/ai/salesforce-launches-headless-360-to-turn-its-entire-platform-into-infr...
3•ulrischa•11m ago•0 comments

Bluetooth tracker in a postcard and mailed to a warship exposed its location

https://www.tomshardware.com/tech-industry/cyber-security/bluetooth-tracker-hidden-in-a-postcard-...
2•tcp_handshaker•12m ago•0 comments

Trump, When Asked About White House Meeting with Anthropic's Dario Amodei: Who?

https://gizmodo.com/trump-when-asked-about-white-house-meeting-with-anthropics-dario-amodei-who-2...
3•ulrischa•13m ago•0 comments

Too many tools or tool overload

https://devcyc.life/too-many-tools-or-tool-overload/
2•lilerjee•14m ago•0 comments

IMF says America's $39T national debt is a global problem

https://finance.yahoo.com/economy/policy/articles/world-going-broke-imf-says-194850050.html
3•tcp_handshaker•15m ago•0 comments

Shared Dictionaries: compression that keeps up with the agentic web

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

Show HN: DOMPrompter – click a DOM element, get a structured AI coding prompt

3•witnote•19m ago•0 comments

List of people imprisoned for editing Wikipedia

https://en.wikipedia.org/wiki/List_of_people_imprisoned_for_editing_Wikipedia
5•lr0•20m ago•0 comments

Phantom Camerawork: Star Wars: Episode I – The Phantom Menace (1999)

https://theasc.com/magazine/sept99/phantom/index.htm
1•exvi•21m ago•0 comments

SpaceX Files FCC Complaint over Ariane 64 Amazon Leo Launch

https://europeanspaceflight.com/spacex-files-fcc-complaint-over-ariane-64-amazon-leo-launch/
3•tcp_handshaker•23m ago•0 comments

The AI stack trap: the hidden cost of overbuilding with AI

https://www.forbes.com/sites/abdoriani/2026/01/24/the-ai-stack-trap-the-hidden-cost-of-overbuildi...
1•DrZootron•24m ago•0 comments

Welcome to the Machine: The Matrix (1999)

https://theasc.com/magazine/apr99/matrix/index.htm
2•exvi•24m ago•0 comments

4-bit floating point FP4

https://www.johndcook.com/blog/2026/04/17/fp4/
2•chmaynard•26m ago•1 comments

Comparing GPT-5.4, Opus 4.6, GLM-5.1, Kimi K2.5, MiMo V2 Pro and MiniMax M2.7

https://www.codejam.info/2026/04/comparing-gpt-5-4-opus-4-6-glm-5-1-kimi-k2-5-mimo-v2-pro-and-min...
1•funkyval•29m ago•0 comments

Two $20B: OpenAI and Nvidia in a 'Reasoning Battle'

https://jianshiapp.com/two-20-billion-openai-and-nvidia-in-a-reasoning-battle/
1•ninjahawk1•31m ago•0 comments

Graphs That Explain the State of AI in 2026

https://spectrum.ieee.org/state-of-ai-index-2026
1•bryanrasmussen•35m ago•0 comments

Poetical: AI Poetry Feed

https://apps.apple.com/ro/app/poetical-ai-poetry-feed/id6761653704
1•mening12001•35m ago•0 comments

Unobtrusive inference of diurnal rhythms from smartphone data

https://www.nature.com/articles/s41746-025-02254-1
1•bryanrasmussen•36m ago•0 comments

Show HN: WebGL Liminal Space

https://liminal-dwsw5.ondigitalocean.app/
1•5fc3b4•37m ago•0 comments

Rail: A self-hosting language that speaks TLS alone

https://github.com/zemo-g/rail
2•zem0g•38m ago•0 comments

SDF Based Chess Rendering

https://github.com/Janos95/onion
1•janos95•44m ago•2 comments

Does Your Poop Float?

https://buildojas.substack.com/p/does-your-poop-float
2•rohan_shah•44m ago•1 comments

The quest to measure our relationship with nature

https://www.technologyreview.com/2026/04/16/1135245/measure-relationship-with-nature-index/
1•joozio•44m ago•0 comments

An Agentic Home Bioreactor

https://chillphysicsenjoyer.substack.com/p/an-agentic-home-bioreactor
1•crescit_eundo•46m ago•0 comments