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

LZAV 7.1: Enhanced Compression Ratio, Speed, and C/C++ Pointer Compliance

https://github.com/avaneev/lzav
1•birdculture•6m ago•0 comments

Show HN: Solving a personal Problem, create internal tool for your App in mins

https://anadock.com/
1•verain•6m ago•0 comments

CVS to break up $117B business, separating pharmacies from insurance

https://www.reuters.com/legal/transactional/cvs-health-split-two-separating-pharmacy-business-ins...
1•JumpCrisscross•8m ago•0 comments

Ask HN: Can current AI models reverse engineer CUDA drivers?

2•m00dy•8m ago•0 comments

Pro-Russian hackers claim responsibility for attacks on refrigerators in EU

https://swedenherald.com/article/pro-russian-hacker-groups-claim-responsibility-for-attacks-on-re...
2•consumer451•13m ago•0 comments

Slug Thug

https://slugthug.com
1•tillstazy•14m ago•0 comments

Can I ignore tech debt now?

https://gruhn.me/blog/2026-10-05/
1•ngruhn•17m ago•0 comments

Show HN: Formatide – Batch image conversion and collages without uploading

https://formatide.com/converter
1•mcflysj•18m ago•0 comments

Google to cut Search access for schools that block new AI tools

https://www.fox29.com/news/google-cut-search-access-schools-completely-block-new-ai-tools
2•Pepitobombito•24m ago•1 comments

OCR: from reading characters to understanding documents

https://www.extend.ai/resources/history-of-ocr
2•taubek•24m ago•0 comments

Graph of all Rust crates dependencies

https://github.com/Fiedzia/rust-crates-graph-analysis
2•fiedzia•25m ago•1 comments

Ask HN: What are the fundamentals of agentic coding?

2•guitarlimeo•25m ago•0 comments

Mistakes Claude Makes with Hardware in the Loop

https://groundrun.io/blog/mistakes-claude-makes-with-hardware-in-the-loop/
1•adunk•28m ago•0 comments

Show HN: CascadeHook – Webhook delivery with signing, retries, and replay

https://cascadehook.com
1•shubbu03•28m ago•0 comments

"That was a frank interview." A 61-game chat with the CEO of Atari

https://www.gamefile.news/p/that-was-a-very-frank-interview-a
1•Michelangelo11•30m ago•0 comments

Tile downgrading: getting a 2048 AI to 32,768 without more training [video]

https://www.youtube.com/watch?v=2JgszpB4Cos
1•feralsimulation•36m ago•0 comments

A 3D Science Simulator with Molecules, a Periodic Table, and a Solar System

https://visionvix.world/
1•julian-vix•46m ago•0 comments

Google's Search Volume Is About 5x ChatGPT's, OpenAI Says

https://www.searchenginejournal.com/googles-search-volume-is-about-5x-chatgpts-openai-says/595817/
1•GloVin•47m ago•0 comments

GPT-6 Astra covertly underperforms on safety research

https://alignment.openai.com/misalignment-reports/covert-underperformance-on-safety-research-tasks/
4•lucrbvi•49m ago•0 comments

Mirall for Studios – client work doesn't belong on someone else's servers

https://mirall.app/studios
1•gokohl•51m ago•1 comments

AXI: Host-side state kept an LLM job exact for 1,500 steps pre-registered tests

https://zenodo.org/records/23958737
1•shalendragaur•54m ago•0 comments

AI-Lost In The Middle, possible solution

https://zenodo.org/records/23686384
1•pinuslongaeva•58m ago•0 comments

CAD Kernel in Rust faster than SMLib

https://next.brep.io/
3•arynrand•58m ago•0 comments

After Texas' blue wave, what happens to Elon Musk and SpaceX?

https://arstechnica.com/space/2026/11/elon-musk-moved-spacex-to-red-texas-now-its-blue-what-happe...
2•rbanffy•58m ago•0 comments

Show HN: HackerFriction, HackerTube for what HN complains about

https://hackerfriction.org/
2•capex•58m ago•0 comments

Show HN: GlobalMPC sign-guard – Adding policy enforcement to hot-wallet signing

https://github.com/globalmpc/rwa-kit-js
1•A_Jblessing•59m ago•0 comments

Show HN: L4H – our hypervisor built on the seL4 microkernel

https://github.com/losfair/l4h
2•losfair•1h ago•0 comments

Show HN: Inspired by HackerTube, I Built HackerByte for HN and GitHub

https://hackerbyte.net/
1•bakigul•1h ago•0 comments

NASA's 22-year-old Swift satellite telescope falls from orbit

https://www.reuters.com/science/nasas-22-year-old-swift-satellite-telescope-falls-orbit-fiery-fin...
9•tosh•1h ago•0 comments

Fixing Stack Overflow's toxicity with $500

https://sadok.mx/blog/fixing-stack-overflow/
2•sea-gold•1h ago•1 comments