From: Volker Paul <vpaul@dohle.com>
To: poange@technologist.com
Cc: pgsql-sql@postgresql.org
Subject: Re: problem with view and case - please help
Date: Fri, 21 Jul 2000 11:10:50 +0200
Message-ID: <3978139A.3F12604F@dohle.com> (raw)
References: <39780EEE.BBCB6406@technologist.com>
> CREATE VIEW browser
> AS
> SELECT
> agent_i,
> CASE
> WHEN agent_i LIKE '%MSIE 2.0;%' THEN 'Internet Explorer 2.0'
> ...
> agent_i NOT LIKE '%compatible%' THEN 'Netscape'
> WHEN agent_i LIKE 'Mozilla/5.0 %' AND agent_i NOT LIKE '%MSIE%' AND
> agent_i NOT LIKE '%compatible%' THEN 'Netscape'
> WHEN agent_i LIKE 'Mozilla/6.0 %' AND agent_i NOT LIKE '%MSIE%' AND
> agent_i NOT LIKE '%compatible%' THEN 'Netscape'
> ELSE agent_i END AS navigateur, count (agent_i)
> as total from access group by agent_i;
> pqReadData() -- backend closed the channel unexpectedly.
> This probably means the backend terminated abnormally
> before or while processing the request.
> We have lost the connection to the backend, so further processing is
> impossible. Terminating.
Query limit exceeded? At least that CASE statement looks rather clumsy,
suggest using a function instead.
V.Paul
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: vpaul@dohle.com, poange@technologist.com
Subject: Re: problem with view and case - please help
In-Reply-To: <3978139A.3F12604F@dohle.com>
References: <39780EEE.BBCB6406@technologist.com> <3978139A.3F12604F@dohle.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox