dbTalk Databases Forums  

vacuum schema

comp.databases.postgresql.general comp.databases.postgresql.general


Discuss vacuum schema in the comp.databases.postgresql.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Josh Close
 
Posts: n/a

Default vacuum schema - 10-18-2004 , 03:23 PM






Is there a way to vacuum all tables in a schema? Or will I need to
write a script to do it?

-Josh

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster


Reply With Quote
  #2  
Old   
Thomas F.O'Connell
 
Posts: n/a

Default Re: vacuum schema - 10-18-2004 , 03:35 PM






Are you looking for something different than vacuumdb?

http://www.postgresql.org/docs/7.4/s...-vacuumdb.html

-tfo

On Oct 18, 2004, at 3:23 PM, Josh Close wrote:

Quote:
Is there a way to vacuum all tables in a schema? Or will I need to
write a script to do it?

-Josh

---------------------------(end of
broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html



Reply With Quote
  #3  
Old   
Josh Close
 
Posts: n/a

Default Re: vacuum schema - 10-18-2004 , 06:02 PM



On Mon, 18 Oct 2004 15:35:53 -0500, Thomas F. O'Connell
<tfo (AT) sitening (DOT) com> wrote:
Quote:
Are you looking for something different than vacuumdb?

http://www.postgresql.org/docs/7.4/s...-vacuumdb.html

-tfo
I think so. As far as I can tell, you can either vacuum a whole db, or
individual tables. But not a whole schema.

-Josh

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster



Reply With Quote
  #4  
Old   
Thomas F.O'Connell
 
Posts: n/a

Default Re: vacuum schema - 10-19-2004 , 12:48 AM



Ah, yes. You're right.

Presumably you could use the hidden query from \dn in psql to get the
tables necessary for a script. That's the next best thing I can think
of.

-tfo

On Oct 18, 2004, at 6:02 PM, Josh Close wrote:

Quote:
On Mon, 18 Oct 2004 15:35:53 -0500, Thomas F. O'Connell
tfo (AT) sitening (DOT) com> wrote:
Are you looking for something different than vacuumdb?

http://www.postgresql.org/docs/7.4/s...-vacuumdb.html

-tfo

I think so. As far as I can tell, you can either vacuum a whole db, or
individual tables. But not a whole schema.

-Josh

---------------------------(end of
broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster



Reply With Quote
  #5  
Old   
Josh Close
 
Posts: n/a

Default Re: vacuum schema - 10-19-2004 , 12:50 PM



On Tue, 19 Oct 2004 00:48:34 -0500, Thomas F. O'Connell
<tfo (AT) sitening (DOT) com> wrote:
Quote:
Ah, yes. You're right.

Presumably you could use the hidden query from \dn in psql to get the
tables necessary for a script. That's the next best thing I can think
of.
I wrote a script to do the vacumming. I just have a config file where
you can list the tables you want vacuumed.

Can you use those tables via normal sql? It would be nice to do that via sql.

-Josh

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match



Reply With Quote
  #6  
Old   
Thomas F.O'Connell
 
Posts: n/a

Default Re: vacuum schema - 10-19-2004 , 01:21 PM



Sure. The system tables can be accessed via SQL.

I frequently use the output of psql's hidden queries to glean more
information about postgres internals for needs like yours where
postgres has the information but not the interface to accomplish a
specific task.

-tfo

On Oct 19, 2004, at 12:50 PM, Josh Close wrote:

Quote:
On Tue, 19 Oct 2004 00:48:34 -0500, Thomas F. O'Connell
tfo (AT) sitening (DOT) com> wrote:
Ah, yes. You're right.

Presumably you could use the hidden query from \dn in psql to get the
tables necessary for a script. That's the next best thing I can think
of.

I wrote a script to do the vacumming. I just have a config file where
you can list the tables you want vacuumed.

Can you use those tables via normal sql? It would be nice to do that
via sql.

-Josh

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html



Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.