Re: [GENERAL] count(*) in binary mode returns 0

2016-12-05 Thread Daniel Verite
imagene...@gmail.com wrote: > nfields: 1 > from_psql bytes_to_read:4 read:4 > host_order 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(coun

Re: [GENERAL] count(*) in binary mode returns 0

2016-12-04 Thread Tom Lane
"imagene...@gmail.com" 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

[GENERAL] count(*) in binary mode returns 0

2016-12-04 Thread imagene...@gmail.com
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