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: AgentVoices – Live debate arena where AI agents compete

https://agentvoices.ai/
1•lifesaverluke•1m ago•0 comments

Show HN: System architecture method using mythology and LLMs (no CS background)"

https://github.com/FusionAlchemist/The---Stellaris---Axis
1•fusionalchemist•4m ago•0 comments

OpenClaw plugin for finding remote jobs

https://twitter.com/LiorNn/status/2023385552548946324
1•Lior539•7m ago•1 comments

28M Tokens for One Simple OpenClaw Prompt

https://github.com/simple10/openclaude/blob/main/notes/logs/runaway-openclaw-prompt-hack.md
1•simple10•7m ago•1 comments

Show HN: Oore CI – self-hosted, Flutter-first mobile CI (public alpha)

https://github.com/devaryakjha/oore.build
1•_arykumarjha•9m ago•0 comments

The $1B BrewDog deal that left everyone empty-handed

https://littlelaw.co.uk/p/the-1-billion-brewdog-deal-that-left-everyone-empty-handed
1•arethuza•9m ago•0 comments

Harwdware accelerated and free web-based video editing tools using webcodecs

https://dubstack.studio
1•fitzmode•11m ago•0 comments

Show HN: I let an AI write a weekly newspaper for other AIs – about humans

https://steady.page/de/das-protokoll/posts/8c0ad0c5-9860-4ac4-bb56-4601adb01c52
1•redgem•13m ago•0 comments

The Cost of Code Is Going to Zero

https://keon.kim/writing/cost-of-code-is-going-to-zero/
1•kwk236•14m ago•1 comments

Show HN: Interesting story pairing from across the Hacker News Corpus

1•keepamovin•17m ago•0 comments

Steal Your Competitors' Customers

1•mathwin78•18m ago•0 comments

Ask HN: Do you think China will produce a SOTA model in the next 2 years

1•upmind•20m ago•1 comments

Wave Twisters (2001)

https://www.youtube.com/watch?v=cQVRTdRnQiQ
1•hyperific•21m ago•0 comments

Real time decoding of 100baseT1 Ethernet with ngscopeclient and ThunderScope [video]

https://www.youtube.com/watch?v=Sx9cRnWOk2A
1•ignaloidas•22m ago•0 comments

Should Be Helpful

https://venturebeat.com/orchestration/qodo-2-1-solves-your-coding-agents-amnesia-problem-giving-t...
1•Debeli•22m ago•0 comments

Show HN: 3D Lab Viewer – View Step, STL, 3MF Files in the Browser

https://viewer.3dlab.id
1•goodsmileduck•23m ago•0 comments

A realtime knowledge graph on the global food and beverage industry, built by AI

https://latable.ai
1•jebjob•23m ago•1 comments

Recraft V4

https://www.recraft.ai/blog/introducing-recraft-v4-design-taste-meets-image-generation
1•ashvardanian•25m ago•0 comments

An emulator for Google's Titan C chip

https://github.com/HavenOverflow/gscemu
1•appleflyer•25m ago•0 comments

Late Chunking: Balancing Precision and Cost in Long Context Retrieval

https://weaviate.io/blog/late-chunking
1•l1am0•26m ago•0 comments

The first university was founded by a woman

https://theglobalacademy.ac/the-worlds-first-university-was-founded-by-a-woman/
2•teleforce•26m ago•1 comments

Godot is drowning in AI slop pull requests

https://bsky.app/profile/akien.bsky.social/post/3meyerixvhs2p
2•mbreese•30m ago•3 comments

The case for gatekeeping, or: why medieval guilds had it figured out

https://www.joanwestenberg.com/the-case-for-gatekeeping-or-why-medieval-guilds-had-it-figured-out/
5•todsacerdoti•30m ago•1 comments

Wordpress.com adds an AI Assistant that can edit, adjust styles, create images

https://techcrunch.com/2026/02/17/wordpress-com-adds-an-ai-assistant-that-can-edit-adjust-styles-...
1•taubek•31m ago•0 comments

I don't know anyone who uses Grokipedia, it will never work, says Jimmy Wales

https://www.moneycontrol.com/europe/?url=https://www.moneycontrol.com/news/business/india-ai-impa...
4•jmsflknr•32m ago•2 comments

Show HN: Potatoverse platform for apps in single binary, SQLite db

https://github.com/blue-monads/potatoverse
4•born-jre•33m ago•0 comments

Data Center

https://store.steampowered.com/app/4170200/Data_Center/
1•prawn•35m ago•0 comments

I hacked ChatGPT and Google's AI – and it only took 20 minutes

https://www.bbc.com/future/article/20260218-i-hacked-chatgpt-and-googles-ai-and-it-only-took-20-m...
4•ranit•37m ago•0 comments

Agent37

https://www.agent37.com
2•bellamoon544•41m ago•1 comments

Ask HN: How do you debug multi-step AI workflows when the output is wrong?

1•terryjiang2020•43m ago•0 comments