That is in response / as a follow-up to @df7cb showing the same in #postgresql but I couldn't reply-tweet with a screenshot ... Also no space for the #rdatatable tag the tweet really needed too.
#TIL 13ths are more often Fridays than other weekdays:
select extract(dow from d), count(*) from generate_series(date 'today' - interval '400 years', date 'today' + interval '400 years', interval '1 day') as g(d) where extract(day from d) = 13 group by 1 order by 1;
@PostgreSQL
1
1



