The maximum number of columns in a table depends on many factors, including, among others, your server’s logical page size and whether the tables are configured for allpages- or data only-locking. See create table in the Reference Manual: Commands.