pgsql: Reduce number of commands dumpTableSchema emits for binary upgra

2024-07-29 Thread Tom Lane
Reduce number of commands dumpTableSchema emits for binary upgrade. Avoid issuing a separate SQL UPDATE command for each column when directly manipulating pg_attribute contents in binary upgrade mode. With the separate updates, we triggered a relcache invalidation with each update. For a table wi

pgsql: Reduce number of commands dumpTableSchema emits for binary upgra

2024-07-29 Thread Tom Lane
Reduce number of commands dumpTableSchema emits for binary upgrade. Avoid issuing a separate SQL UPDATE command for each column when directly manipulating pg_attribute contents in binary upgrade mode. With the separate updates, we triggered a relcache invalidation with each update. For a table wi