From: | pierre(at)desertmoon(dot)com |
---|---|
To: | herouth(at)oumail(dot)openu(dot)ac(dot)il (Herouth Maoz) |
Cc: | pgsql-sql(at)postgreSQL(dot)org |
Subject: | Re: [SQL] MINUS and slow 'not in' |
Date: | 1998-11-24 15:31:01 |
Message-ID: | 19981124153101.774.qmail@desertmoon.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-sql |
>
> At 16:57 +0200 on 24/11/98, pierre(at)desertmoon(dot)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.
>
Yeah I've got 6.4. I tried:
set query_limit to 2000;
and got:
ERROR: parser: parse error at or near "2000"
Ideas?
-=pierre
From | Date | Subject | |
---|---|---|---|
Next Message | Herouth Maoz | 1998-11-24 15:32:59 | Re: [SQL] MINUS and slow 'not in' |
Previous Message | Bruce Momjian | 1998-11-24 15:22:39 | Re: [HACKERS] Parser bug? |
From | Date | Subject | |
---|---|---|---|
Next Message | Herouth Maoz | 1998-11-24 15:32:59 | Re: [SQL] MINUS and slow 'not in' |
Previous Message | Herouth Maoz | 1998-11-24 15:08:28 | Re: [SQL] MINUS and slow 'not in' |