frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Framework responds to complaints that BIOS update bricks Ryzen 7040 laptops

https://arstechnica.com/gadgets/2026/08/framework-responds-to-complaints-that-bios-update-bricked...
2•throwaway2037•8m ago•0 comments

Can Increasing the Hit Ratio Hurt Cache Throughput? (2024) [pdf]

https://www.cs.cmu.edu/~harchol/ValueTools24.pdf
1•robmoore121•9m ago•1 comments

Claude Academy

https://academy.claude.com/
1•luispa•9m ago•0 comments

AI companies destroy physical books – let's scan rare books before it's too late

https://annas-archive.gl/blog/physical-destruction.html
1•Cider9986•10m ago•0 comments

From Markup to Markdown: The Evolution of Technical Writing, Typesetting Tools

https://link.springer.com/book/10.1007/979-8-8688-2931-4
1•sohkamyung•14m ago•0 comments

NYC sanitation workers fed up with being pricked by weight-loss drug needles

https://gothamist.com/news/nyc-sanitation-workers-fed-up-with-being-pricked-by-weight-loss-drug-n...
1•paulpauper•15m ago•0 comments

Big Food's Biggest Challenge: People Who Don't Want to Eat Anymore

https://www.wsj.com/business/packaged-food-weight-loss-drugs-0d0cf851
1•paulpauper•15m ago•0 comments

Excalidraw but ATProto

https://lexidraw.app
1•jcbhmr•16m ago•0 comments

The Trump administration Turns a Blind Eye to White-Collar Crime

https://www.bloomberg.com/news/features/2026-03-23/trump-administration-fails-to-punish-white-col...
1•paulpauper•17m ago•0 comments

ATProto Documents-of-Record

https://requested.fyi/
1•jcbhmr•18m ago•0 comments

Beatport Bans AI-Produced Tracks from Platform

https://thequietus.com/news/beatport-bans-ai-produced-tracks-from-platform/
1•cdrnsf•19m ago•0 comments

From balloons to pans: in praise of useful tech

https://www.ft.com/content/49c3c96c-cda1-466a-a0a6-8275e889ecc4
1•petethomas•20m ago•0 comments

Show HN: Fsel –. a Rust TUI launcher, fuzzy picker and clipboard browser

https://github.com/Mjoyufull/fsel
1•Rikona_Kurasaki•20m ago•0 comments

Academic who accused Jason Arday of plagiarism suspended by university

https://www.bbc.com/news/articles/cevmrjd9lj1o
5•donsupreme•28m ago•1 comments

Show HN: XListman – one-binary, self-hosted mailing list manager

https://github.com/barats/xlistman
1•baratsemet•29m ago•0 comments

Show HN: Steppewm stacking Wayland window manager

https://keygen.sbs/steppewm/
1•uncognic•36m ago•0 comments

Trying to launch a Spotify app? In this economy?

https://bf.lol/blog/careless-spotify
1•jamiewright•40m ago•0 comments

Show HN: ImageSage – Photo manager using Local AI on Windows

https://apps.microsoft.com/detail/9mt89hd9s6sm?hl=en-US&gl=US
1•ringlochid•42m ago•1 comments

NSF set to issue lowest number of new grants in four decades

https://www.nature.com/articles/d41586-026-02574-6
1•pratchett•42m ago•1 comments

Become the Top Newsletter

https://www.topnewsletters.lol/
1•mattmerrick•44m ago•0 comments

Bun 1.4: Zig vs. Rust Compile Times

https://twitter.com/jarredsumner/status/2090619419059974620
2•mustache_kimono•44m ago•0 comments

Orbital Construction Pioneers

https://orbitalconstructionpioneers.com/
2•pmcjones•44m ago•0 comments

Embedded Swift improvements coming in Swift 6.4

https://www.swift.org/blog/embedded-swift-improvements-coming-in-swift-6.4/
1•timsneath•48m ago•0 comments

Bringing Primary Constructors to Dart

https://dart.dev/blog/bringing-primary-constructors-to-dart
1•danbolt•50m ago•0 comments

Bug test: I think I cannot delete this post in the allowed window

https://www.youtube.com/watch?v=qCljI3cIObU
1•consumer451•53m ago•2 comments

Show HN: GatiNow – branded booking pages with built-in payments

https://www.gatinow.com/features
1•chowkodali•54m ago•0 comments

SpacetimeDB and BitCraft (2023)

https://bitcraftonline.com/news/spacetimedb-and-bitcraft
1•peter_d_sherman•55m ago•0 comments

Trump's brazen crypto bank scheme may be his sleaziest yet

https://www.msn.com/en-us/money/general/trump-s-brazen-crypto-bank-scheme-may-be-his-sleaziest-ye...
2•petethomas•57m ago•0 comments

59 Days left "Nobody is Clean"

1•gladiator291288•57m ago•0 comments

Claude driving an autonomous RC car [video]

https://www.youtube.com/watch?v=jBpQiv-ZlVM
1•nreece•59m 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