Re: [HACKERS] CURRENT: crash in select_view regression test... - Mailing list pgsql-hackers

From jwieck@debis.com (Jan Wieck)
Subject Re: [HACKERS] CURRENT: crash in select_view regression test...
Date
Msg-id m0zqvH6-000EBPC@orion.SAPserv.Hamburg.dsh.de
Whole thread Raw
In response to Re: [HACKERS] CURRENT: crash in select_view regression test...  (Keith Parks <emkxp01@mtcc.demon.co.uk>)
List pgsql-hackers
> If I select from the view I get a BE crash.

    That was a typo in nodes/read.c that is fixed.

> If I start looking around in ruleutils.c why can't I see "spirc"??
>
> Breakpoint 2, pg_get_viewdef (rname=0xe01d56a0) at ruleutils.c:277
> 277             if (spirc != SPI_OK_SELECT)
> (gdb) print spirc
> No symbol "spirc" in current context.
> (gdb) list
> 272             args[1] = PointerGetDatum(name2);
> 273             nulls[0] = ' ';
> 274             nulls[1] = ' ';
> 275             nulls[2] = '\0';
> 276             spirc = SPI_execp(plan_getview, args, nulls, 1);
> 277             if (spirc != SPI_OK_SELECT)
> 278                     elog(ERROR, "failed to get pg_rewrite tuple for view %s", rulename);
> 279             if (SPI_processed != 1)
> 280                     tmp = "Not a view";
> 281             else
>
> Jan in particular, any idea what's happening here?

    Must take a look at it anyway. Thomas added new node types
    which must be handled there too (CASE).


Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#======================================== jwieck@debis.com (Jan Wieck) #

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Upgrades for 6.4.1
Next
From: Oleg Broytmann
Date:
Subject: Re: [GENERAL] date_part bug?