pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
REINDEX or DROP and CREATE ?
2+ messages / 2 participants
[nested] [flat]

* REINDEX or DROP and CREATE ?
@ 2003-08-17 22:33  Gaetano Mendola <mendola@bigfoot.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Gaetano Mendola @ 2003-08-17 22:33 UTC (permalink / raw)
  To: pgsql-admin

Hi all,
what the difference ( apart a windows without index ) between
REINDEX a TABLE 
or
DROP each index and CREATE it again?

I'm worried about the type of locks involved.


Regards
Gaetano Mendola




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: REINDEX or DROP and CREATE ?
@ 2003-08-17 23:54  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Gaetano Mendola <mendola@bigfoot.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2003-08-17 23:54 UTC (permalink / raw)
  To: Gaetano Mendola <mendola@bigfoot.com>; +Cc: pgsql-admin

"Gaetano Mendola" <mendola@bigfoot.com> writes:
> what the difference ( apart a windows without index ) between
> REINDEX a TABLE 
> or DROP each index and CREATE it again?

Not much.

> I'm worried about the type of locks involved.

I'm pretty sure either course will take an exclusive lock on the table.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2003-08-17 23:54 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-08-17 22:33 REINDEX or DROP and CREATE ? Gaetano Mendola <mendola@bigfoot.com>
2003-08-17 23:54 ` Tom Lane <tgl@sss.pgh.pa.us>

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