frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Against Moloch #52 So what's the plan, exactly?

https://againstmoloch.substack.com/p/against-moloch-52
1•paulpauper•29s ago•0 comments

SpaceX lenders don't want Elon Musk launching their collateral into space

https://arstechnica.com/space/2026/11/spacex-lenders-dont-want-elon-musk-launching-their-collater...
1•FabHK•3m ago•1 comments

Muse Spark 1.3

https://dev.meta.ai/models/muse-spark
2•ankitg12•5m ago•0 comments

Compact disc gets the TE treatment

https://www.wallpaper.com/tech/compact-disc-gets-the-te-treatment-meet-the-teenage-engineering-ep...
2•colinprince•6m ago•1 comments

Riemann Hypothesis solved? Rethink math. Education. And the meaning of life

https://poshenloh.com/posts/20261120-riemann
1•doppp•7m ago•0 comments

Legit use cases for uncensored AI models

https://uplinkswitch.ai
1•claytonhollinda•10m ago•0 comments

Show HN: Askingprice.io – guess the price of 7 marketplace listings each day

https://askingprice.io
1•bigboingy•20m ago•1 comments

Do Not Accept [video]

https://www.youtube.com/watch?v=6vxSjxOL8GQ
2•xqcgrek2•24m ago•0 comments

Show HN: Tab – a browser engine from scratch in Rust, with a demo to install

https://gettab.dev/
2•jakelami•30m ago•0 comments

Pond: A Fresh Arch-Based Linux with Niri

https://twitter.com/bflycomputer/status/2115147446385049758
2•belleville•31m ago•1 comments

BlackBlaze now explicitly states selling your data for advertisement

https://www.backblaze.com/company/policy/privacy
2•meysamazad•31m ago•0 comments

When an LLM Refuses to Answer

https://towardsdev.com/when-an-ai-refuses-to-answer-315d3277075c?sk=bae249916084db4096b5a2ba6dda13f4
1•cheikhdev•33m ago•0 comments

Show HN: MuGlobe – Explore the world's music by place on a globe

https://muglobe.com/
2•MuGlobe•35m ago•0 comments

Jj-musubi: live sync for Jujutsu

https://www.serpentine.com/posts/2026/announcing-jj-musubi/
1•blobcode•36m ago•0 comments

Ask HN: What is the best travel aggregator for cheapest flight tickets in 2026?

2•vismit2000•37m ago•0 comments

Show HN: I made my visual resume after 10 years

https://www.n10l.com/
2•n10l•38m ago•0 comments

Training Reasoning Models in Simulation to Natively Use Real Robots

https://mit-han-lab.github.io/pear-blog/
1•gmays•42m ago•0 comments

How do we get 1 TW a year of orbital compute by 2035?

2•chaisan•43m ago•0 comments

Delta-debugging trading strategies with ddmin and a paired block bootstrap

https://rearview.page/writing/delta-debugging-trading-strategies/
1•andzrev•44m ago•0 comments

The Kafkaian Agent Swarm That Locked Out My Cofounder

https://simeoncampos.substack.com/p/on-the-kafkaian-agent-swarm-that
2•yurivish•1h ago•0 comments

The 'Sullan Republic'

https://acoup.blog/2026/11/20/collections-on-the-sullan-republic/
2•JumpCrisscross•1h ago•0 comments

The Dangers of AI 'Handoverism'

https://www.ft.com/content/45194ea4-4fa7-4c38-a5b2-137eb7402d57
1•petethomas•1h ago•0 comments

Starlark Language for Embedding

https://starlark-lang.org/
2•jcbhmr•1h ago•0 comments

The Most Important Charts in AI Are Wrong

https://www.rameznaam.com/p/the-most-important-charts-in-ai-are
2•D-Machine•1h ago•1 comments

Gdelt TV News Visual Explorer

https://visualexplorer.gdeltproject.org/tvv
1•macinjosh•1h ago•0 comments

Images of Canada's most wanted are AI-generated

https://www.cbc.ca/news/canada/bolo-program-canada-fugitives-police-ai-9.7428331
1•geox•1h ago•0 comments

NATS Server 2.15: How we rebuilt scaling and moving streams safely

https://www.synadia.com/blog/how-we-move-streams-safely-nats-2-15-desired-state-reconciliation
1•taconn227•1h ago•0 comments

Materials chemist and nanoscientist George Whitesides dies at 87

https://cen.acs.org/people/obituaries/george-whitesides-materials-chemist-nanoscientist/104/web/2...
1•osnium123•1h ago•1 comments

Melania: The Series – a follow-up to the megaflop movie

https://www.ft.com/content/64d533cd-05b8-4d15-9fd2-ca4502d0f87e
1•petethomas•1h ago•1 comments

Clojure will affect the way you think about programming (2017)

https://eli.thegreenplace.net/2017/clojure-the-perfect-language-to-expand-your-brain/
6•sammatilda•1h 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