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

Polaroid's Showman (2023)

https://www.cabinetmagazine.org/kiosk/allen_jonathan_isenbart_jan_03_march_2023.php
1•XzetaU8•3m ago•0 comments

The World's Most Complex Machine

https://worksinprogress.co/issue/the-worlds-most-complex-machine/
2•mellosouls•7m ago•0 comments

Behind-the-Scenes of MacBook Neo Introduction Video

https://www.youtube.com/shorts/y4DnsCzJTRQ
13•0xbg•10m ago•5 comments

2× – nine months later: We did it

https://ideas.fin.ai/p/2x-nine-months-later
1•jamesblonde•11m ago•0 comments

The Tsundoku Trap: Why AI Makes You Start Everything and Finish Nothing

https://blog.danielvaughan.com/the-tsundoku-trap-why-ai-makes-you-start-everything-and-finish-not...
2•dvaughan•12m ago•0 comments

Building Code.overheid.nl Together

https://developer.overheid.nl/blog/2026/04/24/we-gaan-samen-code-overheid-bouwen
2•doughnutstracks•13m ago•0 comments

ALDI Eliminating an Additional 44 Ingredients – ALDI US

https://corporate.aldi.us/newsroom/news/aldi-eliminating-an-additional-44-ingredients
1•bilsbie•13m ago•0 comments

Show HN: Memweave CLI – search your AI agent's memory from the shell

https://github.com/sachinsharma9780/memweave
2•r2d2_•15m ago•0 comments

Civic-SLM is a domain-specialized fine-tune of Qwen2.5-7B for U.S. govt data

https://itsmeduncan.com/civic-slm/
1•itsmeduncan•17m ago•0 comments

Rotating Space Habitats

https://blog.engora.com/2026/04/rotating-space-habs.html
1•Vermin2000•17m ago•1 comments

Show HN: StudioLedger – Escrow-protected contracts for creators, on XRPL

https://github.com/remyyx/workledger
2•remyyx•21m ago•0 comments

Quarkdown – Markdown with Superpowers

https://quarkdown.com/
2•Tomte•21m ago•0 comments

Issue with AWS Ops Wheel

https://aws.amazon.com/security/security-bulletins/rss/2026-018-aws/
4•mooreds•24m ago•0 comments

Farting Fish Fingered (2005)

https://www.theguardian.com/education/2005/mar/11/highereducation.research
4•thunderbong•25m ago•0 comments

The Digesting Duck: a 1739 automaton that appeared to eat, digest, and defecate

https://en.wikipedia.org/wiki/Digesting_Duck
44•AgentNews•26m ago•3 comments

A Systems Glitch at Fidelity Caused One Woman's Savings to Disappear

https://www.nytimes.com/2026/04/25/your-money/fidelity-investments-fraud-alert.html
4•donohoe•27m ago•0 comments

Installing Pop!OS 24 Directly with Unsquashfs and Chroot (and No Reboot)

https://hajo.me/blog/2026/04/25/installing-popos-24-directly-with-unsquashfs-chroot-no-reboot/
2•fxtentacle•29m ago•0 comments

Electric air taxis. Vertical Aerospace's VX4 just cleared a key test

https://www.scientificamerican.com/article/can-electric-air-taxis-carry-passengers-vertical-aeros...
2•beardyw•35m ago•0 comments

NeoAgent – self-hosted proactiv Agent with Android, browser and desktop control

https://github.com/NeoLabs-Systems/NeoAgent
2•neo_original•37m ago•0 comments

The Military Rockets That Launched the Space Age (2023)

https://airandspace.si.edu/stories/editorial/military-rockets-launched-space-age
2•radeeyate•40m ago•0 comments

Designing synthetic datasets for the real world

https://research.google/blog/designing-synthetic-datasets-for-the-real-world-mechanism-design-and...
2•Anon84•42m ago•0 comments

Making the Rails Default Job Queue Fiber-Based

https://paolino.me/solid-queue-doesnt-need-a-thread-per-job/
2•ksec•46m ago•0 comments

The Most Successful Typeface in History | Helvetica [video]

https://www.youtube.com/watch?v=vxDySZrrAeA
3•skibz•49m ago•0 comments

Show HN: Enlist AI: Sub-second interview coaching with persistence

2•lilprince1218•50m ago•0 comments

Millet

https://en.wikipedia.org/wiki/Millet
4•num42•50m ago•0 comments

AgentCore Harness

https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/harness.html
2•aor215•50m ago•0 comments

Brief delays in chatbot responses boost perceived thoughtfulness and usefulness

https://engineering.nyu.edu/news/why-faster-ai-isnt-always-better
4•giuliomagnifico•53m ago•1 comments

Metal Lossy Compression Format

https://www.ludicon.com/castano/blog/2026/04/metal-lossy-compression-format/
3•gok•53m ago•0 comments

Quarkdown 2.0 Is Here

https://www.heise.de/en/news/Books-and-slides-from-Markdown-Quarkdown-2-0-is-here-11271511.html
2•croes•56m ago•0 comments

From $200 to $30: Five Layers of LLM Cost Optimization

http://blog.dwornikowski.com/posts/cutting-llm-costs-token-optimization/
7•tdi•58m ago•0 comments