From: | Mark Kirkwood <markir(at)paradise(dot)net(dot)nz> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Tatsuo Ishii <ishii(at)sraoss(dot)co(dot)jp>, alvherre(at)commandprompt(dot)com, peter_e(at)gmx(dot)net, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: pg_freespacemap question |
Date: | 2006-03-07 23:31:36 |
Message-ID: | 440E17D8.2030108@paradise.net.nz |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Tom Lane wrote:
> Tatsuo Ishii <ishii(at)sraoss(dot)co(dot)jp> writes:
>
>>>Peter Eisentraut wrote:
>>>I have another question -- why is the view showing relfilenode and
>>>reltablespace? I imagine it should be showing the relation Oid instead.
>
>
>>I guess that's because FSM keeps those info, not relation oid.
>
>
> Right, which is correct because free space is associated with physical
> files not logical relations. (TRUNCATE, CLUSTER, etc will completely
> change the freespace situation for a rel, but they don't change its OID.)
>
> I do agree with the comment that the column order seems nonintuitive;
> I'd expect database/tablespace/relfilenode/blocknumber, or possibly
> tablespace first. The names used for the columns could do with
> reconsideration. And I don't see the point of the blockid column at
> all.
Tom - agreed, I'll look at making these changes too!
Cheers
Mark
From | Date | Subject | |
---|---|---|---|
Next Message | Tatsuo Ishii | 2006-03-07 23:42:13 | Re: pg_freespacemap question |
Previous Message | Mark Kirkwood | 2006-03-07 23:24:22 | Re: pg_freespacemap question |
From | Date | Subject | |
---|---|---|---|
Next Message | Tatsuo Ishii | 2006-03-07 23:42:13 | Re: pg_freespacemap question |
Previous Message | Mark Kirkwood | 2006-03-07 23:24:22 | Re: pg_freespacemap question |