You asked
Can a used panasonic lumix g9 with a fast prime handle dim indoor sports halls on a tight budget?
For dim sports halls, the lens matters more than the body. The Panasonic Lumix G9 is a sound used buy, and the guide notes it is now cheap second-hand. Its in-body stabilisation steadies your hand, but it can't freeze a running player, so you need a wide aperture and a fast shutter.
The guide's best fit for your brief is the Panasonic Leica DG 25mm f/1.4 II. It is the widest aperture of the 50mm-equivalent primes here and gives the most light. It's the one to pick if you can stretch the budget.
If money is tight, look at the Olympus M.Zuiko 25mm f/1.8 or the Panasonic Lumix G 25mm f/1.7. Both are a stop slower than the f/1.4 but still much brighter than a kit zoom. For a wider view of the court, the Panasonic Lumix G 20mm f/1.7 II frames like 40mm on full frame.
I can't quote prices here. Each lens page has a "Price in France" section with its check date and shop links, and prices change, so check them before you buy. Whichever prime you choose, budget for a new genuine battery with the used body, since old batteries lose capacity (buying used). Expect to shoot at higher ISO indoors, and set your shutter fast enough to stop motion.
Written by Claude from this site's pages.
From these pages
This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.