Re: [HACKERS] CURRENT: crash in select_view regression test...

From: jwieck(at)debis(dot)com (Jan Wieck)
To: emkxp01(at)mtcc(dot)demon(dot)co(dot)uk
Cc: vadim(at)krs(dot)ru, jwieck(at)debis(dot)com, hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] CURRENT: crash in select_view regression test...
Date: 1998-12-18 08:28:39
Message-ID: m0zqvH6-000EBPC@orion.SAPserv.Hamburg.dsh.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)debis(dot)com (Jan Wieck) #

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Oleg Broytmann 1998-12-18 08:41:34 Re: [GENERAL] date_part bug?
Previous Message Bruce Momjian 1998-12-18 07:30:42 Re: [HACKERS] Upgrades for 6.4.1