Re: Database size stays constant but disk space keeps shrinking -- postgres 9.1

Поиск
Список
Период
Сортировка
От Steve Crawford
Тема Re: Database size stays constant but disk space keeps shrinking -- postgres 9.1
Дата
Msg-id 5064D7BC.1000709@pinpointresearch.com
обсуждение исходный текст
Ответ на Database size stays constant but disk space keeps shrinking -- postgres 9.1  (Greg Williamson <gwilliamson39@yahoo.com>)
Ответы Re: Database size stays constant but disk space keeps shrinking -- postgres 9.1  (Greg Williamson <gwilliamson39@yahoo.com>)
Список pgsql-admin
On 09/27/2012 03:05 PM, Greg Williamson wrote:
> Dear list,
>
> I have a postgres database, 9.1.3, which shows a fairly constant amount of space used by postgres, but total disk
spacekees shrinking. 
> If I restart postgres the space on my file system returns.
>
> This cluster is replicated to another; that custer does not show this problem.
>
> There are two main databases on this cluster, both using logging. One is used to accumulate some stats on our systen.
>
> The other is a slimmed-down version of our production database, which gets recreated hourly by a shell script which
pullsdata from remote servers, does a pg_dump of the resulting 3 gig database, and then drops it. 
>
> I posted a message about ths a few days and got no responses. I am hoping for better luck this time as this is a
seriousissue,not relayed t vacuuming or routine admin tasks which may or may not be happening. 
>
>
No answer but some questions.

How are you determining space used by PostgreSQL? From the OS (i.e. du
on PostgreSQL's directories or similar) or from PostgreSQL itself (pg_
system tables, \dt+, etc.)?

What method of replication are you using?

Do you have any indication if the issue is only related to which
database is causing the issue? Can you stop activity on one of them and
see if the problem persists?

Have you checked to see if there are any processes that have open
handles to deleted files (lsof -X | grep deleted). Deleted files won't
show up in du but won't release their disk space until the process
exits. Perhaps a script or scripts, even one of your hourly ones, that
terminate when the server restarts? You could save the output of lsof
and ps immediately before and after a restart and compare them.

Let us know what you find.

Cheers,
Steve




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

Предыдущее
От: Greg Williamson
Дата:
Сообщение: Database size stays constant but disk space keeps shrinking -- postgres 9.1
Следующее
От: Micky Gough
Дата:
Сообщение: Re: Database size stays constant but disk space keeps shrinking -- postgres 9.1