PHP Manual
PEAR Manual
Smarty Manual
PostgreSQL
MySQL Manual
Perl Manual
Ciekawe adresy
- Spedycja międzynarodowa
- Organizacja Ślubów
- Badania marketingowe
- Hostessy Warszawa
- Zdjęcia Ślubne
- Porcelana
- Odzież Specjalistyczna
- Kursy online
Czytnik RSS
» Macrologic w 2009 lepiej niż rok wczesniejPomimo załamania gospodarczego w zeszłym roku Grupa Macrologic odnotowała wzrost obrotów i rentowności. Na przestrzeni całego 2009 roku zyski grupy kapitałowej wzrosły 25,7 proc. Spółka Macrologic odnotowała wzrost zyskowności o 31 proc.
» 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.
» Przenośne mini biuro w telefonie - link sponsorowany
Samsung Omnia II to dużo więcej, niż zwykły telefon komórkowy. Omnia II pozwala na wygodne przeglądanie poczty, stron WWW oraz obsługę dokumentów w MS Office. Telefon posiada niezwykle wytrzymałą baterię oraz aparat fotograficzny 5Mpix z flashem LED. //
» 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 50. database physical storage
- table of contents
- 50.1. database file layout
- 50.2. toast
- 50.3. database page layout
this chapter provides an overview of the physical storage format used by postgresql databases.
50.1. database file layout
this section describes the storage format at the level of files and directories.
all the data needed for a database cluster is stored within the cluster's data directory, commonly referred to as pgdata (after the name of the environment variable that can be used to define it). a common location for pgdata is /var/lib/pgsql/data. multiple clusters, managed by different postmasters, can exist on the same machine.
the pgdata directory contains several subdirectories and control files, as shown in table 50-1. in addition to these required items, the cluster configuration files postgresql.conf, pg_hba.conf, and pg_ident.conf are traditionally stored in pgdata (although in postgresql 8.0 and later, it is possible to keep them elsewhere).
table 50-1. contents of pgdata
| item | description |
|---|---|
| pg_version | a file containing the major version number of postgresql |
| base | subdirectory containing per-database subdirectories |
| global | subdirectory containing cluster-wide tables, such as pg_database |
| pg_clog | subdirectory containing transaction commit status data |
| pg_multixact | subdirectory containing multitransaction status data (used for shared row locks) |
| pg_subtrans | subdirectory containing subtransaction status data |
| pg_tblspc | subdirectory containing symbolic links to tablespaces |
| pg_twophase | subdirectory containing state files for prepared transactions |
| pg_xlog | subdirectory containing wal (write ahead log) files |
| postmaster.opts | a file recording the command-line options the postmaster was last started with |
| postmaster.pid | a lock file recording the current postmaster pid and shared memory segment id (not present after postmaster shutdown) |
for each database in the cluster there is a subdirectory within pgdata/base, named after the database's oid in pg_database. this subdirectory is the default location for the database's files; in particular, its system catalogs are stored there.
each table and index is stored in a separate file, named after the table or index's filenode number, which can be found in pg_class.relfilenode.
| caution |
note that while a table's filenode often matches its oid, this is not necessarily the case; some operations, like truncate, reindex, cluster and some forms of alter table, can change the filenode while preserving the oid. avoid assuming that filenode and table oid are the same. |
when a table or index exceeds 1gb, it is divided into gigabyte-sized segments. the first segment's file name is the same as the filenode; subsequent segments are named filenode.1, filenode.2, etc. this arrangement avoids problems on platforms that have file size limitations. the contents of tables and indexes are discussed further in section 50.3.
a table that has columns with potentially large entries will have an associated toast table, which is used for out-of-line storage of field values that are too large to keep in the table rows proper. pg_class.reltoastrelid links from a table to its toast table, if any. see section 50.2 for more information.
tablespaces make the scenario more complicated. each user-defined tablespace has a symbolic link inside the pgdata/pg_tblspc directory, which points to the physical tablespace directory (as specified in its create tablespace command). the symbolic link is named after the tablespace's oid. inside the physical tablespace directory there is a subdirectory for each database that has elements in the tablespace, named after the database's oid. tables within that directory follow the filenode naming scheme. the pg_default tablespace is not accessed through pg_tblspc, but corresponds to pgdata/base. similarly, the pg_global tablespace is not accessed through pg_tblspc, but corresponds to pgdata/global.
Najskuteczniejsza reklama to pozycjonowanie - Pozycjonowanie stron <= zajrzyj tu i dowiedz się więcej o pozycjonowanie stron