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

Official Fundraising Platform of Ukraine

https://u24.gov.ua/
1•doener•37s ago•0 comments

We Lost Communication to Entertainment

https://ploum.net/2025-12-15-communication-entertainment.html
1•8organicbits•3m ago•0 comments

The PGP Problem

https://www.latacora.com/blog/2019/07/16/the-pgp-problem/
2•IAmLiterallyAB•4m ago•0 comments

Your Team Needs an Operational Excellence Meeting

https://rsaul.com/operational-excellence-meeting/
1•TheGRS•6m ago•0 comments

What even is DevRel in 2025? Asking as someone who does it

1•hakierka•7m ago•0 comments

Show HN: Dotenv-Diff – Recent Improvements

1•casmn•8m ago•0 comments

The Epstein files downloaded today is different compared to before

1•IDKhowTo•9m ago•1 comments

Show HN: Drop-in maps for Markdown and HTML, wrapping leaflet and OSM

https://github.com/cfe84/mapdown
1•charles_f•10m ago•0 comments

The worst programming language of all time [video]

https://www.youtube.com/watch?v=7fGB-hjc2Gc
1•caustic•10m ago•0 comments

Basket Weaving

https://www.matttommey.com/blog/archives/01-2024
1•marysminefnuf•11m ago•0 comments

Fax and furious: Why Germany struggles to go digital

https://www.dw.com/en/fax-and-furious-why-germany-struggles-to-go-digital/a-75206481
1•N19PEDL2•12m ago•0 comments

Travel agents took 10 years to collapse. Developers are 3 years in

https://martinalderson.com/posts/travel-agents-developers/
2•martinald•15m ago•1 comments

Show HN: TensorPad – The Engineering Notebook You've Been Waiting For

https://www.tensorpad.dev/
2•willherr72•17m ago•1 comments

Most experts now believe aliens exist. Here's what convinced them

https://www.sciencefocus.com/space/yes-aliens-probably-exist-heres-why
1•XzetaU8•18m ago•0 comments

Announcing hardware-accelerated BitLocker

https://techcommunity.microsoft.com/blog/windows-itpro-blog/announcing-hardware-accelerated-bitlo...
1•akyuu•19m ago•0 comments

Copyly: AI Product Descriptions for Dropshippers

1•iedayan03•19m ago•0 comments

Landslide; a Ghost Story

https://www.wrecka.ge/landslide-a-ghost-story/
1•8organicbits•20m ago•0 comments

Ancient Roman column gets high-tech laser facelift

https://www.cnn.com/2025/12/27/travel/marcus-aurelius-laser-restoration-intl
1•breve•22m ago•0 comments

Show HN: Create your own corner of the internet

https://www.itsmycorner.com/new
1•electrodisk•23m ago•0 comments

U.S. decision to impose travel restrictions on EU individuals

https://ec.europa.eu/commission/presscorner/detail/en/statement_25_3160
4•doener•23m ago•0 comments

Ask HN: What are some interesting projects you have built using Claude Code

1•mr_o47•27m ago•1 comments

Ask HN: I built a SaaS that nobody asked for, now what?

2•ahmgeek•28m ago•6 comments

Facebook deploys the Steam Deck's Linux scheduler across its data centers

https://www.tomshardware.com/software/linux/facebook-deploys-the-steam-decks-linux-scheduler-acro...
1•alhazrod•31m ago•1 comments

Rainbow Six Siege Hacked as Players Get Billions of Credits and Random Bans

https://www.shanethegamer.com/esports-news/rainbow-six-siege-hacked-global-server-outage/
2•erhuve•32m ago•0 comments

Ask HN: What are your biggest challenges raising capital pre-revenue?

1•tonyrice•36m ago•0 comments

Face similarity search over a large OnlyFans dataset

https://explore.fans
2•mysaasidea•36m ago•2 comments

Cursor Year in Review 2025

https://cursor.com/2025
1•harrisreynolds•37m ago•1 comments

The Scientific Lie That Damaged Generations of Men [video]

https://www.youtube.com/watch?v=kOuer8-sIzQ
3•baxtr•37m ago•1 comments

Show HN: Morph-AI-Era – A dashboard making tool without any manual setup

https://morph-ai-era.online/
1•prajjawal_123•39m ago•1 comments

Show HN: ClickHouse Fiddle – A SQL Playground for ClickHouse

https://fiddle.clickhouse.com/
1•saisrirampur•39m ago•0 comments