frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Slow and Steady

https://angryweasel.substack.com/p/slow-and-steady
1•mooreds•1m ago•0 comments

The Magic Prioritization Trick (2023)

https://cutlefish.substack.com/p/tbm-245-the-magic-prioritization
1•mooreds•1m ago•0 comments

Ask HN: How can I get better at using AI for programming?

3•lemonlime227•3m ago•0 comments

How to balance full-time work with creative projects (2021)

https://thecreativeindependent.com/guides/how-to-balance-full-time-work-with-creative-projects/
2•napolux•4m ago•0 comments

IsEven(int32_t) in O(1)

https://ceayo.neocities.org/0003%20IsEven32%20O1/
1•ceayo•5m ago•1 comments

Show HN: Free usage-based pricing infra for F25 batch until $500K revenue

https://admin.flexprice.io/
1•sudeepsd__•6m ago•0 comments

Free Online Vision Screening – Eyetestonline.org

https://eyetestonline.org/
2•seven_qwq•7m ago•1 comments

PostgreSQL AI Query Extension

https://benodiwal.github.io/pg_ai_query/
1•sbuttgereit•10m ago•0 comments

Ask HN: What sensors do you have around the house?

1•gessha•14m ago•0 comments

Clean energy found in old coal mines

https://techxplore.com/news/2025-11-energy-coal.html
1•PaulHoule•14m ago•0 comments

Show HN: Built an AI Song Creator with stem separation and commercial rights

https://aisongcreator.app
1•alexwang123•14m ago•1 comments

A Giant Ball Will Help This Man Survive a Year on an Iceberg

https://www.outsideonline.com/outdoor-adventure/exploration-survival/how-giant-ball-will-help-man...
2•areoform•15m ago•0 comments

Tell HN: The Python Software Foundation is now showing banner ads

3•inesranzo•15m ago•0 comments

MFA for students with limited technology?

https://old.reddit.com/r/msp/comments/1je8vez/mfa_for_students_with_limited_technology/
1•sipofwater•16m ago•2 comments

Spare Thoughts on App Design

https://www.kitlangton.com/posts/spare-thoughts-on-app-design
1•4dm1r4lg3n3r4l•16m ago•0 comments

Show HN: I audited 500 K8s pods. Java wastes ~48% RAM, Go ~18%

https://github.com/WozzHQ/wozz
1•wozzio•17m ago•1 comments

AI as a WordPress Fundamental

https://make.wordpress.org/core/2025/12/04/ai-as-a-wordpress-fundamental/
1•pavel_lishin•18m ago•1 comments

What Happens When You Crash a Bicycle at 175mph [video]

https://www.youtube.com/watch?v=x6qzMagQSjM
1•celias•25m ago•1 comments

Research Veteran Yardeni Ends 15-Year Tech Bet with Underweight Mag 7 Call

https://www.bloomberg.com/news/articles/2025-12-08/yardeni-says-underweight-mag-7-in-shift-from-t...
1•xqcgrek2•25m ago•0 comments

Show HN: High-Performance Order Matching Engine in C++20 (2.2M ops/SEC)

https://github.com/PIYUSH-KUMAR1809/order-matching-engine
1•kpiyush8826•26m ago•0 comments

Operation Bluebird wants to relaunch "Twitter," says Musk abandoned the brand

https://arstechnica.com/information-technology/2025/12/can-twitter-fly-again-startup-wants-to-pry...
2•jaredwiener•27m ago•1 comments

The Wild West of post-POSIX IO Interfaces [video]

https://www.youtube.com/watch?v=abDWZ9D8kEE
1•matt_d•27m ago•0 comments

Six New Tips for Better Coding with Agents

https://steve-yegge.medium.com/six-new-tips-for-better-coding-with-agents-d4e9c86e42a9
1•gmays•32m ago•0 comments

Z8086: Rebuilding the 8086 from Original Microcode

https://nand2mario.github.io/posts/2025/z8086/
2•nand2mario•36m ago•0 comments

Listen to Mixtapes from Before

https://intertapes.net/
2•poniko•40m ago•0 comments

My First Impressions of MeshCore Off-Grid Messaging

https://mtlynch.io/first-impressions-of-meshcore/
1•mtlynch•41m ago•0 comments

I built a tool to restore old family photos without ruining them with AI

https://forevi.ai
1•poznerd•42m ago•1 comments

Designing Electronics That Works

https://nostarch.com/designingelectronics
2•0x54MUR41•42m ago•0 comments

Most LLM cost isn't compute – it's identity drift (110-cycle GPT-4o benchmark)

https://github.com/sigmastratum/documentation/blob/main/sigma-runtime/SR-EI-03/benchmark_report_S...
1•teugent•43m ago•1 comments

Show HN: PlanEat AI, an AI iOS app for weekly meal plans and smart grocery lists

1•franklinm1715•43m ago•0 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•6mo 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