Re: Unlogged tables cannot be truncated twice

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Unlogged tables cannot be truncated twice
Дата
Msg-id 1306790274-sup-6596@alvh.no-ip.org
обсуждение исходный текст
Ответ на Unlogged tables cannot be truncated twice  (Greg Sabino Mullane <greg@endpoint.com>)
Ответы Re: Unlogged tables cannot be truncated twice  (Andres Freund <andres@anarazel.de>)
Список pgsql-bugs
Excerpts from Greg Sabino Mullane's message of lun may 30 12:00:43 -0400 2011:
> Wow, this one took a bit to narrow down. Here's the failing case:
>
> # create unlogged table foo (a text);
> CREATE TABLE
> # begin;
> BEGIN
> #* truncate table foo;
> TRUNCATE TABLE
> #* truncate table foo;
> ERROR:  could not create file "base/19131/19183_init": File exists
>
> Very reproducible. The column types matter: if the only column
> is an INT, for example, the problem does not occur.

So 19183 is the toast table OID?

--
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

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

Предыдущее
От: Greg Sabino Mullane
Дата:
Сообщение: Re: Failed pgbench: setrandom invalid maximum number 0
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Unlogged tables cannot be truncated twice