frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Ask HN: What hardware hobby would you recommend to a software engineer?

1•merek•34s ago•0 comments

You can now chat using RSS

https://coywolf.com/news/social-media/you-can-now-chat-using-rss-well-sort-of/
2•twapi•3m ago•0 comments

Ask HN: How has the software industry changed for you personally?

3•brindidrip•6m ago•0 comments

Detecting Malicious Code at Scale

https://www.datadoghq.com/blog/engineering/scaling-malicious-code-detection/
2•crashpn•7m ago•0 comments

Fundamentals of Wireless Communication

https://web.stanford.edu/~dntse/wireless_book.html
2•teleforce•11m ago•0 comments

Sony Nerfs Videogame Ownership

https://www.eff.org/deeplinks/2026/07/sony-nerfs-videogame-ownership
2•Jimmc414•13m ago•2 comments

Show HN: GLM-5.2 is now available via Canopy Wave

https://twitter.com/CanopyWave_AI/status/2076667973616779441
2•Rossmax•13m ago•0 comments

Rubio announces campaign to 'dismantle' International Criminal Court

https://www.upi.com/Top_News/US/2026/07/13/rubio-campaign-dismantle-international-criminal-court/...
2•Bondi_Blue•14m ago•0 comments

Show HN: Zenveil-Security scanning for AI-generated code

https://zenveil.dev
2•Rachel28•15m ago•0 comments

Georgia family says they're forced to sell home to power AI data centers

https://www.cbsnews.com/news/georgia-power-ai-data-centers-eminent-domain/
3•rhaynes•15m ago•0 comments

Satellite Tracker – Live Map of Starlink and 30k Satellites

https://satellitemap.space/
2•rolph•26m ago•0 comments

Ask HN: Why does Chrome use 100+ mb of memory per tab?

2•Uptrenda•27m ago•0 comments

Ask HN: What is the one YouTube channel you recommend I subscribe to?

2•chirau•28m ago•1 comments

#793 – GPT 5.6 Sol solves it's third Erdos Problem – Two primitives gone

https://twitter.com/i/status/2076778478326653431
4•guywithabowtie•31m ago•1 comments

SCOTUS slip opinion: Cisco granted immunity in building China's "Golden Shield"

https://www.courtlistener.com/opinion/10878537/cisco-systems-inc-v-doe/
3•Jimmc414•33m ago•1 comments

Zig Creator Calls Spade a Spade, Anthropic Blows Smoke

https://raymyers.org/post/zig-creator-calls-spade-a-spade/
2•plinkplonk•35m ago•1 comments

China's Robotics Dream Began in 1972

https://www.chinatalk.media/p/chinas-father-of-robotics
2•gwintrob•35m ago•0 comments

Poorly Aged 80s Commercials [video]

https://www.youtube.com/watch?v=3rxiEaJbxnI
2•Bender•36m ago•0 comments

What will be left for us to work on?

https://www.normaltech.ai/p/what-will-be-left-for-us-to-work
2•randomwalker•37m ago•0 comments

Show HN: Melodusk – AI Music Generator and music tools in the browser

https://melodusk.ai
2•akseli_ukkonen•39m ago•0 comments

Lessons of Darkness

https://en.wikipedia.org/wiki/Lessons_of_Darkness
2•throwoutway•39m ago•0 comments

Building Food Metadata with LLM Juries

https://careersatdoordash.com/blog/building-food-metadata-with-llm-juries-context-optimization-mu...
4•tie-in•40m ago•0 comments

Boom? If AI Sales in the US Go South, Let's Not Bail Out Big Money Bettors

https://www.nationalmemo.com/ai-bubble-2677214150
5•baranul•40m ago•0 comments

Be a Star or a Janitor

https://99d.substack.com/p/be-a-star-or-a-janitor
2•iacguy•43m ago•0 comments

Token overhead in coding agents: the task used 0.67% but overhead used the rest

https://praveenvijayan.substack.com/p/your-agent-spends-99-of-its-tokens
4•praveenvijayan•45m ago•0 comments

Is x86 ready to ACE it?

https://chipsandcheese.com/p/is-x86-ready-to-ace-it
2•mfiguiere•45m ago•0 comments

The Economics of Recursive Self-Improvement [pdf]

https://elasticity.institute/rsi-paper.pdf
3•apsec112•46m ago•0 comments

A better rsync based on fountain codes

https://twitter.com/doodlestein/status/2075711880426062074
2•MrBuddyCasino•48m ago•0 comments

Automated Moderation Is Here to Stay–Accountability Must Keep Pace

https://www.eff.org/deeplinks/2026/07/part-2-automated-moderation-here-stay-accountability-must-k...
2•Jimmc414•49m ago•0 comments

Lobste.rs is now running on SQLite

https://lobste.rs/s/ko1ji1/lobste_rs_is_now_running_on_sqlite
4•y1n0•54m ago•1 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