Re: wrong protocol sequence?

From: John DeSoi <desoi(at)pgedit(dot)com>
To: Андрей <andyk(at)softwarium(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: wrong protocol sequence?
Date: 2005-09-22 14:42:02
Message-ID: B2D41C72-DCD7-49F5-B788-A08915F670C0@pgedit.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Sep 22, 2005, at 10:11 AM, Андрей wrote:

> I'm sending such messages to server in native postgresql
> protocol: 'Parse' -> 'Describe' -> 'Sync' (get: 'Parse Complete'
> and 'Ready For Query' messages back).
> But when the sequence became: 'Parse' -> 'Sync' (get: 'Parse
> Complete' and 'Ready For Query' messages back), little pause,
> 'Describe' -> 'Sync' - server is crashing (error = memory can't be
> 'read')!
>
> My query is as simple as possible 'select * from table_name'.
> What am I doing wrong?

I think I recall having some problems around this also. But I don't
think there is any reason to need Parse -> Sync anyway. If you just
want to prepare, use Parse -> Describe -> Sync. For executing, Parse
(if not already parsed) -> Bind -> Describe -> Execute -> Sync.

John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message han.holl 2005-09-22 14:44:58 Redhat 9 RPM dependency problem
Previous Message Андрей 2005-09-22 14:11:36 wrong protocol sequence?