Re: Truncate width Postgres 7.3

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Truncate width Postgres 7.3
Дата
Msg-id 20030124012845.GA19950@wolff.to
обсуждение исходный текст
Ответ на Truncate width Postgres 7.3  (e.pellegrom@lectric.nl (eric))
Список pgsql-general
On Thu, Jan 23, 2003 at 08:32:34 -0800,
  eric <e.pellegrom@lectric.nl> wrote:
> Hi,
>
> A change in this version is:
> "Disallow TRUNCATE on tables that are involved in referential
> constraints (Rod)"
>
> but i've a table witdh a many of referential constraints, what is now
> the best way to empy a table?

The simplest way is:
delete from table-name;

If you have a very large table this might be to slow.

Another option would be to drop the contraints and then truncate the
table.

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

Предыдущее
От: "Josh Berkus"
Дата:
Сообщение: Compiling 7.2.3 on RH 8.0
Следующее
От: "Magnus Naeslund(f)"
Дата:
Сообщение: Re: Inherited tables and NOT NULL (pg 7.2.1)