From: Rehan Saleem <pk_rehan@yahoo.com>
To: pgsql-sql@postgresql.org <pgsql-sql@postgresql.org>
Subject: How to shrink database in postgresql
Date: Wed, 29 Feb 2012 01:49:32 -0800 (PST)
Message-ID: <1330508972.71062.YahooMailNeo@web121601.mail.ne1.yahoo.com> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: pk_rehan@yahoo.com
Subject: Re: How to shrink database in postgresql
In-Reply-To: <1330508972.71062.YahooMailNeo@web121601.mail.ne1.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox