From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Denis Perchine <dyp(at)perchine(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Problem specifying limit in select inside insert. |
Date: | 2000-10-10 16:21:34 |
Message-ID: | 19470.971194894@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
Denis Perchine <dyp(at)perchine(dot)com> writes:
> insert into address (cid,email) select distinct '49'::int,member.email from
> member imit 1 ;
INSERT ... SELECT ... LIMIT doesn't work. In existing releases the
LIMIT clause is just dropped on the floor by the parser :-(. In current
CVS sources you get
ERROR: LIMIT is not supported in subselects
which at least lets you know you have a problem. I have a to-do item
to see if this can be made to work right, but it's not very high
priority. I think the correct fix is to pull LIMIT handling out of
ExecutorRun and make it be handled by a new plan node type, but that'll
probably take more time than I can spare before 7.1 ...
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2000-10-10 16:26:28 | Re: Is there any caveats on toasted fields? |
Previous Message | Tom Lane | 2000-10-10 16:16:06 | Re: Delphi PostgreSQL Forum |
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2000-10-10 16:46:37 | Re: [HACKERS] My new job |
Previous Message | Marc G. Fournier | 2000-10-10 16:09:34 | Re: My new job |