TRAP: FailedAssertion("!(hassrf)", File: "nodeProjectSet.c", Line: 180)

Erik Rijkers <er@xs4all.nl>

From: Erik Rijkers <er@xs4all.nl>
To: Pgsql Hackers <pgsql-hackers@postgresql.org>
Date: 2017-02-01T23:09:03Z
Lists: pgsql-hackers
Something is broken in HEAD:


drop table if exists t;
create table t(c text);
insert into t (c) values ( 'abc' ) ;

select
           regexp_split_to_array(
           regexp_split_to_table(
                 c
               , chr(13) || chr(10)  )
               , '","' )
                                       as a
      ,
           regexp_split_to_table(
                   c
                 , chr(13) || chr(10)
          )
                                       as rw
from t
;

TRAP: FailedAssertion("!(hassrf)", File: "nodeProjectSet.c", Line: 180)


I realise the regexp* functions aren't doing anything particularly 
useful anymore here; they did in the more complicated original (which I 
had used for years).

thanks,

Erik Rijkers


Commits

  1. Fix mishandling of tSRFs at different nesting levels.