| From: | didier <did447(at)gmail(dot)com> |
|---|---|
| To: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | PG 11 JIT deform failure |
| Date: | 2019-06-04 05:47:24 |
| Message-ID: | CAJRYxu+3wqXCuyGtgYwGbsZt1CYA7mcXJJPUwXih-1n5LKA6Qw@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi,
JIT slot_compile_deform assumes there's at least 'natts' in TupleDesc, eg
/*
* Iterate over each attribute that needs to be deformed, build code to
* deform it.
*/
for (attnum = 0; attnum < natts; attnum++)
{
Form_pg_attribute att = TupleDescAttr(desc, attnum);
but a new TupleDesc has no attribute and the caller only tests
TupleDesc is not null.
| Attachment | Content-Type | Size |
|---|---|---|
| jit_expr.patch | text/x-patch | 598 bytes |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Martijn van Oosterhout | 2019-06-04 07:08:15 | [PATCH] Improve performance of NOTIFY over many databases (issue blocking on AccessExclusiveLock on object 0 of class 1262 of database 0) |
| Previous Message | Amit Kapila | 2019-06-04 02:06:26 | Re: Fix inconsistencies for v12 |