| От | Robert Haas |
|---|---|
| Тема | Re: Problem with estimating pages for a table |
| Дата | |
| Msg-id | 603c8f070905131801o592c2d98o838885800a539607@mail.gmail.com обсуждение исходный текст |
| Ответ на | Problem with estimating pages for a table (Cristina M <cristina.maier@yahoo.com>) |
| Список | pgsql-hackers |
On Wed, May 13, 2009 at 6:08 AM, Cristina M <cristina.maier@yahoo.com> wrote: > Hello, > I posted to the general list, and didn't receive any replies. Therefore, I > am trying this list now, hopefully this is the right mailing list for this > type of questions. > I am trying to compute the no of pages of a table. I am using the formula : You haven't given us a lot of information on what you want to do with this, but if by any chance it's helpful to get the actual number of pages for some particular table, you can do it like this: select relpages from pg_class where oid = 'name_of_the_table'::regclass; There is also a handy function pg_relation_size(). ...Robert
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера