Re: autocommit vs TRUNCATE et al

Поиск
Список
Период
Сортировка
От Mike Mascari
Тема Re: autocommit vs TRUNCATE et al
Дата
Msg-id 3DB0BE6B.3020806@mascari.com
обсуждение исходный текст
Ответ на Re: autocommit vs TRUNCATE et al  (Gavin Sherry <swm@linuxworld.com.au>)
Ответы Re: autocommit vs TRUNCATE et al  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: autocommit vs TRUNCATE et al  (Gavin Sherry <swm@linuxworld.com.au>)
Список pgsql-hackers
Gavin Sherry wrote:
> On Fri, 18 Oct 2002, Tom Lane wrote:
> 
> 
>>Anyone see a way out of this catch-22?  If not, which is the least
>>bad alternative?
> 
> 
> Ultimately, fix TRUNCATE to be transaction safe. This is non-trivial,
> I know :-).
> 
> Regardless, the first option seems the less of the two evils.

Even though TRUNCATE was modeled after Oracle's TRUNCATE and 
Oracle's TRUNCATE commits the running tx, truncates the 
relation, and starts a new tx, regardless of whether or not 
TRUNCATE is the first statement of the tx?

Mike Mascari
mascarm@mascari.com



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

Предыдущее
От: Gavin Sherry
Дата:
Сообщение: Re: autocommit vs TRUNCATE et al
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: autocommit vs TRUNCATE et al