Re: Disk filled-up issue after a lot of inserts and drop schema

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Pietro Pugni <pietro.pugni@xxxxxxxxx> writes:
> Iâ??ve jsut discovered the issue.. I set "logging_collector=offâ?? in the previous email but didnâ??t comment the other log* parameters, so Postgres was logging every single INSERT! This was caused the disk to fill up.

Ah.

> The strange issue is that the log file didnâ??t exists when the disk filled up. I personally looked for it but it wasnâ??t where it should have been ( /var/log/postgesql/ ), so I canâ??t exactly confirm that the issue was the log file getting bigger and bigger.

Seems like the log file must have gotten unlinked while still active,
or at least, *something* had an open reference to it.  It's hard to
speculate about the cause for that without more info about how you've got
the logging set up.  (Are you using the log collector?  Are you rotating
logs?)  But I seriously doubt it represents a Postgres bug.  Unlike the
situation with data files, it's very hard to see how PG could be holding
onto a reference to an unused log file.  It only ever writes to one log
file at a time.

			regards, tom lane


-- 
Sent via pgsql-performance mailing list (pgsql-performance@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance



[Postgresql General]     [Postgresql PHP]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Yosemite]

  Powered by Linux