Assertion failure due to ColumnRefStar - Mailing list pgsql-hackers

From NikhilS
Subject Assertion failure due to ColumnRefStar
Date
Msg-id d3c4af540709270712m150d7e61i119d7a28c2932bc2@mail.gmail.com
Whole thread Raw
Responses Re: Assertion failure due to ColumnRefStar
List pgsql-hackers
Hi,<br /><br />One of our qmg folks reported an assertion failure:<br /><br />create table x(y char(1));<br />insert
intox  values ("*");<br clear="all" /><br />The above causes the following assertion to be hit:<br /><br />        /*
<br/>         * Target item is a bare '*', expand all tables<br />         *<br />         * (e.g., SELECT * FROM emp,
dept)<br/>         *<br />         * Since the grammar only accepts bare '*' at top level of SELECT, we <br />       
 *need not handle the targetlist==false case here.<br />         */<br />        Assert(targetlist);<br /><br />in
ExpandColumnRefStar()function. <br /><br />I was wondering if we should fix this by checking for
list_length(cref->fields)being greater than 1 before calling this in transformExpressionList? <br /><br
/>Regards,<br/>Nikhils<br />-- <br />EnterpriseDB               <a
href="http://www.enterprisedb.com">http://www.enterprisedb.com</a>

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [COMMITTERS] pgsql: Temporarily modify tsearch regression tests to suppress notice
Next
From: "Kevin Grittner"
Date:
Subject: Re: [FEATURE REQUEST] Streaming Onlinebackup (MaybeOFFTOPIC)