frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Earthquake in Santa Cruz Mountains

https://earthquake.usgs.gov/earthquakes/eventpage/nc75337442/executive
1•OhMeadhbh•1m ago•0 comments

Show HN: Mesh3d.gallery – a curated collection of 3D websites

https://mesh3d.gallery
1•shreedx•2m ago•0 comments

New laws to make it easier to cancel subscriptions and get refunds

https://www.bbc.co.uk/news/articles/cvg0v36ek2go
1•chrisjj•4m ago•0 comments

Google, Cloudflare, Cisco Lose Pirate Site DNS Blocking Appeal in France

https://torrentfreak.com/google-cloudflare-cisco-lose-pirate-site-dns-blocking-appeal-in-france/
1•HotGarbage•6m ago•0 comments

The First MCP Server for Cybersecurity Product and Market Analysis

https://cybersectools.com/mcp-access
1•nkokhreidze•8m ago•2 comments

PDNob 2.0 – An Affordable PDF Editor with Rebuilt, Faster, Easier Features [video]

https://www.youtube.com/watch?v=vwl67IbqW30
2•pdftips•9m ago•0 comments

Attention Residuals

https://arxiv.org/abs/2603.15031
1•jonbaer•10m ago•0 comments

Show HN: Memsearch – Persistent, cross-agent, cross-session memory for AI agents

https://github.com/zilliztech/memsearch
1•zhangchen•13m ago•0 comments

Ask HN: How are you choosing the model when using pi.dev?

1•harlequinetcie•14m ago•0 comments

IBM Announces Strategic Collaboration with Arm

https://newsroom.ibm.com/2026-04-02-ibm-announces-strategic-collaboration-with-arm-to-shape-the-f...
3•bonzini•15m ago•0 comments

'Weak and pathetic': why is the EU not using its leverage to stop Israel?

https://www.theguardian.com/world/2026/apr/02/why-eu-not-using-leverage-israel-lebanon-gaza
1•hebelehubele•17m ago•0 comments

Earthquake 4.9 in Bay Area Santa Cruz mtns

https://earthquake.usgs.gov/earthquakes/eventpage/ew1775119290/executive
4•redwood•20m ago•0 comments

Cinema Obscura: "Vento Del Sud" a.k.a. "South Wind"

http://itsamadmadblog2.blogspot.com/2026/04/cinema-obscura-vento-del-sud-aka-south.html
1•jjgreen•21m ago•0 comments

Apollo 15 postal covers incident

https://en.wikipedia.org/wiki/Apollo_15_postal_covers_incident
1•iNic•22m ago•0 comments

Guardian Angel Protocol (Gap) v10.0: Hardware-Enforced AI Confinement

https://github.com/Lex-Col/Guardian-Angel-Protocol
1•Alexand3rc•23m ago•1 comments

Signups Are Lying to You

https://mvrckhckr.com/articles/your-signups-are-lying-to-you
1•mvrckhckr•23m ago•0 comments

Extremis V1 Is Real

1•victorblain•23m ago•0 comments

The cover of "C++: The Programming Language" raises questions

https://devblogs.microsoft.com/oldnewthing/20260401-00/?p=112180
2•krylon•25m ago•2 comments

Sequoia's 1977 investment memo into Apple Computer

https://twitter.com/sequoia/status/2039434032132575544
1•matthieu_bl•25m ago•0 comments

Show HN: Elytra – A 420g CNC aluminum, wireless split keyboard

https://www.elimkeys.com/
3•cui511511•32m ago•2 comments

Show HN: SideX – VS Code rebuilt on Tauri instead of Electron (96% smaller)

https://github.com/Sidenai/sidex
4•KendallCBooker•32m ago•0 comments

AWS S3 Intros Account-Regional Namespaces, Ending 18 Years of Name Collisions

https://www.infoq.com/news/2026/03/s3-account-regional-namespaces/
2•rbanffy•37m ago•0 comments

Go: Do you need a repository layer on top of sqlc?

https://rednafi.com/shards/2026/03/repository-layer-over-sqlc/
2•TobiasBerg•42m ago•0 comments

Should AI have the right to say 'No' to its owner?

https://github.com/Jang-woo-AnnaSoft/execution-boundaries
4•Jang-woo•42m ago•11 comments

Show HN: Tmux-agent-status – a tmux sidebar for monitoring AI coding agents

https://github.com/samleeney/tmux-agent-status
1•samleeney•43m ago•0 comments

Why full-stack post-quantum cryptography cannot wait

https://blogs.cisco.com/networking/why-full-stack-post-quantum-cryptography-cannot-wait
1•anonhaven•45m ago•0 comments

Bringing Clojure programming to Enterprise (2021)

https://blogit.michelin.io/clojure-programming/
16•smartmic•45m ago•1 comments

Garbage Collection: From First Principles to Modern GC in Java, Go and Python

https://shbhmrzd.github.io/systems/garbage-collection/memory-management/2026/04/01/garbage-collec...
2•signa11•47m ago•0 comments

Claude Code /buddy – what is it?

1•aledevv•48m ago•0 comments

What Exoskeleton Technology Learned from One User

https://spectrum.ieee.org/exoskeleton-user-experience
2•rbanffy•48m ago•0 comments
Open in hackernews

Ask HN: Any good tools to pgdump multi tenant database?

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