Unclear code - please elaborate

From: Dmitry Nikitin <pgsql-hackers(at)dima(dot)nikitin(dot)name>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Unclear code - please elaborate
Date: 2024-11-29 17:11:34
Message-ID: 582986626.20241129201134@dima.nikitin.name
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello ,

https://github.com/postgres/postgres/blob/5d39becf8ba0080c98fee4b63575552f6800b012/src/backend/optimizer/prep/prepjointree.c#L3856
bms_next_member() is allowed to return the zero as a valid value. Subsequent rt_fetch() offsets that
zero to -1 which leads to the assertion down the code. Nothing wrong here? Either zero is simply not
possible after that bms_next_member() because of some factors behind the code?

--
Best regards,
Dmitry mailto:pgsql-hackers(at)dima(dot)nikitin(dot)name

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Benjamin 2024-11-29 17:21:33 Re: [PATCH] Avoid mixing custom and OpenSSL BIO functions
Previous Message Matheus Alcantara 2024-11-29 17:05:24 Re: Use streaming read API in pgstattuple.