Redundant syscache access in get_rel_sync_entry() - Mailing list pgsql-hackers

From cca5507
Subject Redundant syscache access in get_rel_sync_entry()
Date
Msg-id tencent_32D456A4CCC86CE3E91E58D8C987BA17B20A@qq.com
Whole thread Raw
Responses Re: Redundant syscache access in get_rel_sync_entry()
List pgsql-hackers
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

pgsql-hackers by date:

Previous
From: shveta malik
Date:
Subject: Re: Conflict detection and logging in logical replication
Next
From: Bertrand Drouvot
Date:
Subject: Re: relfilenode statistics