SunQuest
           PostgreSQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesPostgreSQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old March 28th, 2008, 04:38 PM
saikk saikk is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2008
Posts: 17 saikk Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 1 h 59 m 6 sec
Reputation Power: 0
Equivalent of 'SHUTDOWN COMPACT' in postgres

In hsql, 'SHUTDOWN COMPACT' means :
It writes out a new .script file which contains the data for all the tables, including CACHED and TEXT tables. It then deletes the existing text table files and the .data file before rewriting them. After this, it backs up the .data file in the same way as normal SHUTDOWN. This operation shrinks all files to the minimum size.

What is the command in postgres that does the same ?
(Will SIGTERM and VACCUM be of any use?)

Thanks.

Reply With Quote
  #2  
Old March 28th, 2008, 05:03 PM
shammat shammat is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Oct 2003
Location: Munich, Bavaria
Posts: 970 shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 17 h 38 m 33 sec
Reputation Power: 57
There is no such concept as COMPACT in Postgres.

Simply shut down the server.

Reply With Quote
  #3  
Old March 28th, 2008, 06:28 PM
saikk saikk is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2008
Posts: 17 saikk Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 1 h 59 m 6 sec
Reputation Power: 0
Equivalent of 'SHUTDOWN COMPACT' in postgres

Thanks.

Reply With Quote
  #4  
Old March 28th, 2008, 06:44 PM
saikk saikk is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2008
Posts: 17 saikk Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 1 h 59 m 6 sec
Reputation Power: 0
Equivalent of 'SHUTDoWN COMPACT' in postgres

Shammat, what is the sql statement to shutdown the postgres server?

generally, on the command line, i shut it down using : psql stop

But I need to replace the 'SHUTDOWN COMPACT' in hsql with a statement for Postgres.

thanks.

Reply With Quote
  #5  
Old April 5th, 2008, 11:53 AM
shammat shammat is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Oct 2003
Location: Munich, Bavaria
Posts: 970 shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 17 h 38 m 33 sec
Reputation Power: 57
Quote:
Originally Posted by saikk
Shammat, what is the sql statement to shutdown the postgres server?

generally, on the command line, i shut it down using : psql stop

But I need to replace the 'SHUTDOWN COMPACT' in hsql with a statement for Postgres.

thanks.
There is no SQL statement for Postgres. You can only stop in from the commandline

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesPostgreSQL Help > Equivalent of 'SHUTDOWN COMPACT' in postgres


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway