frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

From a Harvard dropout to Oceanco visionary: 10 facts about Gabe Newell

https://www.boatinternational.com/features-reviews/who-is-gabe-newell-famous-for-valve-steam-oceanco
1•evo_9•1m ago•0 comments

What do you say when the AI asks "Let me know if you'd like me to proceed."

1•acquire9395•4m ago•0 comments

Was this Virginia office building built with missiles in mind?

https://www.washingtonpost.com/dc-md-va/2022/09/03/skyline-buildings-baileys-crossroads/
1•gnabgib•6m ago•1 comments

They Don't Look Like Me

https://niccolorastrelli.com/they-dont-look-like-me
2•cainxinth•7m ago•0 comments

OpenAI-Oracle data center construction proceeds despite Michigan town vote

https://fortune.com/2026/05/06/ai-data-center-michigan-saline-politics-farmland/
1•xyst•9m ago•0 comments

Hunk: Review-first terminal diff viewer for agentic coders

https://github.com/modem-dev/hunk
1•pella•12m ago•0 comments

Hourglass nanographenes unlock strong, robust multi-spin entanglement

https://phys.org/news/2026-05-hourglass-nanographenes-strong-robust-multi.html
1•WaitWaitWha•14m ago•0 comments

Gmail app bug locks some Microsoft 365 and Exchange Online users out on Android

https://piunikaweb.com/2026/05/06/gmail-app-android-microsoft-365-exchange-online-authentication-...
1•sega_sai•17m ago•0 comments

Taiwan cops say student's radio kit brought bullet trains to a standstill

https://www.theregister.com/cyber-crime/2026/05/06/taiwan-student-pwns-rail-comms-halts-high-spee...
3•rmason•19m ago•0 comments

Iran hit more U.S. military targets than has been reported, satellite images

https://www.washingtonpost.com/investigations/2026/05/06/iran-us-bases-satellite-images/
3•SanjayMehta•19m ago•0 comments

QR Code Generator

https://www.thonky.com/qrcode/
1•gurjeet•22m ago•0 comments

The Old Guard: Confronting America's Gerontocratic Crisis

https://harpers.org/archive/2026/05/the-old-guard-samuel-moyn-gerontocracy/
6•Caiero•24m ago•1 comments

Elon Musk's Last-Ditch Effort to Control OpenAI

https://www.wired.com/story/elon-musk-recruit-sam-altman-tesla-ai-lab-trial/
3•nico•25m ago•0 comments

How programmers are feeling about AI

https://thesoftwaresurvey.com/
2•yakkomajuri•27m ago•0 comments

We Need a Neural Network (2006)

https://thedailywtf.com/articles/No%2c_We_Need_a_Neural_Network
2•mjtk•30m ago•0 comments

Aphasia

https://en.wikipedia.org/wiki/Aphasia
2•soupspaces•30m ago•0 comments

We Built the Permanent Record

https://www.nationalreview.com/2026/05/we-built-the-permanent-record/
2•petethomas•32m ago•0 comments

Show HN: Sqlalchemy-Redshift Is Back: Reviving a Critical Python Data Library

https://github.com/sqlalchemy-redshift/sqlalchemy-redshift
2•TeddyCrep•35m ago•0 comments

Mass Deportation and American Jobs

https://www.wsj.com/opinion/mass-deportation-american-jobs-nber-university-of-colorado-boulder-st...
4•petethomas•42m ago•0 comments

Go is FIPS 140-3 certified

https://csrc.nist.gov/projects/cryptographic-module-validation-program/certificate/5247
3•birdculture•42m ago•0 comments

Agents of Chaos

https://agentsofchaos.baulab.info/
2•giwook•43m ago•0 comments

ADT says customer data stolen in cyber intrusion

https://therecord.media/ADT-data-breach-cyberattack
5•PaulHoule•45m ago•2 comments

The Loudest Known Sound Ever (2024)

https://www.audiology.org/the-loudest-known-sound-ever/
2•thunderbong•47m ago•0 comments

Naval Character Living Inside iMessage

https://naval.chat
4•oqy•49m ago•2 comments

Correction Has to Occur – NYU Finance Professor Warn

https://finance.yahoo.com/news/correction-occur-nyu-finance-professor-160057855.html
5•laxmena•50m ago•0 comments

Have you sent a smile today?

https://mylightstillshines.wordpress.com/2026/05/06/have-you-smiled-at-somebody-today/
2•jaygirl•51m ago•0 comments

QUIC will soon be as important as TCP – but it's vastly different

https://www.theregister.com/on-prem/2026/04/16/quic-will-soon-be-as-important-as-tcp/5227423
4•Bender•53m ago•1 comments

Kash Patel's Personalized Bourbon Stash

https://www.theatlantic.com/politics/2026/05/kash-patel-fbi-bourbon/687066/
31•petethomas•54m ago•11 comments

Iran cybersnoops still LARPing as ransomware crooks in espionage ops

https://www.theregister.com/security/2026/05/06/iran-cyberspies-larping-as-ransomware-crims-in-es...
4•Bender•55m ago•0 comments

I just sent out my first Quote as a business owner

4•Jbird2k•56m ago•1 comments
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