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

Show HN: PayClaw – a gasless USDC wallet for AI agents (12 frameworks)

https://github.com/ONSARI/payclaw-skill
1•onsari•1m ago•0 comments

Ask HN: Is there still an opportunity for an affordable CPanel alternative?

1•panelica•3m ago•0 comments

Show HN: Twitter for Voice Notes

https://earful.world/?q=&tab=all
1•quinto_quarto•3m ago•0 comments

Explore H-1B labor condition application filings

https://layoffhedge.com/h1b
1•qwertyuiop_•5m ago•0 comments

Pausing new self-serve signups for GitHub Copilot Business

https://github.blog/changelog/2026-04-22-pausing-new-self-serve-signups-for-github-copilot-business/
1•tech234a•5m ago•0 comments

Lirantal/PyPI-security-best-practices

https://github.com/lirantal/pypi-security-best-practices
1•rbanffy•6m ago•0 comments

Python Type Checker Comparison: Speed and Memory Usage – Pyrefly

https://pyrefly.org/blog/speed-and-memory-comparison/
1•rbanffy•6m ago•0 comments

Machine Learning Visualized – Machine Learning Visualized

https://ml-visualized.com/
1•rbanffy•6m ago•0 comments

Old Computers in My University

https://mrunix.me/posts/old-computers-usto/
2•mrunix•7m ago•0 comments

Spark: Bitcoin's Payment Layer for Stablecoins and Instant BTC

https://www.spark.money
1•janandonly•10m ago•0 comments

From Jammy to Resolute: how Ubuntu's toolchains have evolved

https://ubuntu.com/blog/from-jammy-to-resolute-how-ubuntus-toolchains-have-evolved
1•vyrotek•13m ago•0 comments

The company building America's first mail-order servant robot

https://www.dezeen.com/2026/04/23/1x-neo-servant-robot-factory/
1•mikeaskew4•13m ago•0 comments

Outrage over Oracles thousands of H-1B requests amid layoffs

https://nypost.com/2026/04/02/us-news/outrage-over-oracles-thousands-of-h-1b-requests-amid-layoffs/
4•reconnecting•14m ago•1 comments

1-Click Linux alpha is out now

https://blog.arusekk.pl/posts/1-click-linux-alpha/
1•speckx•15m ago•0 comments

GitHub banned me for no understandable reason

https://blog.hellbeast.eu.org/Github%20banned%20me%20for%20no%20understandable%20reason
1•regalialong•16m ago•0 comments

Show HN: Env Validator (NextJS and SvelteKit)

https://github.com/Chrilleweb/dotenv-diff
2•chrillemn•18m ago•0 comments

Picklecast – Eliminate your Chromecast dependence

https://evan.widloski.com/picklecast/display.html
1•Evidlo•19m ago•1 comments

Meta says it will cut 8k jobs as AI spending grows

https://www.bbc.com/news/articles/crm1y89vek8o
3•billybuckwheat•20m ago•0 comments

From 800ms to ~25ms: harness-driven optimization of a CUDA matmul kernel

https://github.com/YupengHan/matmul_optimizer
1•icyace•20m ago•0 comments

Which AI coding tools do developers use at work? (JetBrains, 10k devs)

https://blog.jetbrains.com/research/2026/04/which-ai-coding-tools-do-developers-actually-use-at-w...
2•AgentNews•21m ago•0 comments

The Broader Landscape of Robustness in Algorithmic Statistics

https://arxiv.org/abs/2412.02670
1•sebg•21m ago•0 comments

Show HN: Chestnut – The antidote to AI-induced skill atrophy

https://www.chestnut.so/
3•NickMiladinov•24m ago•0 comments

A Dutch team must lose to reach playoffs

https://old.reddit.com/r/soccer/comments/1sri60x/bizarre_situation_in_dutch_second_division_den/
1•theopsimist•24m ago•0 comments

Farcaster Agent Kit – CLI for AI agents to use Farcaster, zero paid APIs

https://github.com/jbaldwinroberts/farcaster-agent-kit
1•atlas-agent•24m ago•0 comments

Anthropic's Claude Desktop App Installs Undisclosed Native Messaging Bridge

https://letsdatascience.com/news/claude-desktop-installs-preauthorized-browser-extension-mani-406...
4•CGMthrowaway•28m ago•0 comments

Show HN: I blind-tested 14 LLMs on a WP plugin task. Surprising Findings

https://github.com/guilamu/llms-wordpress-plugin-benchmark/blob/main/README.md
2•guilamu•29m ago•0 comments

Ask HN: Does HN kinda hate America?

1•howmayiannoyyou•30m ago•6 comments

No raw data, no science: another possible source of the reproducibility crisis

https://link.springer.com/article/10.1186/s13041-020-0552-2
2•sebg•31m ago•0 comments

Same AWS plan, same continent – different behavior under load

https://webbynode.com/articles/aws-eu-region-performance-differences
2•gsgreen•31m ago•0 comments

Greenhouse gases from data center boom could outpace nations

https://www.wired.com/story/new-gas-powered-data-centers-could-emit-more-greenhouse-gases-than-en...
3•pier25•33m ago•0 comments