Re: [GENERAL] Unsupported frontend protocol error?

From: "Oliver Elphick" <olly(at)lfix(dot)co(dot)uk>
To: Alvaro Castillo <acastill(at)turing(dot)scs(dot)carleton(dot)ca>
Cc: "pgsql-general(at)hub(dot)org" <pgsql-general(at)hub(dot)org>
Subject: Re: [GENERAL] Unsupported frontend protocol error?
Date: 1998-12-29 11:59:40
Message-ID: 199812291159.LAA11409@linda.lfix.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Alvaro Castillo wrote:

>When I try to use postgres 6.4 I get this error:
>
>Connection to database 'mydb' failed.
>Unsupported frontend protocol.

The error comes from the postmaster:
/* Check we can handle the protocol the frontend is using. */

if (PG_PROTOCOL_MAJOR(port->proto) < PG_PROTOCOL_MAJOR(PG_PROTOCOL_EARLIEST) ||
PG_PROTOCOL_MAJOR(port->proto) > PG_PROTOCOL_MAJOR(PG_PROTOCOL_LATEST) ||
(PG_PROTOCOL_MAJOR(port->proto) == PG_PROTOCOL_MAJOR(PG_PROTOCOL_LATEST) &&
PG_PROTOCOL_MINOR(port->proto) > PG_PROTOCOL_MINOR(PG_PROTOCOL_LATEST)))
{
PacketSendError(&port->pktInfo, "Unsupported frontend protocol.");
return STATUS_OK; /* don't close the connection yet */
}

Since 6.4 can cope with earlier protocols (
libpq/pqcomm.h:#define PG_PROTOCOL_EARLIEST PG_PROTOCOL(0,0)
libpq/pqcomm.h:#define PG_PROTOCOL_LATEST PG_PROTOCOL(2,0)
)
it seems likely that you are using an earlier postmaster with a later pgsql.

--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight http://www.lfix.co.uk/oliver
PGP key from public servers; key ID 32B8FAA1
========================================
"But I say unto you, That every idle word that men
shall speak, they shall give account thereof in the
day of judgment." Matthew 12:36

Browse pgsql-general by date

  From Date Subject
Next Message Richi Plana 1998-12-29 15:00:30 When does PQstatus() update?
Previous Message Peter T Mount 1998-12-29 10:37:24 Re: [GENERAL] Is there a script for cleanly shutting down