Re: An idle thought

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: An idle thought
Дата
Msg-id 9742.1268754926@sss.pgh.pa.us
обсуждение исходный текст
Ответ на An idle thought  (Greg Stark <stark@mit.edu>)
Список pgsql-hackers
Greg Stark <stark@mit.edu> writes:
> However then I started thinking about this case and wondered if it
> wouldn't be possible to optimize. One of the suggested optimizations
> was to look at using TRUNCATE. But I wonder why it's necessary to use
> a dedicated command. Shouldn't it be possible for the system to notice
> this situation and do effectively the same thing itself?

Not unless you'd like DELETE to always acquire exclusive lock...

> There are a couple problems with the way I've described this idea
> here.

Precisely because of the lack of lock.
        regards, tom lane


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

Предыдущее
От: Greg Stark
Дата:
Сообщение: An idle thought
Следующее
От: Domenico Rotiroti
Дата:
Сообщение: Re: [RFC] Comments on PostPic project - Repost