Re: postgres fe/be protocol

From: "Peter Mount" <peter(at)retep(dot)org(dot)uk>
To: "Chris Bitmead" <chris(at)bitmead(dot)com>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Postgres Hackers List" <hackers(at)postgresql(dot)org>
Subject: Re: postgres fe/be protocol
Date: 2000-07-10 22:41:46
Message-ID: 038f01bfeac2$2df8d360$152329d4@retep.org.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


----- Original Message -----
From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Chris Bitmead <chris(at)bitmead(dot)com>
Cc: Postgres Hackers List <hackers(at)postgresql(dot)org>
Sent: Monday, July 10, 2000 4:44 PM
Subject: Re: [HACKERS] postgres fe/be protocol

> Chris Bitmead <chris(at)bitmead(dot)com> writes:
> > I inserted some debug into libpq, then I ran psql, and I noticed that
> > there are two 'Z' "Ready for query" messages sent after each query. Is
> > there a reason for that? Is it a bug?
>
> I'm pretty sure the backend sends only one 'Z' per query cycle. Are you
> watching the outgoing requests too? Maybe psql is sending an extra
> empty query. (It didn't use to do that, but maybe it does after Peter's
> recent work on it...)

Actually it used to when it first made a connection to test that it was
alive, but not afterwards. JDBC was originally based on libpq, but I
replaced the empty query with a couple of useful ones.

>
> regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Ed Loehr 2000-07-10 22:44:02 Re: Slashdot discussion
Previous Message Bruce Momjian 2000-07-10 22:41:19 Re: pg_backup symlink?