PHP Manual
PEAR Manual
Smarty Manual
PostgreSQL
MySQL Manual
Perl Manual
Ciekawe adresy
- Producent firan
- Prezent dla niego
- Real estate properties Barcelona
- Cyganie
- Hostessy Poznań
- Biuro Rachunkowe Poznań
- Opony
- Zdrowa Pościel
- Deweloper
- Manekiny
Czytnik RSS
» Clickfree Transformer - backup na zawołanieJeśli chcesz by zewnętrzny dysk USB automatycznie zajmował się backupem danych, nie musisz instalować żadnego oprogramowania. Wystarczy, że podłączysz go do komputera za pomocą kabla Clickfree Transformer.
» Microsoft najlepszym pracodawcą w Europie Środkowo-Wschodniej
Microsoft Najlepszym Pracodawcą w regionie Europy Środkowo-Wschodniej (CEE) po raz drugi z rzędu – wynika z rankingu Hewitt Associates, wiodącej firmy doradztwa strategicznego. To niezależne badanie wyłoniło najlepszych pracodawców w regionie w dwóch odrębnych kategoriach: firmy z sektora SMB oraz duże przedsiębiorstwa. W tegorocznej edycji rankingu Microsoft znalazł się na czołowych miejscach w siedmiu krajach – Bułgarii, Czechach, Polsce, Rosji, Słowacji, Słowenii i na Ukrainie. W badaniu wzięło udział 120 000 pracowników, 3 000 menedżerów wyższego szczebla oraz menedżerów HR z 591 firm w 12 krajach. Zestawienie powstało na zlecenie The Wall Street Journal.
» Darmowy hosting plików od Microsoft
Microsoft udostępnił Windows Live SkyDrive, nowy, darmowy serwis online do przechowywania plików. SkyDrive, o pojemności 5 GB, umożliwia prosty dostęp do swoich danych oraz innych informacji z każdego komputera podłączonego do Internetu. Dzięki możliwości określenia rodzaju folderu, przechowywane pliki mogą być dostępne tylko dla użytkownika (foldery Personal), określonej przez użytkownika grupy osób (foldery Shared) oraz dla wszystkich zainteresowanych internautów (foldery Public). Obecnie z usługi mogą korzystać mieszkańcy 64 krajów, w tym Polski. Serwis Windows Live SkyDrive, dostępny pod adresem get.live.com, jest kolejnym produktem wchodzącym w skład rodziny Windows Live.
» Legenda open source odwiedzi Kraków
W styczniu 2009 r. do Polski zawita sam Richard Stallman - legenda ruchu open source. Stallman, jeden z twórców ruchu wolnego oprogramowania, założyciel Free Software Foundation oraz projektu GNU będzie gościem konferencji IT Giants, która rozpocznie się w Krakowie 14 stycznia.
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