pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ralph Mason <ralph.mason@telogis.com>
To: pgsql-performance@postgresql.org
Subject: Binary Refcursor possible?
Date: Wed, 23 Nov 2005 16:39:05 +1300
Message-ID: <4383E459.2070906@telogis.com> (raw)

Hi,

I am trying to get better performance reading data from postgres, so I 
would like to return the data as binary rather than text as parsing it 
is taking a considerable amount of processor.

However I can't figure out how to do that! I have functions like.

function my_func(ret refcursor) returns refcursor AS

$$

BEGIN
OPEN $1 for select * from table;
return $1
END;

$$ language 'plpgsql'

There are queried using

SELECT my_func( 'ret'::refcursor); FETCH ALL FROM ret;

Is there any way I can say make ret a binary cursor?

Thanks
Ralph





view thread (3+ messages)  latest in thread

Message-ID: <4383E459.2070906@telogis.com>
Permalink:  ../4383E459.2070906@telogis.com/
Also on:    postgresql.org/message-id/4383E459.2070906@telogis.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: ralph.mason@telogis.com
  Subject: Re: Binary Refcursor possible?
  In-Reply-To: <4383E459.2070906@telogis.com>

* 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