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: Swish Finance – a zero-click way to watch your portfolio

https://www.swishfinance.app/
1•trympet•1m ago•0 comments

US set to quit World Health Organization

https://www.reuters.com/business/healthcare-pharmaceuticals/us-set-quit-world-health-organization...
1•geox•1m ago•0 comments

Show HN: A Node Based Editor for Three.js Shading Language (TSL)

https://www.tsl-graph.xyz/
1•bhushanwtf•2m ago•0 comments

You're in a computer literacy filter bubble

https://www.autodidacts.io/computer-literacy-filter-bubble/
2•Curiositry•3m ago•0 comments

Launch HN: Constellation Space (YC W26) – AI for satellite mission assurance

https://constellation-io.com/
3•kmajid•5m ago•0 comments

Carapace

https://carapace.sh/
1•thayne•5m ago•1 comments

Conductivity of warm dense matter via ThZ spectroscopy and electron diffraction

https://www.nature.com/articles/s41467-025-65559-5
1•PaulHoule•5m ago•0 comments

Unbiased world news on a map – just facts, no editorial spin

https://apps.apple.com/fr/app/azimut-newsbreak-app-map/id6757921409
2•angel_gfroy•5m ago•1 comments

PDX Phở

https://pho.curtisbarnard.com/
1•oregoncurtis•6m ago•1 comments

Why Your Voice Cloning Sounds Fake (and How to Fix It)

https://gradium.ai/blog/voice-cloning-sounds-fake
2•pain_perdu•6m ago•0 comments

The Simplest Advice I Ever Got About Loneliness

https://soonly.com/simplest-advice-about-loneliness/
1•stroz•6m ago•0 comments

Commodore 64 Ultimate Review [video]

https://www.youtube.com/watch?v=UtLR4nXAm4w
1•skibz•6m ago•0 comments

Show HN: A registry for curated, high quality Claude skills and skillsets

https://noriskillsets.dev/
4•ritammehta•7m ago•0 comments

We built a museum exhibit about a 1990s game hint line, with a physical binder

https://yarnspinner.dev/blog/hint-line-93/
1•parisidau•11m ago•0 comments

Primary Emotional Systems and Personality: An Evolutionary Perspective (2017)

https://www.frontiersin.org/journals/psychology/articles/10.3389/fpsyg.2017.00464/full
1•bfoks•13m ago•0 comments

Paul Bertorelli on the Future of Aviation Journalism: It's Challenging

https://avbrief.com/paul-bertorelli-on-the-future-of-aviation-journalism-its-challenging/
1•Stevvo•14m ago•0 comments

Ask HN: Do you have side income as a software engineer?

4•andrewstetsenko•15m ago•1 comments

Show HN: isometric.nyc – giant isometric pixel art map of NYC

https://cannoneyed.com/isometric-nyc/
7•cannoneyed•15m ago•1 comments

Show HN: Brickify – Webapp to convert 3D models into Lego brick assemblies

https://brickify.ad-si.com
2•adius•16m ago•0 comments

GitHub "Files Changed" Tab Change?

1•nonethewiser•16m ago•0 comments

Show HN: Desktop‑2FA – offline open‑source TOTP authenticator for desktop

https://desktop-2fa.lukasz-perek.workers.dev/
1•wrogistefan•18m ago•0 comments

Show HN: I'm tired of my LLM bullshitting. So I fixed it

2•BobbyLLM•18m ago•0 comments

My friend built a tool to detect when to post on socials starting with this one

https://hadaa.app/hn_dashboard
2•muriithiKabogo•18m ago•1 comments

STL Editing with FreeCAD

https://hackaday.com/2026/01/22/stl-editing-with-freecad/
1•rbanffy•20m ago•0 comments

Iran has now been under a national internet blackout for two full weeks

https://twitter.com/netblocks/status/2014375236674675147
1•beejiu•21m ago•0 comments

Easy Measures Doing, Simple Measures Understanding

https://blog.jim-nielsen.com/2026/easy-vs-simple/
1•sibeliuss•21m ago•0 comments

Notebook.link: The Future of Notebook Sharing

https://medium.com/@QuantStack/introducing-notebook-link-the-future-of-notebook-sharing-5de900a97b4a
6•SylvainCorlay•21m ago•2 comments

Reverse engineering Lyft Bikes for fun (and profit?)

https://ilanbigio.com/blog/lyft-bikes.html
2•ibigio•22m ago•1 comments

Work-from-office mandate? Expect top talent turnover, culture rot

https://www.cio.com/article/4119562/work-from-office-mandate-expect-top-talent-turnover-culture-r...
3•CrankyBear•23m ago•0 comments

Ed tech is profitable. It is also mostly useless

https://www.economist.com/united-states/2026/01/22/ed-tech-is-profitable-it-is-also-mostly-useless
1•2OEH8eoCRo0•24m ago•0 comments