The real problem was that i was trying to update the forecast via pgx.Pool, not the acquired connection, therefore it did not have the correct role. I moved everything to a different function where db is not visible in scope, just to make sure i did not fuck up anywhere else.
Languages
PLpgSQL
69.3%
Go
25.1%
CSS
4.3%
JavaScript
0.8%
Scheme
0.4%