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

Show HN: EchoFluid – a video transcription without uploading full videos

https://www.echofluid.com
1•samwulol•2m ago•0 comments

ICE Launches "Operation Catch-of-the-Day" Across Maine

https://www.dhs.gov/news/2026/01/21/ice-launches-operation-catch-day-targeting-worst-worst-crimin...
1•SanjayMehta•2m ago•0 comments

Show HN: AsyncReview – An OSS DevinReview Using RLMs

https://github.com/AsyncFuncAI/AsyncReview
1•sashimikun•7m ago•0 comments

Why is it legal and ok when big corp. straight tries to scam a user?

6•kingleopold•9m ago•1 comments

Read Bondi's Letter to Minnesota's Governor

https://www.nytimes.com/interactive/2026/01/24/us/pam-bondi-walz-doc.html
1•duxup•13m ago•0 comments

Skijoring is taking travellers off Colorado's ski-resort circuit

https://www.bbc.com/travel/article/20260121-skijoring-colorados-wildest-winter-sport
1•1659447091•14m ago•0 comments

ICE Is Not Like the Brownshirts, the Brownshirts Identified Themselves

https://www.mcsweeneys.net/articles/ice-is-nothing-like-the-brownshirts-because-the-brownshirts-a...
9•bjourne•22m ago•1 comments

The Responsibility of Intellectuals

https://www.nybooks.com/articles/1967/02/23/a-special-supplement-the-responsibility-of-intelle/
2•andsoitis•26m ago•0 comments

US SEC: India refused to serve summons to Adani Group under Hague Convention

https://economictimes.indiatimes.com/news/company/corporate-trends/us-regulator-seeks-to-bypass-i...
2•alok-g•27m ago•1 comments

Alex Honnold completes Taipei 101 skyscraper climb without ropes or safety net

https://www.cnn.com/sport/live-news/taiwan-alex-honnold-climb-taipei-101-01-25-26-intl-hnk
23•keepamovin•29m ago•7 comments

The Bay Area Has Lost Its Soul. No Wonder Everyone's Leaving [video]

https://www.youtube.com/watch?v=9_bsaF5TTEE
1•keepamovin•32m ago•1 comments

Prototyping NixOS with FDE, tang and Podman using Claude.AI

https://claude.ai/public/artifacts/e7cdb55a-3960-4dc9-bd1a-3c73a3145fb9
2•cptnslow•33m ago•1 comments

Show HN: VM-curator – a TUI alternative to libvirt and virt-manager

https://github.com/mroboff/vm-curator
2•theYipster•34m ago•0 comments

nvidia-smi hangs indefinitely after ~66 days

https://github.com/NVIDIA/open-gpu-kernel-modules/issues/971
15•tosh•37m ago•0 comments

Kb_text_shape: Harfbuzz like single file C/C++ text shaping library

https://github.com/JimmyLefevre/kb
2•inxode•38m ago•0 comments

ADSL Works over Wet String

https://www.revk.uk/2017/12/its-official-adsl-works-over-wet-string.html
3•Tiberium•39m ago•1 comments

AI Adoption Rates by Country

https://www.visualcapitalist.com/ai-adoption-rates-by-country/
2•divbzero•42m ago•1 comments

Managing High Performers

https://twitter.com/staysaasy/status/2015026826217742509
1•thisismytest•46m ago•1 comments

The case against ultrasonic humidifiers

https://dynomight.net/humidifiers/
5•arbuge•49m ago•2 comments

Unidentified Aerial Phenomena Near Nuclear Facilities – Enigma Labs

https://enigmalabs.io/collection/a7111520-9526-4939-9a66-d225db45ba80
1•lukeplato•50m ago•0 comments

BookLore: A self-hosted, multi-user digital library

https://github.com/booklore-app/booklore
4•thunderbong•51m ago•0 comments

Second Win11 emergency out of band update to address disastrous Patch Tuesday

https://www.windowscentral.com/microsoft/windows-11/windows-11-second-emergency-out-of-band-updat...
18•speckx•53m ago•2 comments

Inside Anduril's Bolt-M Kamikaze Drone Program

https://www.twz.com/uncategorized/inside-andurils-bolt-m-kamikaze-drone-program
3•breve•56m ago•2 comments

Bluesky CEO Jay Graber: Banning under-16s won't fix social media

https://www.ft.com/content/c6980fc4-97b6-40bf-a3d0-c40c3a6cac56
3•sealeck•59m ago•2 comments

Enterprises are eyeing End-To-End AI gateways

https://llmgateway.io/blog/unified-ai-gateway
2•steebchen•1h ago•1 comments

Show HN: React-meta-SEO – Rebuilding SEO for React 19 (3KB, no providers)

https://www.npmjs.com/package/react-meta-seo
1•Hacakthon•1h ago•0 comments

Shared Garden

https://sharedgarden.io/
2•lucaspauker•1h ago•0 comments

Google's AI Detection Tool Can't Decide If Its Own AI Doctored Photo of Activist

https://theintercept.com/2026/01/24/googles-ai-detection-white-house-synthid-gemini/
1•Qem•1h ago•0 comments

Show HN: PicoFlow – a minimal Python workflow for LLM agents

2•shijizhi_1919•1h ago•0 comments

Temporal tissue dynamics from a spatial snapshot

https://www.nature.com/articles/s41586-025-09876-1
1•bookofjoe•1h ago•0 comments