From: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> |
---|---|
To: | Tender Wang <tndrwang(at)gmail(dot)com> |
Cc: | 1026592243(at)qq(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org |
Subject: | Re: BUG #18377: Assert false in "partdesc->nparts >= pinfo->nparts", fileName="execPartition.c", lineNumber=1943 |
Date: | 2024-06-27 18:00:38 |
Message-ID: | 202406271800.zp735zjeik3t@alvherre.pgsql |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
On 2024-Apr-23, Tender Wang wrote:
> I found one self-contradiction comments in CreatePartitionPruneState():
>
> /* For data reading, executor always omits detached partitions */
> if (estate->es_partition_directory == NULL)
> estate->es_partition_directory =
> CreatePartitionDirectory(estate->es_query_cxt, false);
>
> Should it be " not omits" if I didn't misunderstand. Because we pass false
> to the function.
I pushed the fix now, and threw in a correction for another bogus
comment I introduced while developing the bugfix. Thanks!
--
Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/
"Learn about compilers. Then everything looks like either a compiler or
a database, and now you have two problems but one of them is fun."
https://twitter.com/thingskatedid/status/1456027786158776329
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2024-06-27 18:41:47 | Re: BUG #18500: Detaching a partition with an index manually attached to the parent's index triggers Assert |
Previous Message | Alvaro Herrera | 2024-06-27 14:55:24 | Re: BUG #18500: Detaching a partition with an index manually attached to the parent's index triggers Assert |