frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

The Useless Web

https://theuselessweb.com/
1•nateb2022•3m ago•0 comments

What Is Plus Times Plus? (Lambda Calculus Pictorially) [video]

https://www.youtube.com/watch?v=RcVA8Nj6HEo
2•rramadass•5m ago•0 comments

The US's 2k-year-old mystery mounds

https://www.bbc.com/travel/article/20221204-the-us-2000-year-old-mystery-mounds
1•1659447091•6m ago•0 comments

The Monty Hall Problem, a side-by-side simulation

https://www.pcloadletter.dev/blog/monty/
3•ronbenton•14m ago•1 comments

The State of Agentic iOS Engineering in 2026

https://dimillian.medium.com/the-state-of-agentic-ios-engineering-in-2026-c5f0cbaa7b34
2•Anon84•16m ago•1 comments

On biological & artificial consciousness: A case for biological computationalism

https://www.sciencedirect.com/science/article/pii/S0149763425005251
2•bookofjoe•18m ago•0 comments

Show HN: Sentinel Shield – Pure C DMZ for AI Security (23K LOC, <1ms latency)

2•Chgdz•18m ago•0 comments

Ask HN: Favorite Articles in the ACM Digital Library

2•lioeters•21m ago•2 comments

Interpreter – Offline screen translator for Japanese retro games

https://github.com/bquenin/interpreter
3•bane•25m ago•0 comments

Making beautiful PDF documents from HTML and CSS

https://css4.pub/
2•jez•25m ago•0 comments

Ask HN: Which AI productivity tools are you using in 2026?

3•Vishal19111999•29m ago•0 comments

Ukraine enters EU's single mobile roaming zone

https://www.yahoo.com/news/articles/ukraine-enters-eus-single-mobile-164712435.html
4•gok•31m ago•0 comments

Steam On Linux Ends 2025 With 3.19% Marketshare

https://www.phoronix.com/news/Steam-December-2025-Survey
6•doener•32m ago•0 comments

Engineering Is Becoming Beekeeping

https://bits.logic.inc/p/engineering-is-becoming-beekeeping
4•highfrequency•33m ago•0 comments

Balsa M2-F3 Lifting Body

https://www.engineersneedart.com/blog/m2f32025/m2f32025.html
3•chmaynard•33m ago•0 comments

Outrage as X's Grok morphs photos of women, children into explicit content

https://www.cnbctv18.com/technology/global-outrage-as-xs-grok-morphs-photos-of-women-children-int...
11•anonymousab•33m ago•1 comments

China's BYD set to overtake Tesla as top EV seller

https://www.bbc.com/news/articles/cj9rjwpvmpzo
11•decimalenough•35m ago•1 comments

Show HN: VideoCalling.app – Free Video Calling Service

https://videocalling.app
2•Airyisland•36m ago•0 comments

Webmention is an open web standard (W3C Recommendation) for conversations

https://indieweb.org/Webmention
4•doener•38m ago•0 comments

Show HN: Turning 100-plus comments HN threads into readable discussions

4•freakynit•41m ago•1 comments

DENT: A network operating system (NOS) for everyone else

https://dent.dev/
3•teleforce•41m ago•0 comments

Ask HN: Best videos for learning Java concurrency?

2•michalgad•42m ago•1 comments

Delete Request and Opt-Out Platform (Drop)

https://consumer.drop.privacy.ca.gov/
3•doener•42m ago•1 comments

Simulating a negative tax city on Cities Skylines 2 [video]

https://www.youtube.com/watch?v=MK_0mQ7TLY0
2•MinimalAction•45m ago•0 comments

ReactOS Starts 2026 with a Major Step Toward Windows NT6 Compatibility

https://www.phoronix.com/news/ReactOS-Starts-2026
7•hackthemack•47m ago•0 comments

Ask HN: Building a tool to ensure things get done on time

3•Vishal19111999•47m ago•0 comments

I bootstrapped an AI OSINT search engine to 35k users. Trying $5 Day Pass Model

https://ai.cylect.io/
2•nuzzl•49m ago•1 comments

Cerelog ESP-EEG is a new 8-channel biosensing board at a hobbyist-friendly price

https://www.autodidacts.io/cerelog-esp-eeg-affordable-openbci-like-board/
3•Curiositry•57m ago•0 comments

Designing Predictable and Maintainable Forms in React

https://jsdev.space/react-form-primitives/
3•javatuts•59m ago•0 comments

Construction to begin on Florida expressway that will charge EVs while driving

https://www.nbcmiami.com/news/construction-to-begin-on-florida-expressway-that-will-charge-evs-wh...
5•geox•1h ago•3 comments
Open in hackernews

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

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