PHP Manual
PEAR Manual
Smarty Manual
PostgreSQL
MySQL Manual
Perl Manual
Ciekawe adresy
- T-shirt promocyjny
- Szkoła tańca Warszawa
- Makijaż Permanentny Warszawa
- Dom Poznań
- Zdjęcia Ślubne
- Agencja Interaktywna
- Program do nauki angielskiego
- Mieszkania Sprzedaz Warszawa
Czytnik RSS
» Adobe przejmuje producenta aplikacji webowychKoncern Adobe zgodził się wyłożyć 240 mln USD na zakup firmy Day Software Holding, specjalizującej się w tworzeniu oprogramowania webowego (głównie aplikacji z zakresu zarządzania treścią na stronach WWW oraz pracy grupowej online).
» DD670 - pamięć masowa EMC z deduplikowaniem danych
EMC poszerzy ofertę o nowy system pamięci masowej klasy średniej, który wspiera technologię deduplikowania danych. Urządzenie DD670 deduplikuje dane z szybkością 5,4 TB na godzinę i ma pojemność do 76 TB (bez kompresji). DD670 może logicznie obsługiwać do 2,7 PB danych zapewniając dzięki deduplikowaniu zmniejszenie objętości danych nawet 50-krotnie.
» Czwartkowy Przegląd Prasy
TP interesuje się kupnem Aster... Google tworzy projekt konkurencyjny dla Facebooka... Zysk TPSA powyżej konsensusu... IBM otwiera centrum cloud computing na Politechnice Wrocławskiej... Jedna trzecia MŚP nie korzysta z usług IT... Polskie firmy chcą być częścią nadchodzącej rewolucji w rozrywce... Motorola kpi z najnowszego iPhona... Nawet Disney jest zainteresowany grami społecznościowymi...
» IBM otwiera centrum cloud computing na Politechnice Wrocławskiej
IBM Polska oraz Politechnika Wrocławska uruchamiają Wielozadaniowe Centrum ds. Cloud Computing. Uczelnia stworzy nowy program naukowy oferując kursy związane z technologią cloud computing dla ponad 1500 studentów.
chapter 41. overview of postgresql internals
- table of contents
- 41.1. the path of a query
- 41.2. how connections are established
- 41.3. the parser stage
- 41.3.1. parser
- 41.3.2. transformation process
- 41.4. the postgresql rule system
- 41.5. planner/optimizer
- 41.6. executor
author: this chapter originated as part of enhancement of the ansi sql implementation of postgresql, stefan simkovics' master's thesis prepared at vienna university of technology under the direction of o.univ.prof.dr. georg gottlob and univ.ass. mag. katrin seyr.
this chapter gives an overview of the internal structure of the backend of postgresql. after having read the following sections you should have an idea of how a query is processed. this chapter does not aim to provide a detailed description of the internal operation of postgresql, as such a document would be very extensive. rather, this chapter is intended to help the reader understand the general sequence of operations that occur within the backend from the point at which a query is received, to the point at which the results are returned to the client.
41.1. the path of a query
here we give a short overview of the stages a query has to pass in order to obtain a result.
a connection from an application program to the postgresql server has to be established. the application program transmits a query to the server and waits to receive the results sent back by the server.
the parser stage checks the query transmitted by the application program for correct syntax and creates a query tree.
the rewrite system takes the query tree created by the parser stage and looks for any rules (stored in the system catalogs) to apply to the query tree. it performs the transformations given in the rule bodies.
one application of the rewrite system is in the realization of views. whenever a query against a view (i.e. a virtual table) is made, the rewrite system rewrites the user's query to a query that accesses the base tables given in the view definition instead.
the planner/optimizer takes the (rewritten) query tree and creates a query plan that will be the input to the executor.
it does so by first creating all possible paths leading to the same result. for example if there is an index on a relation to be scanned, there are two paths for the scan. one possibility is a simple sequential scan and the other possibility is to use the index. next the cost for the execution of each path is estimated and the cheapest path is chosen. the cheapest path is expanded into a complete plan that the executor can use.
the executor recursively steps through the plan tree and retrieves rows in the way represented by the plan. the executor makes use of the storage system while scanning relations, performs sorts and joins, evaluates qualifications and finally hands back the rows derived.
in the following sections we will cover each of the above listed items in more detail to give a better understanding of postgresql's internal control and data structures.
Najskuteczniejsza reklama to pozycjonowanie - Pozycjonowanie stron <= zajrzyj tu i dowiedz się więcej o pozycjonowanie stron