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

Show HN: I built a sub-20ms crypto API in Go

https://psychosomat.github.io/LimpioRelease-hn-article/
1•arturstankevicz•54s ago•0 comments

My AI Coding Workflow

https://refactoring.fm/p/my-ai-coding-workflow
1•lucaronin•4m ago•0 comments

A computer for every agent (Cursor cloud sandbox feature release video)

https://www.youtube.com/watch?v=6Nru5OQq9O4
1•Sammi•5m ago•0 comments

Distributed Cognitive Escalation: How Digital Systems Turn Belief into Identity

https://samuelgabrielsg.substack.com/p/distributed-cognitive-escalation
1•samuelgabrielsg•7m ago•0 comments

Veo 3.2 Is on the Way: Improved World Modeling and Physics Simulation

https://Veo3-2.app/
1•Jenny249•8m ago•0 comments

Reduced the size of Golang binaries by up to 77%

https://www.datadoghq.com/blog/engineering/agent-go-binaries/
2•fanf2•8m ago•0 comments

Michael Pollan punctures the AI bubble

https://www.theatlantic.com/books/2026/02/michael-pollans-new-book-pops-ai-bubble/686119/
1•FinnLobsien•8m ago•0 comments

PageMaker pioneer Paul Brainerd dies at 78

https://daringfireball.net/linked/2026/02/24/paul-brainerd-rip
1•tannhaeuser•12m ago•0 comments

Schrödinger's color theory completed after 100 years

https://www.sciencedaily.com/releases/2026/02/260222092302.htm
1•thunderbong•17m ago•0 comments

Determinant – a minimal deterministic governance layer for AI pipelines

2•Hnidopich•18m ago•1 comments

Better Activation Functions for NNUE

https://cosmo.tardis.ac/files/2026-01-27-activation-2.html
1•luu•18m ago•0 comments

Self-hosted file decks with share links and visitor analytics

https://github.com/e-hosseini/deck-share
1•zerob4wl•19m ago•1 comments

LinkLane Web Directory

https://linklane.net/index.php
2•TigerUniversity•20m ago•0 comments

Everything You Always Wanted to Know About Mathematics [pdf]

https://www.math.cmu.edu/~jmackey/151_128/bws_book.pdf
1•the-mitr•20m ago•0 comments

Show HN: A peer-2-peer network for sharing and accessing LLMs through OpenAI API

https://github.com/skorotkiewicz/conduit
1•modinfo•21m ago•0 comments

AI Agent Reliability Tracker

https://hal.cs.princeton.edu/reliability/
1•smartmic•22m ago•1 comments

NVIDIA hiring engineers to optimize Proton and Vulkan API performance on Linux

https://www.techpowerup.com/346714/nvidia-hiring-engineers-to-optimize-proton-and-vulkan-api-perf...
2•teleforce•24m ago•0 comments

"Vibe Coding" Threatens Open Source

https://www.infoq.com/news/2026/02/ai-floods-close-projects/
1•birdculture•24m ago•0 comments

Mewgenics.Online – Wiki, Breeding Guide and Class Database

https://mewgenics.online/
2•lizbo•27m ago•0 comments

Fmstream – The Radio Stream Directory

http://nossl.fmstream.org/
2•TigerUniversity•27m ago•0 comments

Induced biological soil crust strategy reverses desertification

https://www.sciencedirect.com/science/article/abs/pii/S0038071719303293
2•QueensGambit•28m ago•0 comments

UK self-driving startup Wayve raises $1.2B from investors including Mercedes

https://www.reuters.com/business/uk-self-driving-startup-wayve-raises-12-billion-investors-includ...
5•teleforce•31m ago•0 comments

Merge Branch 'Antigravity'

https://github.com/torvalds/AudioNoise/commit/93a72563cba609a414297b558cb46ddd3ce9d6b5
1•nomilk•31m ago•0 comments

Hegseth threatens to cut Anthropic from Pentagon in showdown with CEO

https://www.ft.com/content/0c6b63b6-2524-4ba7-9f7a-e7183b29386f
1•dede4metal•35m ago•0 comments

AI is threatening science jobs. Which ones are most at risk

https://www.nature.com/articles/d41586-026-00444-9
1•JeanKage•35m ago•0 comments

Cloudflare One is the first SASE offering modern post-quantum encryption

https://blog.cloudflare.com/post-quantum-sase/
1•maxloh•36m ago•0 comments

School stu­dents launch satel­lite to detect fungi in atmosphere

https://www.thehindu.com/news/cities/Madurai/govt-school-students-in-karaikudi-launch-satellite-t...
1•the-mitr•38m ago•0 comments

Eyes and Ears for Your Agents

https://videodb.io/
2•ash-ishh•39m ago•0 comments

Measuring the True ROI of Autonomous Hyper-Personalisation of Email

https://swifterm.com/the-true-roi-of-autonomous-hyper-personalisation/
1•SwiftERM•39m ago•0 comments

I Replaced Paid Video Editors with an OpenClaw Skill

https://github.com/Web2Labs/web2labs-studio-skill
1•philippfanta•41m ago•0 comments