PG::ProgramLimitExceeded: ERROR: index row requires 13904 bytes, maximum size is 8191 PG::ProgramLimitExceeded: ERROR: index row requires 13904 bytes, maximum size is 8191 postgresql postgresql

PG::ProgramLimitExceeded: ERROR: index row requires 13904 bytes, maximum size is 8191


The error message says exactly what the problem is. You have indexed the "po_description" column and it exceeds the maximum index size.

An index on such large columns is unlikely to be useful anyway. Simplest solution is just to remove it.