Re: [HACKERS] insert using select with limit

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] insert using select with limit
Дата
Msg-id 20558.944840472@sss.pgh.pa.us
обсуждение исходный текст
Ответ на insert using select with limit  (Theo Kramer <theo@flame.co.za>)
Список pgsql-hackers
Theo Kramer <theo@flame.co.za> writes:
> Just noticed that limit is ignored when using a select to insert
> into a table.
> Eg. insert into mytable (f1, f2) select f1, f2 from myothertable limit 10;
> selects all records from myothertable.

Ugh, you're right.  Not sure if this will be easily fixable or not.
Worst case, the fix might have to wait for the long-planned query tree
redesign.

Or it might be a one-liner.  Will look into it.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Hiroshi Inoue"
Дата:
Сообщение: RE: [HACKERS] Volunteer: Large Tuples / Tuple chaining
Следующее
От: Thomas Lockhart
Дата:
Сообщение: Re: [HACKERS] 6.6 release