how to get postgresql page size?

From: "Freddy Mnjvr" <mmfreddy(at)hotmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: how to get postgresql page size?
Date: 2003-07-29 17:00:13
Message-ID: Law10-F58LfmmCxa4zh0000e8cc@hotmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi...

SELECT sum(relpages)* (PAGESIZE) FROM pg_class
WHERE relkind='r' AND relname = 'table'

I want to know how many disk space is a database table using something
like above

where (PAGESIZE) is the postgresql page size value.

how can I get the ??? value...

- I now default value for (PAGESIZE) is 8k, but if it was changed (BLCKSZ,
postgresql.h)?
- I need to know the (PAGESIZE) value without reading postgresql source
files...

-----------------------
Freddy Menjívar M.
ITCR

_________________________________________________________________
Charla con tus amigos en línea mediante MSN Messenger:
http://messenger.yupimsn.com/

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andrew Sullivan 2003-07-29 17:01:32 Re: concurrent writes
Previous Message Andrew Sullivan 2003-07-29 16:51:18 Re: Clone a database to other machine