Search Postgresql Archives

Re: count(*) in binary mode returns 0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"imagenesis@xxxxxxxxx" <imagenesis@xxxxxxxxx> writes:
> I have an implementation of binary format communication that is working
> quite well but it is failing inexplicably on returning valid results for
> the aggregate function count. It returns a correct result for instance for
> the aggregate function max.

> Here is some debug information to illustrate that I have debugged the host
> order conversions and what have you in implementing this binary format. As
> you can see, it is simply returning 0.

Offhand I'd bet that you're mistransmitting the statement parameter so
that the WHERE condition never succeeds.  You could set log_statement=all
and look in the postmaster log to see what the server thinks it's getting.

			regards, tom lane


-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux