Re: aggregate + view + alias crash on 7.4 stable

From: Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>
To: tgl(at)sss(dot)pgh(dot)pa(dot)us
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: aggregate + view + alias crash on 7.4 stable
Date: 2003-12-08 05:36:09
Message-ID: 20031208.143609.104031715.t-ishii@sra.co.jp
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.*".

If the SQL is not legal, generating an error is enough, I think.
--
Tatsuo Ishii

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message strk 2003-12-08 09:40:09 ERROR: Index pg_toast_8443892_index is not a btree
Previous Message Matthew T. O'Connor 2003-12-08 05:27:29 Re: autovacuum daemon stops doing work after about an hour