Re: How to shrink database in postgresql

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Rehan Saleem <pk_rehan(at)yahoo(dot)com>
Cc: "pgsql-sql(at)postgresql(dot)org" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: How to shrink database in postgresql
Date: 2012-02-29 09:56:08
Message-ID: CAFj8pRCCEREdr602XLuwsd=NE-Vfg0r1JT9hWAhU2hvwmgquKA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hello

the most similar tool in pg is "VACUUM FULL" statemet;

Regards

Pavel Stehule

2012/2/29 Rehan Saleem <pk_rehan(at)yahoo(dot)com>:
> hi ,
> how can i shrink database in postgresql here is a MS-SQL store procedure
> which shrinks the database. how same task can be achieved in postgresql.
>
> ALTER PROCEDURE [dbo].[sp_CleanUpDB]
> AS
> declare @db nvarchar(50)
> select @db = db_name()
> DBCC SHRINKDATABASE (@db, 10)
>
> thanks
>

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Marcin Krawczyk 2012-02-29 10:04:03 Re: custom_variable_classes in 9.1
Previous Message Rehan Saleem 2012-02-29 09:49:32 How to shrink database in postgresql