pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daniel Péder <dpeder@infoset.cz>
To: 'pgsql-sql@postgresql.org' <pgsql-sql@postgresql.org>
Cc: 'pgsql-hackers@postgres.org' <pgsql-hackers@postgres.org>
Subject: extended cursor-FETCH usage
Date: Wed, 29 Sep 1999 14:26:11 +0100
Message-ID: <01BF0A86.94B44200@Dan> (raw)

is there any possibility to use output from FETCH directly to -for example- creating a new table?
Something like:

FETCH 10 FROM MyCursor 	INTO	 TEMP TABLE MyTempTable ( x int4, y text );

Why do I need it?

It could be sometimes faster/much effective to do this first and then do JOIN operations on table/dataset reduced this way.

--
Dan Peder
dpeder@infoset.cz




Message-ID: <01BF0A86.94B44200@Dan>
Permalink:  ../01BF0A86.94B44200@Dan/
Also on:    postgresql.org/message-id/01BF0A86.94B44200@Dan

 · 

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-sql@postgresql.org
  Cc: dpeder@infoset.cz, pgsql-hackers@postgres.org
  Subject: Re: extended cursor-FETCH usage
  In-Reply-To: <01BF0A86.94B44200@Dan>
  References: <01BF0A86.94B44200@Dan>

* 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