RE: count(*) from view??

From: "Sean Carmody" <sean(at)categoricalsolutions(dot)com(dot)au>
To: "Greg Brzezinski" <gregb(at)amg(dot)gda(dot)pl>, <pgsql-general(at)postgresql(dot)org>
Cc: "Marcin Mazurek" <M(dot)Mazurek(at)poznan(dot)multinet(dot)pl>
Subject: RE: count(*) from view??
Date: 2000-09-11 21:54:21
Message-ID: 00b001c01c3a$d7d64a80$0401a8c0@newton
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I've now tested your problem on the 7.0.2 and the problem doesn't
seem to arise there, so it looks as though the problems with the
rule rewriter have been fixed. Maybe you should try upgrading.

Regards,
Sean.

> -----Original Message-----
> From: pgsql-general-owner(at)hub(dot)org [mailto:pgsql-general-owner(at)hub(dot)org]On
> Behalf Of Greg Brzezinski
> Sent: Friday, 8 September 2000 11:32 PM
> To: pgsql-general(at)postgresql(dot)org
> Subject: [GENERAL] count(*) from view??
>
>
> create table test (id int, user_name char(30));
> insert into test values (1, 'John');
> insert into test values (2, 'George');
>
> create view v_test as select * from test where user_name = 'John';
>
> select count(*) from v_test;
> count
> -------
> 2
> (1 row) Why?...Should returns 1
>
> select count(*) from test where user_name = 'John';
> count
> -------
> 1
> (1 row)
>
> --Greg--
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Barry Lind 2000-09-12 03:14:21 problem with LIKE and '/%'
Previous Message Sean Carmody 2000-09-11 21:45:20 RE: count(*) from view??