Failed Assertion about PolymorphicType

Jaime Casanova <jaime.casanova@2ndquadrant.com>

From: Jaime Casanova <jaime.casanova@2ndquadrant.com>
To: Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2020-04-04T21:03:52Z
Lists: pgsql-hackers

Attachments

Hi,

Running sqlsmith on master i got an assertion failure on parse_coerce.c:2049

This is a minimal query to reproduce in an empty database, i also
attached the stack trace

 """
select
  pg_catalog.array_in(
    cast(pg_catalog.regoperatorout(
      cast(cast(null as regoperator) as regoperator)) as cstring),
    cast((select pronamespace from pg_catalog.pg_proc limit 1 offset 1)
       as oid),
    cast(subq_1.pid as int4)) as c0
from pg_catalog.pg_stat_progress_analyze as subq_1
 """

-- 
Jaime Casanova                      www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Commits

  1. Remove bogus Assert, add some regression test cases showing why.