Inefficiency in InitIndexFreeSpaceMap

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Heikki Linnakangas <heikki(at)enterprisedb(dot)com>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Inefficiency in InitIndexFreeSpaceMap
Date: 2008-11-06 00:39:58
Message-ID: 5473.1225931998@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Why is InitIndexFreeSpaceMap coded to test for the FSM file already
existing? AFAICS it cannot yet exist and it should be an error anyway
if it does. The smgrexists probe is hardly free, so losing it would be
good.

regards, tom lane

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bernd Helmle 2008-11-06 01:09:07 Re: Patch for ALTER DATABASE WITH TABLESPACE
Previous Message Tom Lane 2008-11-06 00:20:07 Re: Patch for ALTER DATABASE WITH TABLESPACE