pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: New C function: bms_add_range
5+ messages / 4 participants
[nested] [flat]

Commits from this thread:
  2017-11-30 06ae669c92  Remove extra word from comment.
* pgsql: New C function: bms_add_range
@ 2017-11-29 22:12 Robert Haas <rhaas@postgresql.org>
  2017-11-30 01:27 ` Re: pgsql: New C function: bms_add_range Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
  0 siblings, 1 reply; 5+ messages in thread

From: Robert Haas @ 2017-11-29 22:12 UTC (permalink / raw)
  To: pgsql-committers

New C function: bms_add_range

This will be used by pending patches to improve partition pruning.

Amit Langote and Kyotaro Horiguchi, per a suggestion from David
Rowley.  Review and testing of the larger patch set of which this is a
part by Ashutosh Bapat, David Rowley, Dilip Kumar, Jesper Pedersen,
Rajkumar Raghuwanshi, Beena Emerson, Amul Sul, and Kyotaro Horiguchi.

Discussion: http://postgr.es/m/098b9c71-1915-1a2a-8d52-1a7a50ce79e8@lab.ntt.co.jp

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/84940644de931f331433b35e3a391822671f8c9c

Modified Files
--------------
src/backend/nodes/bitmapset.c | 72 +++++++++++++++++++++++++++++++++++++++++++
src/include/nodes/bitmapset.h |  1 +
2 files changed, 73 insertions(+)



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: pgsql: New C function: bms_add_range
  2017-11-29 22:12 pgsql: New C function: bms_add_range Robert Haas <rhaas@postgresql.org>
@ 2017-11-30 01:27 ` Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
  2017-11-30 01:48   ` Re: pgsql: New C function: bms_add_range Robert Haas <robertmhaas@gmail.com>
  0 siblings, 1 reply; 5+ messages in thread

From: Amit Langote @ 2017-11-30 01:27 UTC (permalink / raw)
  To: Robert Haas <rhaas@postgresql.org>; pgsql-committers

On 2017/11/30 7:12, Robert Haas wrote:
> New C function: bms_add_range
> 
> This will be used by pending patches to improve partition pruning.
> 
> Amit Langote and Kyotaro Horiguchi, per a suggestion from David
> Rowley.  Review and testing of the larger patch set of which this is a
> part by Ashutosh Bapat, David Rowley, Dilip Kumar, Jesper Pedersen,
> Rajkumar Raghuwanshi, Beena Emerson, Amul Sul, and Kyotaro Horiguchi.
> 
> Discussion: http://postgr.es/m/098b9c71-1915-1a2a-8d52-1a7a50ce79e8@lab.ntt.co.jp

Thanks for committing this.

To be accurate, as also noted in the commit message of the patch that I
sent, authors of this patch are David Rowley and Kyotaro Horiguchi.  David
came up with the idea and the patch first [1], which Horiguchi-san later
commented on to improve the code.  My job has simply been to incorporate
their patch in the bigger patch set.

Thanks,
Amit

[1]
https://www.postgresql.org/message-id/CAKJS1f88-EOpbicP6QuT2Omq00om8j_1XtkyheuimP336DG-gw%40mail.gma...

[2]
https://www.postgresql.org/message-id/20171110.123000.151902771.horiguchi.kyotaro%40lab.ntt.co.jp





^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: pgsql: New C function: bms_add_range
  2017-11-29 22:12 pgsql: New C function: bms_add_range Robert Haas <rhaas@postgresql.org>
  2017-11-30 01:27 ` Re: pgsql: New C function: bms_add_range Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
@ 2017-11-30 01:48   ` Robert Haas <robertmhaas@gmail.com>
  2017-11-30 20:53     ` Re: pgsql: New C function: bms_add_range David Rowley <david.rowley@2ndquadrant.com>
  0 siblings, 1 reply; 5+ messages in thread

From: Robert Haas @ 2017-11-30 01:48 UTC (permalink / raw)
  To: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>; +Cc: pgsql-committers

On Wed, Nov 29, 2017 at 8:27 PM, Amit Langote
<Langote_Amit_f8@lab.ntt.co.jp> wrote:
> To be accurate, as also noted in the commit message of the patch that I
> sent, authors of this patch are David Rowley and Kyotaro Horiguchi.  David
> came up with the idea and the patch first [1], which Horiguchi-san later
> commented on to improve the code.  My job has simply been to incorporate
> their patch in the bigger patch set.

Crap, I apologize.  I looked at the commit message you wrote in
putting together mine, but I somehow blanked out the fact that you had
listed David rather than yourself as first author.  That was bad of
me, and I am sorry.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: pgsql: New C function: bms_add_range
  2017-11-29 22:12 pgsql: New C function: bms_add_range Robert Haas <rhaas@postgresql.org>
  2017-11-30 01:27 ` Re: pgsql: New C function: bms_add_range Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
  2017-11-30 01:48   ` Re: pgsql: New C function: bms_add_range Robert Haas <robertmhaas@gmail.com>
@ 2017-11-30 20:53     ` David Rowley <david.rowley@2ndquadrant.com>
  2017-11-30 21:27       ` Re: pgsql: New C function: bms_add_range Robert Haas <robertmhaas@gmail.com>
  0 siblings, 1 reply; 5+ messages in thread

From: David Rowley @ 2017-11-30 20:53 UTC (permalink / raw)
  To: Robert Haas <robertmhaas@gmail.com>; +Cc: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>; pgsql-committers

On 30 November 2017 at 14:48, Robert Haas <robertmhaas@gmail.com> wrote:
> On Wed, Nov 29, 2017 at 8:27 PM, Amit Langote
> <Langote_Amit_f8@lab.ntt.co.jp> wrote:
>> To be accurate, as also noted in the commit message of the patch that I
>> sent, authors of this patch are David Rowley and Kyotaro Horiguchi.  David
>> came up with the idea and the patch first [1], which Horiguchi-san later
>> commented on to improve the code.  My job has simply been to incorporate
>> their patch in the bigger patch set.
>
> Crap, I apologize.  I looked at the commit message you wrote in
> putting together mine, but I somehow blanked out the fact that you had
> listed David rather than yourself as first author.  That was bad of
> me, and I am sorry.

Unfortunate, but you're forgiven :-p

I've attached a small patch to fix the comment at the head of the
function. I thought I had fixed this, but seems I didn't.

-- 
 David Rowley                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

Attachments:

bms_add_range_comment_fix.patch (application/octet-stream, 724B) download diff --git a/src/backend/nodes/bitmapset.c b/src/backend/nodes/bitmapset.c index e5096e0..ae30072 100644 --- a/src/backend/nodes/bitmapset.c +++ b/src/backend/nodes/bitmapset.c @@ -789,8 +789,8 @@ bms_add_members(Bitmapset *a, const Bitmapset *b) * Add members in the range of 'lower' to 'upper' to the set. * * Note this could also be done by calling bms_add_member in a loop, however, - * using this function will be faster when the range is large as we work with - * at the bitmapword level rather than at bit level. + * using this function will be faster when the range is large as we work at + * the bitmapword level rather than at bit level. */ Bitmapset * bms_add_range(Bitmapset *a, int lower, int upper)
^ permalink raw reply [nested|flat] 5+ messages in thread

* Re: pgsql: New C function: bms_add_range
  2017-11-29 22:12 pgsql: New C function: bms_add_range Robert Haas <rhaas@postgresql.org>
  2017-11-30 01:27 ` Re: pgsql: New C function: bms_add_range Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
  2017-11-30 01:48   ` Re: pgsql: New C function: bms_add_range Robert Haas <robertmhaas@gmail.com>
  2017-11-30 20:53     ` Re: pgsql: New C function: bms_add_range David Rowley <david.rowley@2ndquadrant.com>
@ 2017-11-30 21:27       ` Robert Haas <robertmhaas@gmail.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Robert Haas @ 2017-11-30 21:27 UTC (permalink / raw)
  To: David Rowley <david.rowley@2ndquadrant.com>; +Cc: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>; pgsql-committers

On Thu, Nov 30, 2017 at 3:53 PM, David Rowley
<david.rowley@2ndquadrant.com> wrote:
> Unfortunate, but you're forgiven :-p
>
> I've attached a small patch to fix the comment at the head of the
> function. I thought I had fixed this, but seems I didn't.

Thanks, committed.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company




^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2017-11-30 21:27 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-11-29 22:12 pgsql: New C function: bms_add_range Robert Haas <rhaas@postgresql.org>
2017-11-30 01:27 ` Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
2017-11-30 01:48   ` Robert Haas <robertmhaas@gmail.com>
2017-11-30 20:53     ` David Rowley <david.rowley@2ndquadrant.com>
2017-11-30 21:27       ` Robert Haas <robertmhaas@gmail.com>

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