pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter T. Breuer <ptb@inv.it.uc3m.es>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-performance@postgresql.org
Subject: Re: general PG network slowness (possible cure) (repost)
Date: Sat, 26 May 2007 09:07:26 +0200 (MET DST)
Message-ID: <200705260707.l4Q77QO09110@inv.it.uc3m.es> (raw)
In-Reply-To: <28399.1180138753@sss.pgh.pa.us>

"Also sprach Tom Lane:"
> "Peter T. Breuer" <ptb@inv.it.uc3m.es> writes:
> > But can I prepare a DECLARE x BINARY CURSOR FOR SELECT ...  statement?
> > The manual seems to say no.
> 
> No, you just prepare the SELECT.  At the protocol level, DECLARE CURSOR
> is a tad useless.  You can still fetch the data in binary if you want...

How?  It's a 7.4 server (or may be, more generally) and declare binary
cursor is the only way I know to get binary data off it. AFAIR the only
other way works only for an 8.* server and consists of sending the query
with an annotation that a binary reply is expected.

Peter



view thread (22+ messages)  latest in thread

Message-ID: <200705260707.l4Q77QO09110@inv.it.uc3m.es>
Permalink:  ../200705260707.l4Q77QO09110@inv.it.uc3m.es/
Also on:    postgresql.org/message-id/200705260707.l4Q77QO09110@inv.it.uc3m.es

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: ptb@inv.it.uc3m.es, tgl@sss.pgh.pa.us
  Subject: Re: general PG network slowness (possible cure) (repost)
  In-Reply-To: <200705260707.l4Q77QO09110@inv.it.uc3m.es>
  References: <28399.1180138753@sss.pgh.pa.us> <200705260707.l4Q77QO09110@inv.it.uc3m.es>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox