Hi, in func get_rel_sync_entry() we access the same tuple in pg_class three times: Oid schemaId = get_rel_namespace(relid); bool am_partition = get_rel_relispartition(relid); char relkind = get_rel_relkind(relid); Why not just merge into one?
-- Regards, ChangAo Chen