Re: BUG #18377: Assert false in "partdesc->nparts >= pinfo->nparts", fileName="execPartition.c", lineNumber=1943

Alvaro Herrera <alvherre@alvh.no-ip.org>

From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Tender Wang <tndrwang@gmail.com>
Cc: 1026592243@qq.com, pgsql-bugs@lists.postgresql.org
Date: 2024-06-24T14:01:36Z
Lists: pgsql-bugs
On 2024-Jun-24, Tender Wang wrote:

>  If we abstract the problem that this patch attempts to solve,it would try
> to find same elements on two arrays.
> The lengths of these two arrays are not guaranteed to be equal. In this
> issue, even though the lengths of two arrays
> is same, we can't assume the each element on two arrays is same.
> 
> The algorithm used in patch is correct if I understand correctly.

Thanks for looking again.  I have finally pushed this.

-- 
Álvaro Herrera               48°01'N 7°57'E  —  https://www.EnterpriseDB.com/
"Aprender sin pensar es inútil; pensar sin aprender, peligroso" (Confucio)



Commits

  1. Fix partition pruning setup during DETACH CONCURRENTLY

  2. Revert "Fix partition pruning setup during DETACH CONCURRENTLY"

  3. Fix creation of partition descriptor during concurrent detach

  4. Use MyBackendType in more places to check what process this is