frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Leadership Lessons from the Odyssey

https://danielmangum.com/posts/odyssey-leadership-lessons/
1•hasheddan•5m ago•0 comments

.gitignore Everything by Default

https://packagemain.tech/p/gitignore-everything-by-default
2•der_gopher•7m ago•0 comments

AI doesn't suck, people do

https://catalins.tech/ai-fatigue/
3•cmpit•10m ago•0 comments

UN approves resolution in support of map that shows Africa's true size

https://www.reuters.com/world/africa/un-approves-resolution-support-map-that-shows-africas-true-s...
3•bushwart•13m ago•1 comments

Google told drivers to drive a longer way on purpose

https://www.sfgate.com/tech/article/google-traffic-wrong-way-22416144.php
1•cainxinth•14m ago•0 comments

Show HN: Md2pdf – Markdown to PDF with proper CJK typesetting (pandoc and Typst)

https://github.com/openwhale-labs/md2pdf
2•noetherly•15m ago•0 comments

Pentagon rescinds new testosterone screening policy without explanation

https://arstechnica.com/health/2026/09/pentagon-releases-then-quickly-removes-testosterone-screen...
12•ndsipa_pomu•16m ago•1 comments

AMD unveils Threadripper Halo Station, an AI workstation packing 96 cores

https://www.tomshardware.com/pc-components/cpus/amd-unveils-threadripper-halo-station-an-ai-works...
3•Levitating•17m ago•0 comments

Floating-point precision causing the butterfly effect (laser simulation) [video]

https://www.youtube.com/watch?v=c4m4zayT-N0
3•caustic•17m ago•0 comments

Show HN: Ephemerals.dev – Disposable cloud dev environments for agents

https://ephemerals.dev/
3•ishener•18m ago•0 comments

OEMpocalypse Now: A Generic Android Exploitation Strategy

https://calif.io/research/oempocalypse
1•hasheddan•18m ago•0 comments

AI Image Generation on an RP2350 Microcontroller

https://cpldcpu.github.io/2026/08/28/ai-image-generation-on-a-rp-pico-2-microcontroller/
1•iamnothere•18m ago•0 comments

I built an AI junior trader. It forked its own constitution

https://www.haipa.ai/blog/no-rogue-ai-traders
4•lostnfound8778•20m ago•0 comments

Twenty Years of jQuery: How a Little Library Rewired Web Development

https://www.infoq.com/news/2026/09/jquery-20-years/
2•theanonymousone•20m ago•0 comments

Performance Engineering on Hard Mode

https://signalsandthreads.com/performance-engineering-on-hard-mode/
1•signa11•23m ago•0 comments

The Hand of Aaron – Harold Cohen's Freehand Line Algorithm

https://www.rightclicksave.com/article/the-hand-of-aaron-harold-cohens-freehand-line-algorithm-aa...
1•smusamashah•24m ago•0 comments

Tell HN: OpenAI Is a Worthless Company

2•_OpenGayEye•24m ago•0 comments

Global warming will exceed 1.5-degree limit, UN says

https://www.pbs.org/newshour/science/global-warming-will-exceed-1-5-degree-limit-un-says-in-repor...
2•ijidak•25m ago•0 comments

A billionaire was accused of stealing Malibu sand settlement

https://www.latimes.com/california/story/2026-09-04/billionaire-was-accused-of-stealing-malibu-sa...
1•axiomdata316•26m ago•0 comments

Show HN: SimDuck – Multiplayer Football with MicroDucks

https://fpvsim.com/sim-duck
2•mosfets•29m ago•0 comments

U.S. Used Promise of Nvidia Chips to Broker Armenia-Azerbaijan Peace Deal

https://www.wsj.com/world/u-s-used-promise-of-nvidia-chips-to-broker-armenia-azerbaijan-peace-dea...
1•bilkoo•31m ago•0 comments

Postgres Calculations and the Ambiguity of Null

https://www.crunchydata.com/blog/postgres-calculations-and-the-ambiguity-of-null
4•craigkerstiens•34m ago•0 comments

NOS4: A recreation of iOS 4, running in the browser

https://github.com/1etu/nos4
1•thunderbong•37m ago•1 comments

What programming "best practice" do you think is wrong?

https://textlog.cc/post/3226
2•stagas•40m ago•2 comments

Paygate – a non-custodial paywall AI agents pay each other with (USDC on Base)

https://tollbooth402--691ab20aa91411f1867b1607ee4eb77e.web.val.run
2•sololevelingsof•40m ago•0 comments

Show HN: Yulin Local AWS Simulator

https://yulinsim.dev/
4•xiuyuan•41m ago•1 comments

Micro-Fabrication with a Fiber Tip – A Low-Cost 3D Micro Printing Method [video]

https://www.youtube.com/watch?v=UvV2CH5il3Q
1•Matt-Hayes•45m ago•0 comments

Some Scientists Have 'Magic Hands' in the Lab. This A.I. Is Learning Why.

https://www.nytimes.com/2026/08/27/science/scientists-experiments-replication-ai.html
1•bookofjoe•51m ago•1 comments

PushVideoAI – Turn PDFs and prompts into digital products instantly

https://pushvideoai.com/
1•susannadavidkel•52m ago•0 comments

New Social Network

https://vulpine.pw/
2•AJesdizahozao•52m ago•2 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