pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Amit Langote <amitlangote09@gmail.com>
Cc: Richard Guo <guofenglinux@gmail.com>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: David Rowley <dgrowleyml@gmail.com>
Cc: Greg Stark <stark@mit.edu>
Cc: Julien Rouhaud <rjuju123@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: List of Bitmapset (was Re: ExecRTCheckPerms() and many prunable partitions)
Date: Tue, 15 Nov 2022 13:25:16 -0500
Message-ID: <1175541.1668536716@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+HiwqEj8VF4HMvcLNWmO7o4nMKHvgVQBUtnBShTynFWgP3MGw@mail.gmail.com>
References: <892228.1668437838@sss.pgh.pa.us>
	<CA+HiwqEj8VF4HMvcLNWmO7o4nMKHvgVQBUtnBShTynFWgP3MGw@mail.gmail.com>

Amit Langote <amitlangote09@gmail.com> writes:
>  On Mon, Nov 14, 2022 at 11:57 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> + * The new member is identified by the zero-based index of the List
>> + * element it should go into, and the bit number to be set therein.

> The comment sounds a bit ambiguous, especially the ", and the bit
> number to be set therein." part.  If you meant to describe the
> arguments, how about mentioning their names too, as in:

Done that way in the patch I just posted.

>> +   /* forboth will stop at the end of the shorter list, which is fine */

> Isn't this comment unnecessary given that the while loop makes both
> lists be the same length?

No, the while loop ensures that a is at least as long as b.
It could have started out longer, though.

			regards, tom lane





view thread (6+ messages)  latest in thread

Message-ID: <1175541.1668536716@sss.pgh.pa.us>
Permalink:  ../1175541.1668536716@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1175541.1668536716@sss.pgh.pa.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, amitlangote09@gmail.com, guofenglinux@gmail.com, alvherre@alvh.no-ip.org, dgrowleyml@gmail.com, stark@mit.edu, rjuju123@gmail.com
  Subject: Re: List of Bitmapset (was Re: ExecRTCheckPerms() and many prunable partitions)
  In-Reply-To: <1175541.1668536716@sss.pgh.pa.us>
  References: <892228.1668437838@sss.pgh.pa.us> <CA+HiwqEj8VF4HMvcLNWmO7o4nMKHvgVQBUtnBShTynFWgP3MGw@mail.gmail.com> <1175541.1668536716@sss.pgh.pa.us>

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

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