From: Stephen Frost <sfrost@snowman.net>
To: david drummard <vijayspam@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: performance question related to pgsql
Date: Fri, 10 Feb 2006 19:04:27 -0500
Message-ID: <20060211000427.GI4474@ns.snowman.net> (raw)
In-Reply-To: <9c89e2490602101326m60ce0930y9446cef99c45855e@mail.gmail.com>
References: <9c89e2490602101241i6a182491l53478521f15f7f8d@mail.gmail.com>
<20060210204653.GH4474@ns.snowman.net>
<9c89e2490602101326m60ce0930y9446cef99c45855e@mail.gmail.com>
* david drummard (vijayspam@gmail.com) wrote:
> thanks very much for the response. Are there any special commands to analyze
> the index before using the table. If i rename the table, will the indexes
> still stay with the table ( i hope so).
You want to run 'analyze <tablename>' after you've created the index.
Renaming the table will retain the indexes (and should retain everything
else, analyze statistics, etc). The only issue you might need to be
careful about is that renaming the table might not rename the indexes,
in which case you might get errors when you try to create the new
indexes about an index with that name already existing.
Just be sure to test your scripts out w/ empty tables to make sure
everything in the rotation works correctly so that when you add the data
it all works correctly.
By the way, there's a Postgres mailing list dedicated to Performance
issues. These questions would probably be more appropriate there.
Enjoy,
Stephen
Attachments:
signature.asc (application/pgp-signature, 188B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: sfrost@snowman.net, vijayspam@gmail.com
Subject: Re: performance question related to pgsql
In-Reply-To: <20060211000427.GI4474@ns.snowman.net>
References: <9c89e2490602101241i6a182491l53478521f15f7f8d@mail.gmail.com> <20060210204653.GH4474@ns.snowman.net> <9c89e2490602101326m60ce0930y9446cef99c45855e@mail.gmail.com> <20060211000427.GI4474@ns.snowman.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox