On Tue, Mar 26, 2024 at 10:36:31AM +0800, 1165125080 wrote:
> The tuple of the system table is moved to the last part of the pg_attribute
> table by vacuum table. As a result, the connection is slow after the
> database is restarted. Are there any workarounds or suggestions for this
> problem.
System tables have low-numbered attrelid, so I would try this as a workaround
to move them back to the front:
cluster pg_attribute using pg_attribute_relid_attnum_index;