PHP Manual
PEAR Manual
Smarty Manual
PostgreSQL
MySQL Manual
Perl Manual
Ciekawe adresy
- Prezent dla chłopaka
- Kuchnie Warszawa
- Modelki
- Biuro rachunkowe Opole
- Piece
- Ubezpieczenie Mieszkania
- Angielski on line
- Powierzchnie produkcyjne
Czytnik RSS
» Chiny: Linux i Mac OS X bez cenzury. Lenovo, Acer i Sony do sąduWiele wskazuje na to, że Green Dam Youth Escort, słynny chiński filtr blokujący nieodpowiednie treści ze stron internetowych, zostanie zainstalowany wyłącznie na komputerach z systemem operacyjnym Windows. Co więcej, okazuje się, że producenci sprzętu, którzy zainstalują w swoich urządzeniach wspomniane oprogramowanie, prawdopodobnie niedługo później trafią z tego powodu na salę rozpraw.
» Microsoft obniża cenę Xboksa 360 w Polsce
Firma Microsoft poinformowała o obniżeniu sugerowanej ceny detalicznej konsol Xbox 360 w Polsce. Od piątku 19 września model Xbox 360 — wyposażony w dysk twardy o pojemności 60 GB i jeden kontroler bezprzewodowy — będzie dostępny w sugerowanej cenie detalicznej 899 PLN. W przypadku wersji Xbox 360 Elite — wyposażonej w dysk twardy o pojemności 120 GB —sugerowana cena detaliczna wyniesie 1099 PLN. Z kolei konsola Xbox 360 Arcade — idealna dla osób zaczynających dopiero przygodę z grami i rozrywką — będzie oferowana w cenie 669 PLN.
» Szczecin: przerabiali konsole do gier - pójdą siedzieć?
Szczecińscy policjanci zatrzymali dwie osoby, które nielegalnie przerabiały konsole do gier. Modyfikacja platform sprawiała, że możliwe było odtworzenie na nich pirackiego oprogramowania. Policja informuje, że za podobne przestępstwo grozi kara do 5 lat pozbawienia wolności.
» Internet Explorer 8 Beta 2 już jest!
Microsoft udostępnił Internet Explorer 8 Beta 2. W nowej odsłonie zobaczymy dwa nowe tryby, a mianowicie "InPrivate browsing" i "InPrivate blocking". Ponadto karty (zakładki) przeglądanych stron są oznaczane kolorami. Wprowadzono także nowy pasek wyszukiwania z opcją sugestii, a także zaimplementowano "inline searching". Nowy IE8 jest szybszy od swojego poprzednika i znacznie umila surfowanie w Sieci, jak wynika ze wstępnych oględzin. Pobierz IE8 Beta 2 dla Windows XP Pobierz IE8 Beta 2 dla Windows Vista/Server 2008 Dodatkowe zasoby w Sieci: Upgrade do bety drugiej przeglądarki Internet Explorer 8 Informacje dla deweloperów Informacje dla specjalistów IT Przygotuj swoją witryn pod IE8 Release Notes Klipy wideo o IE8
chapter 25. monitoring disk usage
- table of contents
- 25.1. determining disk usage
- 25.2. disk full failure
this chapter discusses how to monitor the disk usage of a postgresql database system.
25.1. determining disk usage
each table has a primary heap disk file where most of the data is stored. if the table has any columns with potentially-wide values, there is also a toast file associated with the table, which is used to store values too wide to fit comfortably in the main table (see section 50.2). there will be one index on the toast table, if present. there may also be indexes associated with the base table. each table and index is stored in a separate disk file — possibly more than one file, if the file would exceed one gigabyte. naming conventions for these files are described in section 50.1.
you can monitor disk space from three ways: using sql functions listed in table 9-47, using vacuum information, and from the command line using the tools in contrib/oid2name. the sql functions are the easiest to use and report information about tables, tables with indexes and long value storage (toast), databases, and tablespaces.
using psql on a recently vacuumed or analyzed database, you can issue queries to see the disk usage of any table:
select relfilenode, relpages from pg_class where relname = 'customer'; relfilenode | relpages -------------+---------- 16806 | 60 (1 row)
each page is typically 8 kilobytes. (remember, relpages is only updated by vacuum, analyze, and a few ddl commands such as create index.) the relfilenode value is of interest if you want to examine the table's disk file directly.
to show the space used by toast tables, use a query like the following:
select relname, relpages from pg_class, (select reltoastrelid from pg_class where relname = 'customer') ss where oid = ss.reltoastrelid or oid = (select reltoastidxid from pg_class where oid = ss.reltoastrelid) order by relname; relname | relpages ----------------------+---------- pg_toast_16806 | 0 pg_toast_16806_index | 1
you can easily display index sizes, too:
select c2.relname, c2.relpages from pg_class c, pg_class c2, pg_index i where c.relname = 'customer' and c.oid = i.indrelid and c2.oid = i.indexrelid order by c2.relname; relname | relpages ----------------------+---------- customer_id_indexdex | 26
it is easy to find your largest tables and indexes using this information:
select relname, relpages from pg_class order by relpages desc; relname | relpages ----------------------+---------- bigtable | 3290 customer | 3144
you can also use contrib/oid2name to show disk usage. see readme.oid2name in that directory for examples. it includes a script that shows disk usage for each database.
Najskuteczniejsza reklama to pozycjonowanie - Pozycjonowanie stron <= zajrzyj tu i dowiedz się więcej o pozycjonowanie stron