Re: Alter Table/Indexing

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Zdravko Balorda <zdravko(dot)balorda(at)siix(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Alter Table/Indexing
Date: 2009-03-24 14:35:31
Message-ID: 27189.1237905331@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Zdravko Balorda <zdravko(dot)balorda(at)siix(dot)com> writes:
> I wonder does ATER TABLE TYPE, SET, depends on indexes, like INSERT does
> in a sense it may be faster to drop and recreate index than sorting
> after every row inserted.

ALTER TABLE TYPE already rebuilds the indexes; you won't make the
overall process any faster by doing that by hand.

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Peter Willis 2009-03-24 15:10:01 Proper entry of polygon type data
Previous Message Jasen Betts 2009-03-24 09:39:30 Re: SQL to Check whether "AN HOUR PERIOD" is between start and end timestamps