Re: [HACKERS] Backend assertion failure on \d

2009-02-25 Thread Tom Lane
Alan Li writes: > Running the following against HEAD and REL8_3_6: > create table foo (a varchar(500)); > create view bar as select case foo.a when '1' then 'foo' else 'bar' end as > fa from foo; > \d bar > Causes as assertion in the backend: Thanks for the report. Looks like I forgot to conside

Re: [HACKERS] Backend assertion failure on \d

2009-02-25 Thread Heikki Linnakangas
Alan Li wrote: Running the following against HEAD and REL8_3_6: Same problem exists in 8.2 and 8.1 as well. The code in ruleutils.c is similar in 8.0 as well, except that the Assertion isn't there. create table foo (a varchar(500)); create view bar as select case foo.a when '1' then 'foo' e

[HACKERS] Backend assertion failure on \d

2009-02-25 Thread Alan Li
Running the following against HEAD and REL8_3_6: create table foo (a varchar(500)); create view bar as select case foo.a when '1' then 'foo' else 'bar' end as fa from foo; \d bar Causes as assertion in the backend: TRAP: FailedAssertion("!(Node*)(((list_head(((OpExpr *) w)->args))->data.ptr_