[HACKERS] Assertion failure due to ColumnRefStar

2007-09-27 Thread NikhilS
Hi, One of our qmg folks reported an assertion failure: create table x(y char(1)); insert into x values (*); The above causes the following assertion to be hit: /* * Target item is a bare '*', expand all tables * * (e.g., SELECT * FROM emp, dept) *

Re: [HACKERS] Assertion failure due to ColumnRefStar

2007-09-27 Thread Heikki Linnakangas
NikhilS wrote: One of our qmg folks reported an assertion failure: create table x(y char(1)); insert into x values (*); The above causes the following assertion to be hit: Works for me on CVS HEAD. Which version of Postgres is this? -- Heikki Linnakangas EnterpriseDB

Re: [HACKERS] Assertion failure due to ColumnRefStar

2007-09-27 Thread Tom Lane
Heikki Linnakangas [EMAIL PROTECTED] writes: NikhilS wrote: One of our qmg folks reported an assertion failure: create table x(y char(1)); insert into x values (*); The above causes the following assertion to be hit: Works for me on CVS HEAD. Which version of Postgres is this? I see the

Re: [HACKERS] Assertion failure due to ColumnRefStar

2007-09-27 Thread Tom Lane
I wrote: The problem here is that in the output of the grammar, * is represented exactly the same as * would be ... I suppose this representation was chosen back in the day before we had full support for quoted column names. I took a brief look at this. Changing that representation seems