Re: Vacuum problems - Mailing list pgsql-general

From Scot Kreienkamp
Subject Re: Vacuum problems
Date
Msg-id 37752EAC00ED92488874A27A4554C2F336C088@lzbs6301.na.lzb.hq
Whole thread Raw
In response to Re: Vacuum problems  (Adrian Klaver <aklaver@comcast.net>)
List pgsql-general
Yep... dummy me.  That works.  I tried that before with the reindexdb
command, that doesn't work.  I didn't try it with the psql command.

Thanks,

Scot Kreienkamp
La-Z-Boy Inc.
skreien@la-z-boy.com

-----Original Message-----
From: Adrian Klaver [mailto:aklaver@comcast.net]
Sent: Tuesday, January 06, 2009 12:02 PM
To: Scot Kreienkamp
Cc: pgsql-general@postgresql.org; Scott Marlowe
Subject: Re: [GENERAL] Vacuum problems



----- "Scot Kreienkamp" <SKreien@la-z-boy.com> wrote:

> Thanks for the advice Scott.  I've taken out the vacuum fulls
> entirely.
> I've now got a nightly vacuum analyze as well as reindex.  I'll
> probably
> drop both to every other night.
>
> BTW, the database shrunk by 2 gigs just from reindexing last night.
> I
> expect I'll see a performance gain from actually doing reindexing
> since
> this database has never been reindexed since it was put in production
> 6
> months ago.
>
> I've got about 12 tables that get caught by the autoanalyze and about
> 6
> that get caught by autovacuum on a daily basis.  I'm not sure how
> often
> the autovacuum and autoanalyze runs on those tables.  I probably need
> to
> up the logging to find out.  I'm not worried about making it more
> aggressive yet.
>
> One other problem though... my database has a "-" in the name... when
> I
> try to run:
>
> psql -U postgres -d rms-prod -c "REINDEX SYSTEM rms-prod"

You need to quote the db name:
psql -U postgres -d rms-prod -c 'REINDEX SYSTEM "rms-prod"'

>
> I get this:
>
> ERROR:  syntax error at or near "-"
> LINE 1: REINDEX SYSTEM rms-prod
>
> The user tables run fine.  Should I reindex the system tables also?
> If
> so, how do I get around the dash in the db name?
>
> Thanks,
>
> Scot Kreienkamp
> La-Z-Boy Inc.
> skreien@la-z-boy.com
> 734-242-1444 ext 6379
>

Adrian Klaver
aklaver@comcast.net

pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Vacuum problems
Next
From: "Gurjeet Singh"
Date:
Subject: Re: [HACKERS] ERROR: failed to find conversion function from "unknown" to text