Re: Vacuum problems

From: "Scot Kreienkamp" <SKreien(at)la-z-boy(dot)com>
To: "Adrian Klaver" <aklaver(at)comcast(dot)net>
Cc: <pgsql-general(at)postgresql(dot)org>, "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>
Subject: Re: Vacuum problems
Date: 2009-01-06 17:20:46
Message-ID: 37752EAC00ED92488874A27A4554C2F336C088@lzbs6301.na.lzb.hq
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)la-z-boy(dot)com

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

----- "Scot Kreienkamp" <SKreien(at)la-z-boy(dot)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(at)la-z-boy(dot)com
> 734-242-1444 ext 6379
>

Adrian Klaver
aklaver(at)comcast(dot)net

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Gurjeet Singh 2009-01-06 17:43:59 Re: [HACKERS] ERROR: failed to find conversion function from "unknown" to text
Previous Message Adrian Klaver 2009-01-06 17:01:45 Re: Vacuum problems