public inbox for [email protected]  
help / color / mirror / Atom feed
From: =?ISO-8859-1?B?Y2NhNTUwNw==?= <[email protected]>
To: =?ISO-8859-1?B?cGdzcWwtaGFja2Vycw==?= <[email protected]>
Subject: Redundant syscache access in get_rel_sync_entry()
Date: Thu, 11 Jul 2024 14:08:32 +0800
Message-ID: <[email protected]> (raw)

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


--
Regards,
ChangAo Chen

view thread (2+ messages)

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: Redundant syscache access in get_rel_sync_entry()
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox