REINDEX or DROP and CREATE ?
REINDEX or DROP and CREATE ?
От:
"Gaetano Mendola" <mendola@bigfoot.com>
Дата:
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
Re: REINDEX or DROP and CREATE ?
От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
"Gaetano Mendola" 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