| От | Josh Berkus |
|---|---|
| Тема | Re: DELETE with LIMIT (or my first hack) |
| Дата | |
| Msg-id | 4CF68ECF.5020508@agliodbs.com обсуждение исходный текст |
| Ответ на | Re: DELETE with LIMIT (or my first hack) (Andrew Dunstan <andrew@dunslane.net>) |
| Список | pgsql-hackers |
> We need a convincing use case for it. So far the only one that's seemed
> at all convincing to me is the one about deleting in batches. But that
> might be enough.
Queueing. If logless tables are in 9.1, then using PostgreSQL as the
backend for a queue becomes a sensible thing to do. And what is a
"pop" off a queue other than:
DELETE FROM my_queue ORDER BY age LIMIT 1;
For this reason, I think accepting a good patch for DELETE would be
worthwhile even if we don't have UPDATE yet.
-- -- Josh Berkus PostgreSQL Experts Inc.
http://www.pgexperts.com
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера