PG 11 JIT deform failure - Mailing list pgsql-hackers

From didier
Subject PG 11 JIT deform failure
Date
Msg-id CAJRYxu+3wqXCuyGtgYwGbsZt1CYA7mcXJJPUwXih-1n5LKA6Qw@mail.gmail.com
Whole thread Raw
Responses Re: PG 11 JIT deform failure
List 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

pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Fix inconsistencies for v12
Next
From: Martijn van Oosterhout
Date:
Subject: [PATCH] Improve performance of NOTIFY over many databases (issueblocking on AccessExclusiveLock on object 0 of class 1262 of database 0)