Re: INSERT WHERE NOT EXISTS

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: INSERT WHERE NOT EXISTS
Дата
Msg-id 15828.1056776639@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: INSERT WHERE NOT EXISTS  (Lincoln Yeoh <lyeoh@pop.jaring.my>)
Список pgsql-general
Lincoln Yeoh <lyeoh@pop.jaring.my> writes:
> You can use limit. Postgresql is smart enough to stop once it has the
> necessary rows[1].
> [1] Or was it necessary rows + 1? Agh, something wrong with my memory.

7.4 stops at exactly the LIMIT row count.  Several prior releases fetch
one more row internally ... which is hardly noticeable in most contexts,
but sure enough we got complaints ...

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Redhat's "enhancements" to PG
Следующее
От: "Maksim Likharev"
Дата:
Сообщение: tweaking PG and "machine health".