Re: Re: PL/PG SQL: select count(*) into <var> from <ANY VIEW> where <cond> - does not compute the where cond - returns always total count

From: Martin Gainty <mgainty(at)hotmail(dot)com>
To: <danny_abraham(at)bmc(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Re: PL/PG SQL: select count(*) into <var> from <ANY VIEW> where <cond> - does not compute the where cond - returns always total count
Date: 2009-09-23 11:26:18
Message-ID: BLU142-W358A2B6EC59F8B94A62FAAAEDB0@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


the "does not compute the where condition" needs more definition

can you supply the table schema and which columns you want?

select count(*) from table will get you the count
We can banter on the need to store in views once the schema is known

Martin Gainty
______________________________________________
Verzicht und Vertraulichkeitanmerkung

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.

> From: danny_abraham(at)bmc(dot)com
> To: danny_abraham(at)bmc(dot)com; pgsql-general(at)postgresql(dot)org
> Date: Wed, 23 Sep 2009 05:04:09 -0500
> Subject: [GENERAL] Re: PL/PG SQL: select count(*) into <var> from <ANY VIEW> where <cond> - does not compute the where cond - returns always total count
>
> Any idea?
>
> Thanks
>
> Danny
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general

_________________________________________________________________
Bing brings you health info from trusted sources.
http://www.bing.com/search?q=pet+allergy&form=MHEINA&publ=WLHMTAG&crea=TXT_MHEINA_Health_Health_PetAllergy_1x1

In response to

Browse pgsql-general by date

  From Date Subject
Next Message AnthonyV 2009-09-23 12:13:34 Advance SQL subquery
Previous Message Peter Geoghegan 2009-09-23 11:11:28 multiple calls to dblink_connect from within pl/pgSQL function exhaust connection limit