frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Ask HN: Any good tools to pgdump multi tenant database?

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

Most security keys ship without a PIN, and websites rarely ask

https://www.notebookcheck.net/Most-security-keys-ship-without-a-PIN-and-websites-rarely-ask.13596...
1•yread•35s ago•0 comments

Show HN: A multiplayer play-money terminal casino for downtime

https://anteroom.johnramsey.com/
1•jramsey27•4m ago•0 comments

Microsoft never learns, IT admins rage as a new OneDrive app invades Windows 11

https://www.windowslatest.com/2026/08/04/microsoft-never-learns-it-admins-rage-as-a-new-onedrive-...
1•latein•5m ago•0 comments

AI Agents for Logistics, Pitfall?

1•srguarapo•7m ago•0 comments

Show HN: An open-weight background removal model for difficult images

https://withoutbg.com/open-model
1•kocabiyik•10m ago•0 comments

Out-of-court settlement between Amiga and Hyperion is publicly available

https://amiga-news.de/en/news/AN-2026-08-00028-EN.html
2•doener•13m ago•0 comments

Yemen's Houthis say they attacked Saudi oil tanker in Red Sea

https://www.reuters.com/world/middle-east/yemens-houthis-say-they-attacked-saudi-oil-tanker-red-s...
1•mapping365•15m ago•0 comments

Man arrested for Grim Reaper costume on hospital roof and staring at patients

https://www.mirror.co.uk/news/uk-news/hospital-grim-reaper-man-arrested-37511832
2•chistev•15m ago•1 comments

CtrlVibe AI Keypad – An OpenAI Micro Alternative for AI Workflows (Crowdfunding)

https://www.cnx-software.com/2026/08/05/ctrlvibe-ai-console-keypad-an-openai-codex-micro-alternat...
1•giuliomagnifico•18m ago•0 comments

OpenAI, Anthropic AI Models Breached Systems During UK Safety Tests

https://www.bloomberg.com/news/articles/2026-08-04/openai-says-models-breached-boundaries-during-...
3•sbulaev•24m ago•0 comments

Mach-1 Additive, a 35B model that can inference without multiplying

https://xcancel.com/antibot/captcha
1•imtany•25m ago•0 comments

City Heat Field

https://city-heatmap-online.vercel.app/
2•altilunium•28m ago•1 comments

SpaceX plans to become a mobile carrier

https://www.theverge.com/science/975480/spacex-mobile-terrestrial-cellphone-company
3•BlueBerry2001•29m ago•2 comments

Run full-blown macOS on iPadOS 16

https://github.com/nfzerox/VirtualMacOniPad
1•71bw•30m ago•0 comments

Making difficulty curves in games

http://www.davetech.co.uk/difficultycurves
1•hakkikonu•32m ago•0 comments

What Is Cloud.microsoft?

https://support.microsoft.com/en-us/office/what-is-cloud-microsoft
1•iso1631•36m ago•1 comments

The Depths She'll Reach (2021)

https://thedepths.longlead.com/
1•Thunder_rumbles•36m ago•0 comments

How HN: Argus – open-source security scanner with MCP

https://github.com/argus-code-scanning/argus-codescan-mcp
1•Gabrielokiri•37m ago•0 comments

Companies once tied to Assad kept winning UN contracts under Syria's new rulers

https://www.icij.org/investigations/damascus-dossier/companies-once-tied-to-assad-kept-winning-un...
2•robtherobber•41m ago•0 comments

Episode 2: Trump Must Admit Defeat in Iran [video]

https://www.youtube.com/watch?v=nRAtD7iAgwY
3•hebelehubele•43m ago•0 comments

A creature that the internet is raising together

https://canwecooperate.com
1•sheepyellow•45m ago•0 comments

The Economist Problem and AI

https://pithandpip.com/blog/the-economist-problem-and-ai
1•maguay•46m ago•0 comments

Show HN: Systematic reporting in under an hour, not months

https://octigen.com/blog/posts/2026-08-04-systematic-reporting/
7•m_mueller•52m ago•0 comments

Helios: Decentralized Autonomous Collision Avoidance for Megaconstellations

https://github.com/kamilprochazka27-art/HELIOS
2•HELIOSDecentral•52m ago•0 comments

Show HN: TickerNotch: Live tickers and news in the MacBook notch

https://bitvibelabs.com/tickernotch/
2•BitVibeLabs•55m ago•0 comments

The software group Palantir paid just £2M in corporation tax in the UK in 2024

https://www.theguardian.com/technology/2026/aug/05/palantir-corporation-tax-uk-2024-accounting-pr...
19•igortru•55m ago•10 comments

Bitcoin BIP110 mandatory activation this Saturday, how game theory will unfold?

https://www.simondixon.com/blog/bip-110-the-spam-war-and-the-battle-nobody-wants-to-name-where-i-...
6•slavgoyim•56m ago•0 comments

OpenAI pays $3.2M to settle claims it discriminated against US workers

https://www.theguardian.com/us-news/2026/aug/04/openai-worker-discrimination-claims-settlement
5•igortru•57m ago•0 comments

The official draw.io MCP Server

https://github.com/jgraph/drawio-mcp
2•saikatsg•57m ago•0 comments

OpenAI and Anthropic models 'went rogue' during UK cybersecurity test

https://www.theguardian.com/technology/2026/aug/05/openai-anthropic-models-went-rogue-cybersecuri...
4•ablation•58m ago•0 comments