frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

How Did America Get Its Name? (2016)

https://blogs.loc.gov/loc/2016/07/how-did-america-get-its-name/
1•thunderbong•4m ago•0 comments

Show HN: Random OS I made using C

https://github.com/NoTheIdiot/WindogeOS
1•notheidiot•11m ago•0 comments

Show HN: I built a Python obfuscator that keeps production traces debuggable

https://github.com/zhurong2020/pyobfus
1•znhskzj•13m ago•0 comments

Upgraded melly, our agent on sleek

1•silisleek•13m ago•0 comments

Google is actively hiring someone to save the world from AGI/ASI

https://www.google.com/about/careers/applications/jobs/results/95635593379095238
2•arm32•17m ago•0 comments

The Math Superstar Who's Terrified of AI–and Just Took a Job at OpenAI

https://www.wsj.com/tech/ai/openai-jacob-tsimerman-fields-medal-ai-safety-391d0f79
1•berkeleyjunk•18m ago•0 comments

Protecting the Nation's Communications Systems from Cybersecurity Threats

https://www.federalregister.gov/documents/2026/07/31/2026-15601/modernization-of-the-nations-aler...
1•Jimmc414•19m ago•0 comments

De mora luminis: Roemer's discovery 350 years later

https://arxiv.org/abs/2607.28512
1•Jimmc414•19m ago•0 comments

What's in a Name: A Guide to the Many Flavours of TeX

https://www.overleaf.com/learn/latex/Articles/What%27s_in_a_Name%3A_A_Guide_to_the_Many_Flavours_...
1•smitty1e•20m ago•0 comments

Accepting a Messy Git History

https://beza1e1.tuxen.de/git_two_users.html
1•matheusmoreira•20m ago•0 comments

SF-schema-snapshot – dump a Salesforce org's schema to SQLite

https://github.com/MogwaiNerfHerder/sf-schema-snapshot
1•DavidRussellCG•21m ago•0 comments

Show HN: Sanitizer – Strip sensitive data from documents locally before an LLM

https://provexar.ai/sanitizer
1•MVKozyrev•31m ago•0 comments

What's Happening with IT Hiring?

1•hannibalevit•31m ago•0 comments

Cdbx – an AI coding IDE where you can bring your own API key and own the code

https://cdbx.ai/
1•chbutler•36m ago•0 comments

Show HN: WhisperKeys - Offline macOS dictation, key-by-key

https://github.com/j-sofia/WhisperKeys
1•j-sofia•37m ago•1 comments

A Week in Matrix

https://piegames.de/dumps/a-week-in-matrix/
1•Kesseki•38m ago•0 comments

Tell HN: System76 has critical firmware issues unresolved for over 3 years

2•jaime-ez•42m ago•0 comments

Urldn – A URL shortener with analytics and an AI data analyst

https://waitlist.urldn.com/
2•assmira•42m ago•0 comments

Overactive Neurons Cause Excessive Sweating

https://www.the-scientist.com/overactive-neurons-cause-excessive-sweating-74787
2•gmays•42m ago•0 comments

Yann LeCun on What Comes After LLMs [video]

https://www.youtube.com/watch?v=ngBraLDqzdI
2•caminante•50m ago•0 comments

Speculative Decoding, Visualized

https://www.adaptive-ml.com/post/speculative-decoding-visualized
1•krackers•58m ago•0 comments

Optimal Elevator Placement

https://jslandy.com/elevators/
1•efavdb•1h ago•0 comments

The "memory shortage" that no one saw coming

https://greyenlightenment.com/2026/07/28/the-memory-shortage-no-one-saw-coming/
1•paulpauper•1h ago•0 comments

OPM finalizes rules expanding its power over RIFs, employee appeals

https://www.govexec.com/workforce/2026/07/opm-finalizes-rules-expanding-its-power-over-rifs-emplo...
1•WaitWaitWha•1h ago•0 comments

Rare footage of humpback whale birth captured on drone video

https://www.cbsnews.com/news/humpback-whale-birth-drone-video/
2•WaitWaitWha•1h ago•0 comments

Send a file from this browser as a stream of QR codes

https://app.transfqr.com
1•mohyware•1h ago•0 comments

His Wedding Guests Were Arriving–Just as His $45B Fund Was Falling Apart

https://www.wsj.com/finance/leopold-aschenbrenner-situational-awareness-ai-fund-597633d3
2•oliver236•1h ago•0 comments

Salmon Hat

https://en.wikipedia.org/wiki/Salmon_hat
5•1659447091•1h ago•0 comments

AI Visibility Evidence Model: Five Factors, Graded by Evidence

https://www.richresults.ai/evidence.html
2•spetschinka•1h ago•0 comments

The year Claude users sued over limits is the year the limits mostly went up

https://okaneland.com/study/claude-code-limits/
2•ermantrout•1h ago•0 comments
Open in hackernews

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

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