Re: How to shrink database in postgresql

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: How to shrink database in postgresql
Дата
Msg-id CAFj8pRCCEREdr602XLuwsd=NE-Vfg0r1JT9hWAhU2hvwmgquKA@mail.gmail.com
обсуждение исходный текст
Ответ на How to shrink database in postgresql  (Rehan Saleem <pk_rehan@yahoo.com>)
Ответы Re: How to shrink database in postgresql
Список pgsql-sql
Hello

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

Regards

Pavel Stehule

2012/2/29 Rehan Saleem <pk_rehan@yahoo.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
>


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