Wrong Assert in PageIndexMultiDelete?

From: Anastasia Lubennikova <lubennikovaav(at)gmail(dot)com>
To: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Wrong Assert in PageIndexMultiDelete?
Date: 2015-05-19 15:08:56
Message-ID: CAP4vRV6m0nxVh7k7rO4rG5rOozi45Rjieh_bSU7Ru74d50sOBw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi, hackers!

I am trying to create new index access method.
And I found strange Assert in PageIndexMultiDelete
<http://doxygen.postgresql.org/bufpage_8c_source.html#l00791> function.

Assert
<http://doxygen.postgresql.org/c_8h.html#a706ac5b1a53bd04067f81924b92cb9f6>(nitems
< MaxIndexTuplesPerPage
<http://doxygen.postgresql.org/itup_8h.html#adb7c94e95ce112eb47d71f7797604ddb>
);

Is '<' sign is correct? I thougt it should be '<='.
Is it a bug or just my misunderstanding?

--
Best regards,
Lubennikova Anastasia

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Geoff Winkless 2015-05-19 15:32:36 INSERT ... ON CONFLICT DO UPDATE with _any_ constraint
Previous Message Bruno Harbulot 2015-05-19 15:03:22 Re: Problems with question marks in operators (JDBC, ECPG, ...)