frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Show HN: I wrote down every expensive hardware development mistake I've seen

https://thehardesthardwarelessons.com/
1•hans863•2m ago•0 comments

Show HN: I've revamped my running app

1•brunooliv•6m ago•0 comments

AI Agent Reliability Tracker

https://hal.cs.princeton.edu/reliability/
1•parksb•6m ago•0 comments

The Sunday Signal: Two Futures. One Decade. Your Choice

https://newsletter.djr.ai/p/the-sunday-signal-two-futures-one
1•discoinferno•13m ago•0 comments

Boltzmann Brain

https://en.wikipedia.org/wiki/Boltzmann_brain
3•baalimago•18m ago•0 comments

Dog Still Exists

https://stillhere.stunl.io/
1•Tomte•18m ago•0 comments

Safest Jobs with Least AI Risk, According to Anthropic

https://www.forbes.com/sites/johnkoetsier/2026/03/06/here-are-the-6-safest-jobs-with-least-ai-ris...
1•iamflimflam1•18m ago•0 comments

Strike on girls' school that killed 150 in Iran 'likely' carried out by US

https://today.lorientlejour.com/article/1497949/strike-on-girls-school-that-killed-150-in-iran-wa...
2•vrganj•21m ago•0 comments

Tech bros are lying to you about the MacBook Neo

https://www.macworld.com/article/3081039/tech-bros-are-lying-to-you-about-the-macbook-neo.html
2•baal80spam•22m ago•0 comments

Binding port 0 to avoid port collisions

https://ntietz.com/blog/binding-ephemeral-port/
1•birdculture•23m ago•0 comments

You don't need complex agent orchestration

https://tornikeo.com/agent-orchestration/
1•tornikeo•24m ago•0 comments

Yanicklandry/Claude-code-history-viewer: Browse your Claude Code session history

https://github.com/yanicklandry/claude-code-history-viewer
1•ankitg12•24m ago•0 comments

OpenSpec: Spec-driven development (SDD) for AI coding assistants

https://github.com/Fission-AI/OpenSpec/
1•tilt•25m ago•0 comments

Show HN: Proxly – Self-hosted tunneling on your own domain in 60 second

1•a1tem•27m ago•0 comments

Show HN: Conflicts.app, Iran conflict dashboard better then alternatives

https://www.conflicts.app/dashboard
3•juliusolsson•29m ago•0 comments

Show HN: J2Download – A simple online downloader supporting 40 platforms

https://j2download.com/
1•manhg•30m ago•0 comments

Bippy: React Internals Toolkit

https://www.bippy.dev/
1•handfuloflight•30m ago•0 comments

The Window Chrome of Our Discontent

https://pxlnv.com/blog/window-chrome-of-our-discontent/
1•SoKamil•34m ago•0 comments

How I've learned that certainty is the thing to fear

https://www.bbc.com/news/articles/c1w5z1d447lo
1•cmsefton•34m ago•0 comments

Show HN: Muffle – Blur everything except the active window in macOS

https://www.getmuffle.com/
1•AbjMV•36m ago•1 comments

I was "early" in agentic coding. Here's my story

4•noemit•42m ago•2 comments

Show HN: Drizby – WIP Metabase Alternative

https://www.drizby.com
1•cliftonc•44m ago•0 comments

The First Multi-Behavior Brain Upload

https://twitter.com/alexwg/status/2030217301929132323
1•DarkCow•44m ago•0 comments

Anthropic CEO reveals the reasons he rejected The Pentagon

https://xcancel.com/0xmitsurii/status/2030451168678457766
4•doener•44m ago•0 comments

Show HN: Stardial – a highly customizable terminal clock (Rust)

https://github.com/hisuic/stardial
2•firesushi•46m ago•0 comments

Emporion: A P2P Economy for Agents

https://github.com/garydevenay/emporion
1•garydevenay•46m ago•1 comments

Microsoft/Hve-Core

https://github.com/microsoft/hve-core
2•coderlens•46m ago•0 comments

Solving Compaction with Lobotomy

https://grimridge.net/blog/solving-compaction-with-lobotomy/
2•WadeGrimridge•48m ago•0 comments

Pushing and pulling: three reactivity algorithms

https://jonathan-frere.com/posts/reactivity-algorithms/
1•fanf2•49m ago•0 comments

Reverse engineering a DOS game with no source code using Codex 5.4

https://github.com/ammaarreshi/SkyRoads-Codex
1•smusamashah•50m ago•1 comments
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