Re: Weird disk/table space consumption problem

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Weird disk/table space consumption problem
Дата
Msg-id 525.1247353977@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Weird disk/table space consumption problem  (Dirk Riehle <dirk@riehle.org>)
Ответы Re: Weird disk/table space consumption problem
Список pgsql-general
Dirk Riehle <dirk@riehle.org> writes:
> For one analysis, I created a table of about 15 columns, and then ran an
> insert with a subselect on the table, where the select was drawing from
> three other tables, merging over ids. One of the other tables has about
> 60M rows.

> The insert ran for about 18h before running out of disk space. Before
> the query, there had been about 1TB free on the disk.

> After the insert query failed, the disk space was not made available
> again; PostgreSQL did not free it up (or would not free it up quickly).

What that part sounds like is you mistyped the insert such that it
was inserting a huge number of rows.  It's not too hard to do if
you get the join condition wrong --- what you meant to be a sane
join can easily turn into a Cartesian product.  In theory vacuum
could reclaim the space eventually, but it'd take awhile.

> I rebooted soon thereafter.

> During boot, fsck (must have been fsck) gave me tons of freeing up inode
> messages.

And this part is a filesystem bug; it cannot possibly be Postgres'
fault that the filesystem got corrupted.

            regards, tom lane

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

Предыдущее
От: Scott Marlowe
Дата:
Сообщение: Re: Weird disk/table space consumption problem
Следующее
От: Aaron Glenn
Дата:
Сообщение: Re: [lapug] LAPUG Social - Tuesday Evening July 14