| От | Tom Lane |
|---|---|
| Тема | Re: Problem specifying limit in select inside insert. |
| Дата | |
| Msg-id | 19470.971194894@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Problem specifying limit in select inside insert. (Denis Perchine <dyp@perchine.com>) |
| Список | pgsql-general |
Denis Perchine <dyp@perchine.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
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера