imagenesis@gmail.com wrote:
> nfields: 1
> from_psql 00000000000000000000000000000000 bytes_to_read:4 read:4
> host_order 00000000000000000000000000000000 bytes_to_read:4 read:4
> conv_int ir:0
Note that count(*) produces a bigint (8 bytes), not an int (4 bytes).
=> select pg_typeof(count(1));
pg_typeof
-----------
bigint
(1 row)
Can you check if your code does work when the query is simply
SELECT 1::bigint ?
Best regards,
--
Daniel Vérité
PostgreSQL-powered mailer: http://www.manitou-mail.org
Twitter: @DanielVerite