If I run the following query I get really strange results. I get week 1 (as expected) only starting from Monday 4th of January. I using this in a group by query to count covid cases per week and this totaly ruins my day :/
SELECT date_part('week', '2021-01-01'::date) as week, date_part('year', '2021-01-01'::date) as year;
week year
53 2021
Version: PostgreSQL 12.3 on x86_64-pc-linux-musl, compiled by gcc (Alpine 9.3.0) 9.3.0, 64-bit