[GENERAL] Startup messages for socket protocol

2011-03-17 Thread Guillaume Yziquel
his seems to work, but I'm at a loss pinpointing in the libpq source code where that would fit in the protocol. Enlightenment would be very welcome. -- Guillaume Yziquel -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: htt

Re: [GENERAL] Startup messages for socket protocol

2011-03-17 Thread Guillaume Yziquel
Le Thursday 17 Mar 2011 à 10:48:50 (-0400), Tom Lane a écrit : > Guillaume Yziquel writes: > > However, when I try to send this as the first thing, I get disconnected > > by the server. Reading what the psql program does, I first get an 8 byte > > me

Re: [GENERAL] Startup messages for socket protocol

2011-03-17 Thread Guillaume Yziquel
Le Thursday 17 Mar 2011 à 16:08:55 (+0100), Guillaume Yziquel a écrit : > Le Thursday 17 Mar 2011 à 10:48:50 (-0400), Tom Lane a écrit : > > Guillaume Yziquel writes: > > For now, when sending \000\003\000\000 and only this, the server seems > to disconnect. The recv() call on

[GENERAL] PQntuples returns an int.

2010-03-03 Thread Guillaume Yziquel
int'? why not a 'long int', or an 'unsigned int', or whatever? I'm asking this because I'm wondering whether you could have more tuples in the result of a query than could be indexed by the 'int' type. May this happen? All the best, -- Guil

Re: [GENERAL] PQntuples returns an int.

2010-03-03 Thread Guillaume Yziquel
before. It's much more a typing issue in a strongly typed language (OCaml). Thanks again. Guillaume Yziquel. -- Guillaume Yziquel http://yziquel.homelinux.org/ -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www