PHP Manual
PEAR Manual
Smarty Manual
PostgreSQL
MySQL Manual
Perl Manual
Ciekawe adresy
- Producent firan
- Prezent dla niego
- Słownik polski duński
- Hostessy Poznań
- Domy Jednorodzinne
- Poduszki Ogrodowe
- Nawigacja
- Płytki Ceramiczne Poznań
Czytnik RSS
» 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
» Aktualizacja: Nowy Wykop.pl
Jeden z największych polskich serwisów społecznościowych został gruntownie przebudowany.
» Microsoft Office Live Workspace dla Polaków
Firma Microsoft poinformowała o udostępnieniu wersji beta usługi Microsoft Office Live Workspace w języku polskim oraz w czterech innych: holenderskim, włoskim, koreańskim i tradycyjnym chińskim, zwiększając tym samym do 10 łączną liczbę języków, w których ta usługa jest dostępna. Wersja beta usługi Office Live Workspace stanowi bezpłatne, internetowe rozszerzenie pakietu Microsoft Office, które zapewnia użytkownikom dostęp do ich dokumentów online oraz pozwala udostępniać swoje prace innym. Wersja beta usługi Office Live Workspace była jedną z pierwszych pozycji w nowej ofercie usług online stanowiących urzeczywistnienie koncepcji połączenia oprogramowania z usługami zaprezentowanej ubiegłej jesieni przez firmę Microsoft.
» DRM Ubisoftu: hakerzy atakują, serwery padają, gracze protestują
Nowatorski system zabezpieczeń DRM zastosowany przez Ubisoft w najnowszych grach Silent Hunter 5: Battle of the Atlantic oraz Assassin's Creed 2 jak na razie powoduje więcej problemów legalnym użytkownikom niż piratom. Na forach pomocy technicznej firmy roi się od postów graczy wściekłych na niestabilność serwerów, która uniemożliwia zabawę.
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