Re: pgsql_tmp consuming all inodes

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql_tmp consuming all inodes
Дата
Msg-id 14360.1416501192@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pgsql_tmp consuming all inodes  ("Nestor A. Diaz" <nestor@tiendalinux.com>)
Список pgsql-general
"Nestor A. Diaz" <nestor@tiendalinux.com> writes:
> I have a couple of databases running on a cluster, and two of them have
> been experiencing the following behavior since installed yesterday:
> They create a lot of files under directory "pgsql_tmp" up to the point
> they consume all the inodes, when I do a 'df -i' I found the partition
> assigned to the tablespace where the database is located is out of inodes.

I'd bet money that what you've got is a broken query, ie something that's
trying to compute a ridiculously large join.  PG will faithfully try to
do it, until it runs out of disk space to hold the intermediate result.
It's not exactly hard to do that in SQL --- forget a join condition,
say, and suddenly you've got a Cartesian-product intermediate result.

> On the other side our experience with 8.4 have been good, except that
> today the database goes in recovery mode due to an out of memory error:

Sounds a bit like the same problem in a different guise.

            regards, tom lane


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

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: [sfpug] Linuxfest 2015 Call for Papers
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: [sfpug] Linuxfest 2015 Call for Papers