"Vitale, Anthony, Sony Music" <anthony.vitale@xxxxxxxxxxxxx> writes: > I am trying to figure out how to calculate a column size in my UTF8 encoded Postgresql V14 instance in order to avoid the error exceeds btree version 4 maximum 2704 and I am obviously not doing it correctly using pg_column_size as when I do I get 2701 which is lower than 2704. I think you're not accounting for overhead. The reported index row size would include the index tuple header (8 bytes) as well as alignment padding. regards, tom lane