Re: "truncate all"?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: "truncate all"?
Дата
Msg-id 8824.1061095326@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: "truncate all"?  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
Ответы Re: "truncate all"?  (Robert Treat <xzilla@users.sourceforge.net>)
Список pgsql-hackers
Stephan Szabo <sszabo@megazone.bigpanda.com> writes:
> On Sun, 17 Aug 2003, Bruce Momjian wrote:
>> Is this a bug?

> I don't think so.  I'd say this is the expected behavior. Part of the
> point is that it fails without checking for matching rows.

To do anything else, you'd have to solve some locking and/or
race-condition problems: rows could be inserted in the other table
while the TRUNCATE runs.
        regards, tom lane


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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: "truncate all"?
Следующее
От: Joe Conway
Дата:
Сообщение: char() datatype looses strings of all spaces