pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Herouth Maoz <herouth@oumail.openu.ac.il>
To: pierre@desertmoon.com
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] MINUS and slow 'not in'
Date: Tue, 24 Nov 1998 17:08:28 +0200
Message-ID: <l03110702b2807b983599@[147.233.159.109]> (raw)
In-Reply-To: <19981124145756.28759.qmail@desertmoon.com>
References: <l03110702b28025746cbe@[147.233.159.109]>

At 16:57 +0200 on 24/11/98, pierre@desertmoon.com wrote:


> I've tried...
>
> insert into B
> fetch 2000 from fubar;
>
> Which just gives a parser error. There is very little documentation on
> cursors written up that I can find. I've even searched the email archives.
> Ideas?

Well, this usage of a cursor is not supported, as far as I know. However,
if you have 6.4 (do you?), you can use SET QUERY_LIMIT to limit the number
of rows fetched from the SELECT. I suppose you can set it back after you do
the INSERT.

Herouth

--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma





view thread (9+ messages)  latest in thread

Message-ID: <l03110702b2807b983599@[147.233.159.109]>
Permalink:  ../l03110702b2807b983599@%5B147.233.159.109%5D/
Also on:    postgresql.org/message-id/l03110702b2807b983599@[147.233.159.109]

 · 

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: herouth@oumail.openu.ac.il, pierre@desertmoon.com
  Subject: Re: [SQL] MINUS and slow 'not in'
  In-Reply-To: <l03110702b2807b983599@[147.233.159.109]>
  References: <l03110702b28025746cbe@[147.233.159.109]> <l03110702b2807b983599@[147.233.159.109]>

* 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