frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Nvidia – Earth 2

https://www.nvidia.com/en-us/high-performance-computing/earth-2/
1•tcumulus•1m ago•0 comments

Russia helping Iran develop supersonic cruise missiles

https://www.ft.com/content/6cf367bc-95b0-4f1f-b149-a25684adefc3
1•tcp_handshaker•5m ago•0 comments

Draft Punk – The Campaign for Alive 2027 – Alive2027.com

https://alive2027.com/
2•alexmolas•7m ago•0 comments

YouTube Moves to Ban Nerd Reich Podcast

https://www.thenerdreich.com/youtube-moves-to-ban-nerd-reich-podcast/
2•xyzzy3000•9m ago•1 comments

Show HN: Pairmark, race Claude Code vs. Codex on your repo, blind cross-judged

https://github.com/Hemanshu-Upadhyay/pairmark
1•hemanshu412•9m ago•0 comments

AI Isn't Making Everyone a Creator

https://story.vjy.me/83
2•latexr•18m ago•0 comments

ChatGPT desktop app bundles a full copy of the LibreOffice

https://twitter.com/simonw/status/2094864223683903800
2•pretext•20m ago•0 comments

Show HN: WhisprNote – Dictation and autocomplete for macOS, no cloud or account

https://whisprnote.com/
1•nkrrish•23m ago•0 comments

ECCV Art Gallery

https://eccv-art-26.github.io/
1•nirvael•25m ago•0 comments

Beyond Lambdas: Raising the Abstraction Level of Functional Code

https://adamtornhill.substack.com/p/beyond-lambdas-raising-the-abstraction
1•theanonymousone•26m ago•0 comments

Show HN: TravelMap, my trips on a MapLibre globe

https://clem.travelmap.net/
2•clementmas•27m ago•1 comments

Exoquad Off Road Wheelchair – Technical Rundown [video]

https://www.youtube.com/watch?v=U4c3Z2PmNOc
1•karussell•28m ago•0 comments

Show HN: Aster Disk – see what's filling your Mac and what's safe to delete

https://apps.apple.com/us/app/aster-disk/id6769705763?mt=12
1•nerique•35m ago•0 comments

How to Protect Yourself from Workslop

https://www.seangoedecke.com/how-to-protect-yourself-from-workslop/
2•vcfgdev•35m ago•0 comments

Wasmi 2.0: engineering of the fastest WASM interpreters

https://wasmi-labs.github.io/blog/posts/wasmi-v2.0/
1•fanf2•36m ago•0 comments

Show HN: Run or get eaten: a GPS zombie chase app [video]

https://www.youtube.com/watch?v=_2tuiNEGfBY
1•julienreszka•40m ago•0 comments

Commodore 64 released September 1, 1982

https://dfarq.homeip.net/commodore-64-released-september-1-1982/
7•giuliomagnifico•41m ago•0 comments

Google Pics

https://pics.new
2•ms7892•41m ago•0 comments

Show HN: CoolDeck – keyboard-first terminal UI for Coolify

https://github.com/Resetnak/cooldeck
1•resetneac•41m ago•0 comments

Is Minifying CSS Necessary? (2023)

https://shivjm.blog/is-minifying-css-necessary/
2•birdculture•42m ago•0 comments

Celebrating 500 Releases of Construct

https://www.construct.net/en/blogs/construct-official-blog-1/celebrating-releases-construct-1905
1•AshleysBrain•42m ago•0 comments

Acto – Delegate tasks via link (assignee needs no account)

https://actohub.com
1•aralewalles•44m ago•0 comments

Complicated vs. Complex – From IC Software Engineer to CTO

https://www.henryarmburgjennings.com/blog/complicated-vs-complex
1•jenningsh•48m ago•0 comments

Show HN: Image3d AI-One interface for multiple image to 3D models

https://www.aiimageto3d.com/
1•cairnechou•49m ago•0 comments

HOM-AIMOS – Auditable persistent memory for agent security

https://github.com/wallidsaydi-creator/HOM-AIMOS
1•walldad2•56m ago•0 comments

Show HN: Comparing eight LLMs on 38 Berlin election questions

https://bensk1.github.io/berlin-wahllm/en/
1•bensk1•56m ago•0 comments

Build a Reasoning Model Scratch 1: Motivation, Code Setup [Sebastian Raschka] [video]

https://www.youtube.com/watch?v=Kh9mqTzjuEQ
1•mdp2021•56m ago•0 comments

OpenAI gates cyber defense in 44 ChatGPT markets with a 1996 US export list

https://lubaretsi.com/en/writing/openai-tac-country-gate/
1•Bluestein•58m ago•0 comments

A Single Flaw Lets Untrusted Repos Run Code in Claude Code, Codex, Cursor, Grok

https://www.manifold.security/blog/ai-coding-agents-git-hijack
2•axsharma•1h ago•4 comments

"I have the code and Claude AI – why would I pay you?" [video]

https://www.youtube.com/watch?v=1L48dy4Lyjo
1•AzZtro•1h 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