Re: aggregate + view + alias crash on 7.4 stable

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: aggregate + view + alias crash on 7.4 stable
Date: 2003-12-08 04:25:57
Message-ID: 1886.1070857557@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp> writes:
> test=# select count(a.*) from pg_indexes a limit 10;
> server closed the connection unexpectedly

Hmmm ... the crash is certainly UnGood, but is there any reason we
should accept this query rather than generating an error? I don't
think it's legal vanilla SQL --- the argument of count() should be
either "*" or a scalar expression per the spec. I don't know what
it means for the argument of count() to be "foo.*".

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2003-12-08 04:31:41 Re: Call for pg_dump testing
Previous Message Christopher Kings-Lynne 2003-12-08 04:03:56 Re: Call for pg_dump testing