Re: FileSize limit not handled.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: FileSize limit not handled.
Дата
Msg-id 16969.1048524406@sss.pgh.pa.us
обсуждение исходный текст
Ответ на FileSize limit not handled.  ("Frédéric SURLEAU" <frederic.surleau@atosorigin.com>)
Список pgsql-bugs
"Frédéric SURLEAU" <frederic.surleau@atosorigin.com> writes:
> On this system, the file size is limited using ulimit.=0D
> =0D
> When the limit is reached for a database file, Postgres does THIS :=0D
> =0D
> LOG:  server process (pid 4820) was terminated by signal 25=0D
> LOG:  terminating any other active server processes=0D

It would probably work to just ignore SIGXFSZ on systems that have it.
That would change the behavior into an error return from write(), which
we already know what to do with.

Note however that running PG under a filesize ulimit is a rather foolish
thing to do.  Running out of space for an ordinary table is one thing,
but running out of space for pg_xlog or pg_clog will induce a system
panic not materially different from the above.

            regards, tom lane

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

Предыдущее
От: "Frédéric SURLEAU"
Дата:
Сообщение: FileSize limit not handled.
Следующее
От: pgsql-bugs@postgresql.org
Дата:
Сообщение: Bug #917: SERVICE DENIAL ON XP