Update FAQ's in 8.0.X branch.
authorBruce Momjian <bruce@momjian.us>
Thu, 22 Sep 2005 22:14:11 +0000 (22:14 +0000)
committerBruce Momjian <bruce@momjian.us>
Thu, 22 Sep 2005 22:14:11 +0000 (22:14 +0000)
doc/FAQ
doc/FAQ_AIX
doc/FAQ_DEV
doc/FAQ_MINGW
doc/FAQ_hungarian
doc/src/FAQ/FAQ.html
doc/src/FAQ/FAQ_DEV.html
doc/src/FAQ/FAQ_MINGW.html

diff --git a/doc/FAQ b/doc/FAQ
index 02d01ca5ec78290653792632dcd28a36b94b0ac3..55b281800da90c748cc2210458c3f2b3abce8b4f 100644 (file)
--- a/doc/FAQ
+++ b/doc/FAQ
@@ -1,7 +1,7 @@
 
                 Frequently Asked Questions (FAQ) for PostgreSQL
                                        
-   Last updated: Sun Jan 16 23:27:08 EST 2005
+   Last updated: Fri Sep 16 14:07:22 EDT 2005
    
    Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
    
                              General Questions
                                       
    1.1) What is PostgreSQL? How is it pronounced?
-   1.2) What is the copyright on PostgreSQL?
-   1.3) What Unix platforms does PostgreSQL run on?
-   1.4) What non-Unix ports are available?
-   1.5) Where can I get PostgreSQL?
-   1.6) Where can I get support?
+   1.2) What is the copyright of PostgreSQL?
+   1.3) What platforms does PostgreSQL support?
+   1.4) Where can I get PostgreSQL?
+   1.5) Where can I get support?
+   1.6) How do I submit a bug report?
    1.7) What is the latest release?
    1.8) What documentation is available?
    1.9) How do I find out about known bugs or missing features?
    1.10) How can I learn SQL?
-   1.11) Is PostgreSQL Y2K compliant?
-   1.12) How do I join the development team?
-   1.13) How do I submit a bug report?
-   1.14) How does PostgreSQL compare to other DBMSs?
-   1.15) How can I financially assist PostgreSQL?
+   1.11) How do I join the development team?
+   1.12) How does PostgreSQL compare to other DBMSs?
+   1.13) Who controls PostgreSQL?
    
                            User Client Questions
                                       
-   2.1) Are there ODBC drivers for PostgreSQL?
+   2.1) What interfaces are available for PostgreSQL?
    2.2) What tools are available for using PostgreSQL with Web pages?
    2.3) Does PostgreSQL have a graphical user interface?
-   2.4) What languages are available to communicate with PostgreSQL?
    
                           Administrative Questions
                                       
    3.1) How do I install PostgreSQL somewhere other than
    /usr/local/pgsql?
-   3.2) When I start postmaster, I get a Bad System Call or core dumped
-   message. Why?
-   3.3) When I try to start postmaster, I get IpcMemoryCreate errors.
-   Why?
-   3.4) When I try to start postmaster, I get IpcSemaphoreCreate errors.
-   Why?
-   3.5) How do I control connections from other hosts?
-   3.6) How do I tune the database engine for better performance?
-   3.7) What debugging features are available?
-   3.8) Why do I get "Sorry, too many clients" when trying to connect?
-   3.9) What is in the pgsql_tmp directory?
-   3.10) Why do I need to do a dump and restore to upgrade PostgreSQL
+   3.2) How do I control connections from other hosts?
+   3.3) How do I tune the database engine for better performance?
+   3.4) What debugging features are available?
+   3.5) Why do I get "Sorry, too many clients" when trying to connect?
+   3.6) Why do I need to do a dump and restore to upgrade PostgreSQL
    releases?
-   3.11) What computer hardware should I use?
+   3.7) What computer hardware should I use?
    
                            Operational Questions
                                       
-   4.1) What is the difference between binary cursors and normal cursors?
-   4.2) How do I SELECT only the first few rows of a query? A random row?
-   4.3) How do I find out what tables, indexes, databases, and users are
+   4.1) How do I SELECT only the first few rows of a query? A random row?
+   4.2) How do I find out what tables, indexes, databases, and users are
    defined? How do I see the queries used by psql to display them?
-   4.4) How do you remove a column from a table, or change it's data
-   type?
-   4.5) What is the maximum size for a row, a table, and a database?
-   4.6) How much database disk space is required to store data from a
+   4.3) How do you change a column's data type?
+   4.4) What is the maximum size for a row, a table, and a database?
+   4.5) How much database disk space is required to store data from a
    typical text file?
-   4.7) My queries are slow or don't make use of the indexes. Why?
-   4.8) How do I see how the query optimizer is evaluating my query?
-   4.9) What is an R-tree index?
-   4.10) What is the Genetic Query Optimizer?
-   4.11) How do I perform regular expression searches and
-   case-insensitive regular expression searches? How do I use an index
-   for case-insensitive searches?
-   4.12) In a query, how do I detect if a field is NULL?
-   4.13) What is the difference between the various character types?
-   4.14.0) How do I create a serial/auto-incrementing field?
-   4.14.1) How do I get the value of a SERIAL insert?
-   4.14.2) Doesn't currval() lead to a race condition with other users?
-   4.14.3) Why aren't my sequence numbers reused on transaction abort?
+   4.6) Why are my queries slow? Why don't they use my indexes?
+   4.7) How do I see how the query optimizer is evaluating my query?
+   4.8) How do I perform regular expression searches and case-insensitive
+   regular expression searches? How do I use an index for
+   case-insensitive searches?
+   4.9) In a query, how do I detect if a field is NULL? How can I sort on
+   whether a field is NULL or not?
+   4.10) What is the difference between the various character types?
+   4.11.1) How do I create a serial/auto-incrementing field?
+   4.11.2) How do I get the value of a SERIAL insert?
+   4.11.3) Doesn't currval() lead to a race condition with other users?
+   4.11.4) Why aren't my sequence numbers reused on transaction abort?
    Why are there gaps in the numbering of my sequence/SERIAL column?
-   4.15) What is an OID? What is a TID?
-   4.16) What is the meaning of some of the terms used in PostgreSQL?
-   4.17) Why do I get the error "ERROR: Memory exhausted in
+   4.12) What is an OID? What is a CTID?
+   4.13) Why do I get the error "ERROR: Memory exhausted in
    AllocSetAlloc()"?
-   4.18) How do I tell what PostgreSQL version I am running?
-   4.19) Why does my large-object operations get "invalid large obj
-   descriptor"?
-   4.20) How do I create a column that will default to the current time?
-   4.21) Why are my subqueries using IN so slow?
-   4.22) How do I perform an outer join?
-   4.23) How do I perform queries using multiple databases?
-   4.24) How do I return multiple rows or columns from a function?
-   4.25) Why can't I reliably create/drop temporary tables in PL/PgSQL
-   functions?
-   4.26) What encryption options are available?
-   
-                            Extending PostgreSQL
-                                      
-   5.1) I wrote a user-defined function. When I run it in psql, why does
-   it dump core?
-   5.2) How can I contribute some nifty new types and functions to
-   PostgreSQL?
-   5.3) How do I write a C function to return a tuple?
-   5.4) I have changed a source file. Why does the recompile not see the
-   change?
+   4.14) How do I tell what PostgreSQL version I am running?
+   4.15) How do I create a column that will default to the current time?
+   4.16) How do I perform an outer join?
+   4.17) How do I perform queries using multiple databases?
+   4.18) How do I return multiple rows or columns from a function?
+   4.19) Why do I get "relation with OID ##### does not exist" errors
+   when accessing temporary tables in PL/PgSQL functions?
+   4.20) What replication solutions are available?
+   4.21) Why are my table and column names not recognized in my query?
      _________________________________________________________________
    
                              General Questions
                                       
-    1.1) What is PostgreSQL? How is it pronounced?
-    
-   PostgreSQL is pronounced Post-Gres-Q-L.
-   
-   PostgreSQL is an enhancement of the POSTGRES database management
-   system (and is still sometimes reffered to as simply "Postgres"), a
-   next-generation DBMS research prototype. While PostgreSQL retains the
-   powerful data model and rich data types of POSTGRES, it replaces the
-   PostQuel query language with an extended subset of SQL. PostgreSQL is
-   free and the complete source is available.
-   
-   PostgreSQL development is performed by a team of developers who all
-   subscribe to the PostgreSQL development mailing list. The current
-   coordinator is Marc G. Fournier (scrappy@PostgreSQL.org). (See section
-   1.6 on how to join). This team is now responsible for all development
-   of PostgreSQL. It is a community project and is not controlled by any
+  1.1) What is PostgreSQL? How is it pronounced?
+  
+   PostgreSQL is pronounced Post-Gres-Q-L, and is also sometimes referred
+   to as just Postgres. An audio file is available in MP3 format for
+   those would like to hear the pronunciation.
+   
+   PostgreSQL is an object-relational database system that has the
+   features of traditional commercial database systems with enhancements
+   to be found in next-generation DBMS systems. PostgreSQL is free and
+   the complete source code is available.
+   
+   PostgreSQL development is performed by a team of mostly volunteer
+   developers spread throughout the world and communicating via the
+   Internet. It is a community project and is not controlled by any
    company. To get involved, see the developer's FAQ at
    http://www.postgresql.org/files/documentation/faqs/FAQ_DEV.html
    
-   The authors of PostgreSQL 1.01 were Andrew Yu and Jolly Chen. Many
-   others have contributed to the porting, testing, debugging, and
-   enhancement of the code. The original Postgres code, from which
-   PostgreSQL is derived, was the effort of many graduate students,
-   undergraduate students, and staff programmers working under the
-   direction of Professor Michael Stonebraker at the University of
-   California, Berkeley.
-   
-   The original name of the software at Berkeley was Postgres. When SQL
-   functionality was added in 1995, its name was changed to Postgres95.
-   The name was changed at the end of 1996 to PostgreSQL.
+  1.2) What is the copyright of PostgreSQL?
+  
+   PostgreSQL is distributed under the classic BSD license. It has no
+   restrictions on how the source code can be used. We like it and have
+   no intention of changing it.
    
-    1.2) What is the copyright on PostgreSQL?
-    
-   PostgreSQL is subject to the following COPYRIGHT:
+   This is the BSD license we use:
    
    PostgreSQL Data Base Management System
    
    Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
-   Portions Copyright (c) 1994-6 Regents of the University of California
+   Portions Copyright (c) 1994-1996 Regents of the University of
+   California
    
    Permission to use, copy, modify, and distribute this software and its
    documentation for any purpose, without fee, and without a written
    CALIFORNIA HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT,
    UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
    
-   The above is the BSD license, the classic open-source license. It has
-   no restrictions on how the source code may be used. We like it and
-   have no intention of changing it.
-   
-    1.3) What Unix platforms does PostgreSQL run on?
-    
+  1.3) What platforms does PostgreSQL support?
+  
    In general, any modern Unix-compatible platform should be able to run
    PostgreSQL. The platforms that had received explicit testing at the
    time of release are listed in the installation instructions.
    
-    1.4) What non-Unix ports are available?
-    
-   Starting with version 8.0, PostgreSQL now runs natively on Microsoft
-   Windows NT-based operating systems like Win2000, WinXP, and Win2003. A
-   prepackaged installer is available at
-   http://pgfoundry.org/projects/pginstaller. MSDOS-based versions of
-   Windows (Win95, Win98, WinMe) can run PostgreSQL using Cygwin.
+   PostgreSQL also runs natively on Microsoft Windows NT-based operating
+   systems like Win2000, WinXP, and Win2003. A prepackaged installer is
+   available at http://pgfoundry.org/projects/pginstaller. MSDOS-based
+   versions of Windows (Win95, Win98, WinMe) can run PostgreSQL using
+   Cygwin.
    
    There is also a Novell Netware 6 port at http://forge.novell.com, and
    an OS/2 (eComStation) version at
    http://hobbes.nmsu.edu/cgi-bin/h-search?sh=1&button=Search&key=postgre
    SQL&stype=all&sort=type&dir=%2F.
    
-    1.5) Where can I get PostgreSQL?
-    
-   The primary anonymous ftp site for PostgreSQL is
-   ftp://ftp.PostgreSQL.org/pub. For mirror sites, see our main web site.
-   
-    1.6) Where can I get support?
-    
-   The main mailing list is: pgsql-general@PostgreSQL.org. It is
-   available for discussion of matters pertaining to PostgreSQL. To
-   subscribe, send mail with the following lines in the body (not the
-   subject line):
-    subscribe
-    end
-
-   to pgsql-general-request@PostgreSQL.org.
+  1.4) Where can I get PostgreSQL?
+  
+   Via web browser, use http://www.postgresql.org/ftp/, and via ftp, use
+   ftp://ftp.PostgreSQL.org/pub/.
    
-   There is also a digest list available. To subscribe to this list, send
-   email to: pgsql-general-digest-request@PostgreSQL.org with a body of:
-    subscribe
-    end
-
-   Digests are sent out to members of this list whenever the main list
-   has received around 30k of messages.
+  1.5) Where can I get support?
+  
+   The PostgreSQL community provides assistance to many of its users via
+   email. The main web site to subscribe to the email lists is
+   http://www.postgresql.org/community/lists/. The general or bugs lists
+   are a good place to start.
    
-   The bugs mailing list is available. To subscribe to this list, send
-   email to pgsql-bugs-request@PostgreSQL.org with a body of:
-    subscribe
-    end
-
-   There is also a developers discussion mailing list available. To
-   subscribe to this list, send email to
-   pgsql-hackers-request@PostgreSQL.org with a body of:
-    subscribe
-    end
-
-   Additional mailing lists and information about PostgreSQL can be found
-   via the PostgreSQL WWW home page at:
-   
-     http://www.PostgreSQL.org
-     
    The major IRC channel is #postgresql on Freenode (irc.freenode.net).
-   To connect you can use the Unix command irc -c '#postgresql' "$USER"
-   irc.freenode.net or use any of the other popular IRC clients. A
-   Spanish one also exists on the same network, (#postgresql-es), and a
-   French one, (#postgresqlfr). There is also a PostgreSQL channel on
-   EFNet.
+   To connect you can use the Unix program irc -c '#postgresql' "$USER"
+   irc.freenode.net or use any other IRC clients. A Spanish one also
+   exists on the same network, (#postgresql-es), and a French one,
+   (#postgresqlfr). There is also a PostgreSQL channel on EFNet.
    
    A list of commercial support companies is available at
    http://techdocs.postgresql.org/companies.php.
    
-    1.7) What is the latest release?
-    
-   The latest release of PostgreSQL is version 8.0.0.
+  1.6) How do I submit a bug report?
+  
+   Visit the PostgreSQL bug form at
+   http://www.postgresql.org/support/submitbug.
+   
+   Also check out our ftp site ftp://ftp.PostgreSQL.org/pub/ to see if
+   there is a more recent PostgreSQL version.
    
-   We plan to have major releases every six to eight months.
+  1.7) What is the latest release?
+  
+   The latest release of PostgreSQL is version 8.0.3.
    
-    1.8) What documentation is available?
-    
-   Several manuals, manual pages, and some small test examples are
-   included in the distribution. See the /doc directory. You can also
-   browse the manuals online at http://www.PostgreSQL.org/docs.
+   We plan to have a major release every year, with minor releases every
+   few months.
+   
+  1.8) What documentation is available?
+  
+   PostgreSQL includes extensive documentation, including a large manual,
+   manual pages, and some test examples. See the /doc directory. You can
+   also browse the manuals online at http://www.PostgreSQL.org/docs.
    
    There are two PostgreSQL books available online at
-   http://www.PostgreSQL.org/docs/awbook.html and
-   http://www.commandprompt.com/ppbook/. There is a list of PostgreSQL
-   books available for purchase at
+   http://www.postgresql.org/docs/books/awbook.html and
+   http://www.commandprompt.com/ppbook/. There are a number of PostgreSQL
+   books available for purchase. One of the most popular ones is by Korry
+   Douglas. A list of book reviews can be found at
    http://techdocs.PostgreSQL.org/techdocs/bookreviews.php. There is also
    a collection of PostgreSQL technical articles at
    http://techdocs.PostgreSQL.org/.
    
    Our web site contains even more documentation.
    
-    1.9) How do I find out about known bugs or missing features?
-    
+  1.9) How do I find out about known bugs or missing features?
+  
    PostgreSQL supports an extended subset of SQL-92. See our TODO list
    for known bugs, missing features, and future plans.
    
-    1.10) How can I learn SQL?
-    
-   The PostgreSQL book at http://www.PostgreSQL.org/docs/awbook.html
-   teaches SQL. There is another PostgreSQL book at
-   http://www.commandprompt.com/ppbook. There is a nice tutorial at
+  1.10) How can I learn SQL?
+  
+   First, consider the PostgreSQL-specific books mentioned above. Another
+   one is "Teach Yourself SQL in 21 Days, Second Edition" at
+   http://members.tripod.com/er4ebus/sql/index.htm. Many of our users
+   like The Practical SQL Handbook, Bowman, Judith S., et al.,
+   Addison-Wesley. Others like The Complete Reference SQL, Groff et al.,
+   McGraw-Hill.
+   
+   There is also a nice tutorial at
    http://www.intermedia.net/support/sql/sqltut.shtm, at
    http://ourworld.compuserve.com/homepages/graeme_birchall/HTM_COOK.HTM,
    and at http://sqlcourse.com.
    
-   Another one is "Teach Yourself SQL in 21 Days, Second Edition" at
-   http://members.tripod.com/er4ebus/sql/index.htm
-   
-   Many of our users like The Practical SQL Handbook, Bowman, Judith S.,
-   et al., Addison-Wesley. Others like The Complete Reference SQL, Groff
-   et al., McGraw-Hill.
-   
-    1.11) Is PostgreSQL Y2K compliant?
-    
-   Yes, we easily handle dates past the year 2000 AD, and before 2000 BC.
-   
-    1.12) How do I join the development team?
-    
-   First, download the latest source and read the PostgreSQL Developers
-   documentation on our web site, or in the distribution. Second,
-   subscribe to the pgsql-hackers and pgsql-patches mailing lists. Third,
-   submit high quality patches to pgsql-patches.
-   
-   There are about a dozen people who have commit privileges to the
-   PostgreSQL CVS archive. They each have submitted so many high-quality
-   patches that it was impossible for the existing committers to keep up,
-   and we had confidence that patches they committed were of high
-   quality.
+  1.11) How do I join the development team?
+  
+   See the Developer's FAQ.
    
-    1.13) How do I submit a bug report?
-    
-   Visit the PostgreSQL bug form at
-   http://www.postgresql.org/support/submitbug.
-   
-   Also check out our ftp site ftp://ftp.PostgreSQL.org/pub to see if
-   there is a more recent PostgreSQL version or patches.
-   
-    1.14) How does PostgreSQL compare to other DBMSs?
-    
+  1.12) How does PostgreSQL compare to other DBMSs?
+  
    There are several ways of measuring software: features, performance,
    reliability, support, and price.
    
    Performance
           PostgreSQL's performance is comparable to other commercial and
           open source databases. It is faster for some things, slower for
-          others. In comparison to MySQL or leaner database systems, we
-          are faster for multiple users, complex queries, and a
-          read/write query load. MySQL is faster for simple SELECT
-          queries done by a few users. Of course, MySQL does not have
-          most of the features mentioned in the Features section above.
-          We are built for reliability and features, and we continue to
-          improve performance in every release.
+          others. Our performance is usually +/-10% compared to other
+          databases.
           
    Reliability
           We realize that a DBMS must be reliable, or it is worthless. We
           community, manuals, and the source code often make PostgreSQL
           support superior to other DBMSs. There is commercial
           per-incident support available for those who need it. (See FAQ
-          section 1.6.)
+          section 1.5.)
           
    Price
           We are free for all use, both commercial and non-commercial.
           You can add our code to your product with no limitations,
           except those outlined in our BSD-style license stated above.
           
-    1.15) How can I financially assist PostgreSQL?
-    
-   PostgreSQL has had a first-class infrastructure since we started in
-   1996. This is all thanks to Marc Fournier, who has created and managed
-   this infrastructure over the years.
-   
-   Quality infrastructure is very important to an open-source project. It
-   prevents disruptions that can greatly delay forward movement of the
-   project.
-   
-   Of course, this infrastructure is not cheap. There are a variety of
-   monthly and one-time expenses that are required to keep it going. If
-   you or your company has money it can donate to help fund this effort,
-   please go to http://store.pgsql.com/shopping/ and make a donation.
-   
-   Although the web page mentions PostgreSQL, Inc, the "contributions"
-   item is solely to support the PostgreSQL project and does not fund any
-   specific company. If you prefer, you can also send a check to the
-   contact address.
-   
-   Also, if you have a success story about PostgreSQL, please email it to
-   our advocacy list at pgsql-advocacy@postgresql.org.
+  1.13) Who controls PostgreSQL?
+  
+   If you are looking for a PostgreSQL gatekeeper, central committee, or
+   controlling company, give up --- there isn't one. We do have a core
+   committee and CVS committers, but these groups are more for
+   administrative purposes than control. The project is directed by the
+   community of developers and users, which anyone can join. All you need
+   to do is subscribe to the mailing lists and participate in the
+   discussions. (See the Developer's FAQ for information on how to get
+   involved in PostgreSQL development.)
      _________________________________________________________________
    
                            User Client Questions
                                       
-    2.1) Are there ODBC drivers for PostgreSQL?
-    
-   There are two ODBC drivers available, PsqlODBC and OpenLink ODBC.
-   
-   You can download PsqlODBC from
-   http://gborg.postgresql.org/project/psqlodbc/projdisplay.php.
-   
-   OpenLink ODBC can be gotten from http://www.openlinksw.com. It works
-   with their standard ODBC client software so you'll have PostgreSQL
-   ODBC available on every client platform they support (Win, Mac, Unix,
-   VMS).
-   
-   They will probably be selling this product to people who need
-   commercial-quality support, but a freeware version will always be
-   available. Please send questions to postgres95@openlink.co.uk.
-   
-    2.2) What tools are available for using PostgreSQL with Web pages?
-    
+  2.1) What interfaces are available for PostgreSQL?
+  
+   The PostgreSQL install includes only the C and embedded C interfaces.
+   All other interfaces are independent projects that are downloaded
+   separately; being separate allows them to have their own release
+   schedule and development teams.
+   
+   Some programming languages like PHP include an interface to
+   PostgreSQL. Interfaces for languages like Perl, TCL, Python, and many
+   others are available at http://gborg.postgresql.org in the
+   Drivers/Interfaces section and via Internet search.
+   
+  2.2) What tools are available for using PostgreSQL with Web pages?
+  
    A nice introduction to Database-backed Web pages can be seen at:
    http://www.webreview.com
    
-   For Web integration, PHP is an excellent interface. It is at
-   http://www.php.net.
-   
-   For complex cases, many use the Perl interface and CGI.pm or mod_perl.
+   For Web integration, PHP (http://www.php.net) is an excellent
+   interface.
    
-    2.3) Does PostgreSQL have a graphical user interface?
-    
-   Yes, there are several graphical interfaces to PostgreSQL available.
-   These include PgAccess http://www.pgaccess.org), pgAdmin III
-   (http://www.pgadmin.org, RHDB Admin (http://sources.redhat.com/rhdb/
-   ), TORA (http://www.globecom.net/tora/, partly commercial), and Rekall
-   ( http://www.thekompany.com/products/rekall/, proprietary). There is
-   also PhpPgAdmin ( http://phppgadmin.sourceforge.net/ ), a web-based
-   interface to PostgreSQL.
+   For complex cases, many use the Perl and DBD::Pg with CGI.pm or
+   mod_perl.
    
-   See http://techdocs.postgresql.org/guides/GUITools for a more detailed
+  2.3) Does PostgreSQL have a graphical user interface?
+  
+   Yes, see http://techdocs.postgresql.org/guides/GUITools for a detailed
    list.
-   
-    2.4) What languages are able to communicate with PostgreSQL?
-    
-   Most popular programming languages contain an interface to PostgreSQL.
-   Check your programming language's list of extension modules.
-   
-   The following interfaces are included in the PostgreSQL distribution:
-     * C (libpq)
-     * Embedded C (ecpg)
-     * Java (jdbc)
-     * Python (PyGreSQL)
-     * TCL (libpgtcl)
-       
-   Additional interfaces are available at http://gborg.postgresql.org in
-   the Drivers/Interfaces section.
      _________________________________________________________________
    
                           Administrative Questions
                                       
-    3.1) How do I install PostgreSQL somewhere other than /usr/local/pgsql?
-    
+  3.1) How do I install PostgreSQL somewhere other than /usr/local/pgsql?
+  
    Specify the --prefix option when running configure.
    
-    3.2) When I start postmaster, I get a Bad System Call or core dumped
-    message. Why?
-    
-   It could be a variety of problems, but first check to see that you
-   have System V extensions installed in your kernel. PostgreSQL requires
-   kernel support for shared memory and semaphores.
-   
-    3.3) When I try to start postmaster, I get IpcMemoryCreate errors. Why?
-    
-   You either do not have shared memory configured properly in your
-   kernel or you need to enlarge the shared memory available in the
-   kernel. The exact amount you need depends on your architecture and how
-   many buffers and backend processes you configure for postmaster. For
-   most systems, with default numbers of buffers and processes, you need
-   a minimum of ~1 MB. See the PostgreSQL Administrator's Guide/Server
-   Run-time Environment/Managing Kernel Resources section for more
-   detailed information about shared memory and semaphores.
-   
-    3.4) When I try to start postmaster, I get IpcSemaphoreCreate errors. Why?
-    
-   If the error message is IpcSemaphoreCreate: semget failed (No space
-   left on device) then your kernel is not configured with enough
-   semaphores. Postgres needs one semaphore per potential backend
-   process. A temporary solution is to start postmaster with a smaller
-   limit on the number of backend processes. Use -N with a parameter less
-   than the default of 32. A more permanent solution is to increase your
-   kernel's SEMMNS and SEMMNI parameters.
-   
-   Inoperative semaphores can also cause crashes during heavy database
-   access.
-   
-   If the error message is something else, you might not have semaphore
-   support configured in your kernel at all. See the PostgreSQL
-   Administrator's Guide for more detailed information about shared
-   memory and semaphores.
-   
-    3.5) How do I control connections from other hosts?
-    
+  3.2) How do I control connections from other hosts?
+  
    By default, PostgreSQL only allows connections from the local machine
    using Unix domain sockets or TCP/IP connections. Other machines will
    not be able to connect unless you modify listen_addresses in the
-   postgresql.conf and enable host-based authentication by modifying the
-   file $PGDATA/pg_hba.conf accordingly.
-   
-    3.6) How do I tune the database engine for better performance?
-    
-   Certainly, indexes can speed up queries. The EXPLAIN ANALYZE command
-   allows you to see how PostgreSQL is interpreting your query, and which
-   indexes are being used.
-   
-   If you are doing many INSERTs, consider doing them in a large batch
-   using the COPY command. This is much faster than individual INSERTS.
-   Second, statements not in a BEGIN WORK/COMMIT transaction block are
-   considered to be in their own transaction. Consider performing several
-   statements in a single transaction block. This reduces the transaction
-   overhead. Also, consider dropping and recreating indexes when making
-   large data changes.
-   
-   There are several tuning options in the Administration Guide/Server
-   Run-time Environment/Run-time Configuration. You can disable fsync()
-   by using fsync option. This will prevent fsync()s from flushing to
-   disk after every transaction.
-   
-   You can use the shared_buffers option to increase the number of shared
-   memory buffers used by the backend processes. If you make this
-   parameter too high, the postmaster may not start because you have
-   exceeded your kernel's limit on shared memory space. Each buffer is 8K
-   and the default is 1000 buffers.
-   
-   You can also use the sort_mem (from PostgreSQL 8.0: work_mem) options
-   to increase the maximum amount of memory used by the backend processes
-   for each temporary sort. The default is 1024 (i.e. 1MB).
-   
-   You can also use the CLUSTER command to group data in tables to match
-   an index. See the CLUSTER manual page for more details.
-   
-    3.7) What debugging features are available?
-    
-   PostgreSQL has several features that report status information that
-   can be valuable for debugging purposes.
-   
-   First, by running configure with the --enable-cassert option, many
-   assert()s monitor the progress of the backend and halt the program
-   when something unexpected occurs.
-   
-   Both postmaster and postgres have several debug options available.
-   First, whenever you start postmaster, make sure you send the standard
-   output and error to a log file, like:
-    cd /usr/local/pgsql
-    ./bin/postmaster >server.log 2>&1 &
-
-   This will put a server.log file in the top-level PostgreSQL directory.
-   This file contains useful information about problems or errors
-   encountered by the server. Postmaster has a -d option that allows even
-   more detailed information to be reported. The -d option takes a number
-   that specifies the debug level. Be warned that high debug level values
-   generate large log files.
-   
-   If postmaster is not running, you can actually run the postgres
-   backend from the command line, and type your SQL statement directly.
-   This is recommended only for debugging purposes. Note that a newline
-   terminates the query, not a semicolon. If you have compiled with
-   debugging symbols, you can use a debugger to see what is happening.
-   Because the backend was not started from postmaster, it is not running
-   in an identical environment and locking/backend interaction problems
-   may not be duplicated.
-   
-   If postmaster is running, start psql in one window, then find the PID
-   of the postgres process used by psql using
-SELECT pg_backend_pid()
-
-   . Use a debugger to attach to the postgres PID. You can set
-   breakpoints in the debugger and issue queries from psql. If you are
-   debugging postgres startup, you can set PGOPTIONS="-W n", then start
-   psql. This will cause startup to delay for n seconds so you can attach
-   to the process with the debugger, set any breakpoints, and continue
-   through the startup sequence.
-   
-   There are several
-log_*
-
-   server configuration variables that enable printing of process
-   statistics which can be very useful for debugging and performance
-   measurements.
-   
-   You can also compile with profiling to see what functions are taking
-   execution time. The backend profile files will be deposited in the
-   pgsql/data/base/dbname directory. The client profile file will be put
-   in the client's current directory. Linux requires a compile with
-   -DLINUX_PROFILE for proper profiling.
-   
-    3.8) Why do I get "Sorry, too many clients" when trying to connect?
-    
-   You need to increase postmaster's limit on how many concurrent backend
-   processes it can start.
-   
-   The default limit is 32 processes. You can increase it by restarting
-   postmaster with a suitable -N value or modifying postgresql.conf.
-   
-   Note that if you make -N larger than 32, you must also increase -B
-   beyond its default of 64; -B must be at least twice -N, and probably
-   should be more than that for best performance. For large numbers of
-   backend processes, you are also likely to find that you need to
-   increase various Unix kernel configuration parameters. Things to check
-   include the maximum size of shared memory blocks, SHMMAX; the maximum
-   number of semaphores, SEMMNS and SEMMNI; the maximum number of
-   processes, NPROC; the maximum number of processes per user, MAXUPRC;
-   and the maximum number of open files, NFILE and NINODE. The reason
-   that PostgreSQL has a limit on the number of allowed backend processes
-   is so your system won't run out of resources.
-   
-    3.9) What is in the pgsql_tmp directory?
-    
-   This directory contains temporary files generated by the query
-   executor. For example, if a sort needs to be done to satisfy an ORDER
-   BY and the sort requires more space than the backend's -S parameter
-   allows, then temporary files are created here to hold the extra data.
-   
-   The temporary files are usually deleted automatically, but might
-   remain if a backend crashes during a sort. A stop and restart of the
-   postmaster will remove files from those directories.
-   
-    3.10) Why do I need to do a dump and restore to upgrade between major
-    PostgreSQL releases?
-    
+   postgresql.conf file, enable host-based authentication by modifying
+   the $PGDATA/pg_hba.conf file, and restart the server.
+   
+  3.3) How do I tune the database engine for better performance?
+  
+   There are three major areas for potential performance improvement:
+   
+   Query Changes
+          This involves modifying queries to obtain better performance:
+          
+          + Creation of indexes, including expression and partial indexes
+          + Use of COPY instead of multiple INSERTs
+          + Grouping of multiple statements into a single transaction to
+            reduce commit overhead
+          + Use of CLUSTER when retrieving many rows from an index
+          + Use of LIMIT for returning a subset of a query's output
+          + Use of Prepared queries
+          + Use of ANALYZE to maintain accurate optimizer statistics
+          + Regular use of VACUUM or pg_autovacuum
+          + Dropping of indexes during large data changes
+            
+   Server Configuration
+          A number of postgresql.conf settings affect performance. For
+          more details, see Administration Guide/Server Run-time
+          Environment/Run-time Configuration for a full listing, and for
+          commentary see
+          http://www.varlena.com/varlena/GeneralBits/Tidbits/annotated_co
+          nf_e.html and
+          http://www.varlena.com/varlena/GeneralBits/Tidbits/perf.html.
+          
+   Hardware Selection
+          The effect of hardware on performance is detailed in
+          http://candle.pha.pa.us/main/writings/pgsql/hw_performance/inde
+          x.html and http://www.powerpostgresql.com/PerfList/.
+          
+  3.4) What debugging features are available?
+  
+   There are many log_* server configuration variables that enable
+   printing of query and process statistics which can be very useful for
+   debugging and performance measurements.
+   
+  3.5) Why do I get "Sorry, too many clients" when trying to connect?
+  
+   You have reached the default limit is 100 database sessions. You need
+   to increase the postmaster's limit on how many concurrent backend
+   processes it can start by changing the max_connections value in
+   postgresql.conf and restarting the postmaster.
+   
+  3.6) Why do I need to do a dump and restore to upgrade between major
+  PostgreSQL releases?
+  
    The PostgreSQL team makes only small changes between minor releases,
-   so upgrading from 7.2 to 7.2.1 does not require a dump and restore.
-   However, major releases (e.g. from 7.2 to 7.3) often change the
+   so upgrading from 7.4.0 to 7.4.1 does not require a dump and restore.
+   However, major releases (e.g. from 7.3 to 7.4) often change the
    internal format of system tables and data files. These changes are
-   often complex, so we don't maintain backward compatability for data
+   often complex, so we don't maintain backward compatibility for data
    files. A dump outputs data in a generic format that can then be loaded
    in using the new internal format.
    
-   In releases where the on-disk format does not change, the pg_upgrade
-   script can be used to upgrade without a dump/restore. The release
-   notes mention whether pg_upgrade is available for the release.
-   
-    3.11) What computer hardware should I use?
-    
+  3.7) What computer hardware should I use?
+  
    Because PC hardware is mostly compatible, people tend to believe that
    all PC hardware is of equal quality. It is not. ECC RAM, SCSI, and
    quality motherboards are more reliable and have better performance
@@ -638,19 +399,12 @@ log_*
    
                            Operational Questions
                                       
-    4.1) What is the difference between binary cursors and normal cursors?
-    
-   See the DECLARE manual page for a description.
-   
-    4.2) How do I SELECT only the first few rows of a query? A random row?
-    
-   See the FETCH manual page, or use SELECT ... LIMIT....
-   
-   The entire query may have to be evaluated, even if you only want the
-   first few rows. Consider using a query that has an ORDER BY. If there
-   is an index that matches the ORDER BY, PostgreSQL may be able to
-   evaluate only the first few records requested, or the entire query may
-   have to be evaluated until the desired rows have been generated.
+  4.1) How do I SELECT only the first few rows of a query? A random row?
+  
+   To retrieve only a few rows, if you know at the number of rows needed
+   at the time of the SELECT use LIMIT . If an index matches the ORDER BY
+   it is possible the entire query does not have to be executed. If you
+   don't know the number of rows at SELECT time, use a cursor and FETCH.
    
    To SELECT a random row, use:
     SELECT col
@@ -658,9 +412,9 @@ log_*
     ORDER BY random()
     LIMIT 1;
 
-    4.3) How do I find out what tables, indexes, databases, and users are
-    defined? How do I see the queries used by psql to display them?
-    
+  4.2) How do I find out what tables, indexes, databases, and users are
+  defined? How do I see the queries used by psql to display them?
+  
    Use the \dt command to see tables in psql. For a complete list of
    commands inside psql you can use \?. Alternatively you can read the
    source code for psql in file pgsql/src/bin/psql/describe.c, it
@@ -671,25 +425,16 @@ log_*
    query to get information about the database.
    
    There are also system tables beginning with pg_ that describe these
-   too. Use psql -l will list all databases.
+   too.
+   
+   Use psql -l will list all databases.
    
    Also try the file pgsql/src/tutorial/syscat.source. It illustrates
    many of the SELECTs needed to get information from the database system
    tables.
    
-    4.4) How do you remove a column from a table, or change its data type?
-    
-   DROP COLUMN functionality was added in release 7.3 with ALTER TABLE
-   DROP COLUMN. In earlier versions, you can do this:
-    BEGIN;
-    LOCK TABLE old_table;
-    SELECT ...  -- select all columns but the one you want to remove
-    INTO TABLE new_table
-    FROM old_table;
-    DROP TABLE old_table;
-    ALTER TABLE new_table RENAME TO old_table;
-    COMMIT;
-
+  4.3) How do you change a column's data type?
+  
    Changing the data type of a column can be done easily in 8.0 and later
    with ALTER TABLE ALTER COLUMN TYPE.
    
@@ -703,17 +448,19 @@ log_*
    You might then want to do VACUUM FULL tab to reclaim the disk space
    used by the expired rows.
    
-    4.5) What is the maximum size for a row, a table, and a database?
-    
+  4.4) What is the maximum size for a row, a table, and a database?
+  
    These are the limits:
-    Maximum size for a database?             unlimited (32 TB databases exist)
-    Maximum size for a table?                32 TB
-    Maximum size for a row?                  1.6TB
-    Maximum size for a field?                1 GB
-    Maximum number of rows in a table?       unlimited
-    Maximum number of columns in a table?    250-1600 depending on column types
-    Maximum number of indexes on a table?    unlimited
-
+   
+   Maximum size for a database? unlimited (32 TB databases exist)
+   Maximum size for a table? 32 TB
+   Maximum size for a row? 1.6TB
+   Maximum size for a field? 1 GB
+   Maximum number of rows in a table? unlimited
+   Maximum number of columns in a table? 250-1600 depending on column
+   types
+   Maximum number of indexes on a table? unlimited
+   
    Of course, these are not actually unlimited, but limited to available
    disk space and memory/swap space. Performance may suffer when these
    values get unusually large.
@@ -725,9 +472,15 @@ log_*
    The maximum table size and maximum number of columns can be quadrupled
    by increasing the default block size to 32k.
    
-    4.6) How much database disk space is required to store data from a typical
-    text file?
-    
+   One limitation is that indexes can not be created on columns longer
+   than about 2,000 characters. Fortunately, such indexes are rarely
+   needed. Uniqueness is best guaranteed by a funtion index of an MD5
+   hash of the long column, and full text indexing allows for searching
+   of words within the column.
+   
+  4.5) How much database disk space is required to store data from a typical
+  text file?
+  
    A PostgreSQL database may require up to five times the disk space to
    store data from a text file.
    
@@ -736,36 +489,36 @@ log_*
    twenty bytes in length. The flat file would be 2.8 MB. The size of the
    PostgreSQL database file containing this data can be estimated as 6.4
    MB:
-    32 bytes: each row header (approximate)
+    28 bytes: each row header (approximate)
     24 bytes: one int field and one text field
    + 4 bytes: pointer on page to tuple
    ----------------------------------------
-    60 bytes per row
+    56 bytes per row
 
    The data page size in PostgreSQL is 8192 bytes (8 KB), so:
 
    8192 bytes per page
-   -------------------   =  136 rows per database page (rounded down)
-     60 bytes per row
+   -------------------   =  146 rows per database page (rounded down)
+     56 bytes per row
 
    100000 data rows
-   --------------------  =  735 database pages (rounded up)
-      128 rows per page
+   --------------------  =  685 database pages (rounded up)
+      146 rows per page
 
-735 database pages * 8192 bytes per page  =  6,021,120 bytes (6 MB)
+685 database pages * 8192 bytes per page  =  5,611,520 bytes (5.6 MB)
 
    Indexes do not require as much overhead, but do contain the data that
    is being indexed, so they can be large also.
    
    NULLs are stored as bitmaps, so they use very little space.
    
-    4.7) My queries are slow or don't make use of the indexes. Why?
-    
-   Indexes are not automatically used by every query. Indexes are only
-   used if the table is larger than a minimum size, and the query selects
-   only a small percentage of the rows in the table. This is because the
-   random disk access caused by an index scan can be slower than a
-   straight read through the table, or sequential scan.
+  4.6) Why are my queries slow? Why don't they use my indexes?
+  
+   Indexes are not used by every query. Indexes are used only if the
+   table is larger than a minimum size, and the query selects only a
+   small percentage of the rows in the table. This is because the random
+   disk access caused by an index scan can be slower than a straight read
+   through the table, or sequential scan.
    
    To determine if an index should be used, PostgreSQL must have
    statistics about the table. These statistics are collected using
@@ -788,8 +541,8 @@ log_*
     LIMIT 1;
 
    If you believe the optimizer is incorrect in choosing a sequential
-   scan, use SET enable_seqscan TO 'off' and run tests to see if an index
-   scan is indeed faster.
+   scan, use SET enable_seqscan TO 'off' and run query again to see if an
+   index scan is indeed faster.
    
    When using wild-card operators such as LIKE or ~, indexes can only be
    used in certain circumstances:
@@ -800,57 +553,25 @@ log_*
      * The search string can not start with a character class, e.g.
        [a-e].
      * Case-insensitive searches such as ILIKE and ~* do not utilize
-       indexes. Instead, use functional indexes, which are described in
-       section 4.11.
+       indexes. Instead, use expression indexes, which are described in
+       section 4.8.
      * The default C locale must be used during initdb because it is not
-       possible to know the next-greater character in a non-C locale. You
-       can create a special
-text_pattern_ops
-       index for such cases that work only for
-LIKE
-       indexing.
+       possible to know the next-greatest character in a non-C locale.
+       You can create a special text_pattern_ops index for such cases
+       that work only for LIKE indexing.
        
    In pre-8.0 releases, indexes often can not be used unless the data
-   types exactly match the index's column types. This is particularly
+   types exactly match the index's column types. This was particularly
    true of int2, int8, and numeric column indexes.
    
-    4.8) How do I see how the query optimizer is evaluating my query?
-    
+  4.7) How do I see how the query optimizer is evaluating my query?
+  
    See the EXPLAIN manual page.
    
-    4.9) What is an R-tree index?
-    
-   An R-tree index is used for indexing spatial data. A hash index can't
-   handle range searches. A B-tree index only handles range searches in a
-   single dimension. R-trees can handle multi-dimensional data. For
-   example, if an R-tree index can be built on an attribute of type
-   point, the system can more efficiently answer queries such as "select
-   all points within a bounding rectangle."
-   
-   The canonical paper that describes the original R-tree design is:
-   
-   Guttman, A. "R-trees: A Dynamic Index Structure for Spatial
-   Searching." Proceedings of the 1984 ACM SIGMOD Int'l Conf on Mgmt of
-   Data, 45-57.
-   
-   You can also find this paper in Stonebraker's "Readings in Database
-   Systems".
-   
-   Built-in R-trees can handle polygons and boxes. In theory, R-trees can
-   be extended to handle higher number of dimensions. In practice,
-   extending R-trees requires a bit of work and we don't currently have
-   any documentation on how to do it.
-   
-    4.10) What is the Genetic Query Optimizer?
-    
-   The GEQO module speeds query optimization when joining many tables by
-   means of a Genetic Algorithm (GA). It allows the handling of large
-   join queries through nonexhaustive search.
-   
-    4.11) How do I perform regular expression searches and case-insensitive
-    regular expression searches? How do I use an index for case-insensitive
-    searches?
-    
+  4.8) How do I perform regular expression searches and case-insensitive
+  regular expression searches? How do I use an index for case-insensitive
+  searches?
+  
    The ~ operator does regular expression matching, and ~* does
    case-insensitive regular expression matching. The case-insensitive
    variant of LIKE is called ILIKE.
@@ -861,31 +582,47 @@ LIKE
     WHERE lower(col) = 'abc';
 
    This will not use an standard index. However, if you create a
-   functional index, it will be used:
+   expresssion index, it will be used:
     CREATE INDEX tabindex ON tab (lower(col));
 
-    4.12) In a query, how do I detect if a field is NULL?
-    
-   You test the column with IS NULL and IS NOT NULL.
-   
-    4.13) What is the difference between the various character types?
-    
-Type            Internal Name   Notes
---------------------------------------------------
-VARCHAR(n)      varchar         size specifies maximum length, no padding
-CHAR(n)         bpchar          blank padded to the specified fixed length
-TEXT            text            no specific upper limit on length
-BYTEA           bytea           variable-length byte array (null-byte safe)
-"char"          char            one character
-
+   If the above index is created as UNIQUE, though the column can store
+   upper and lowercase characters, it can not have identical values that
+   differ only in case. To force a particular case to be stored in the
+   column, use a CHECK constraint or a trigger.
+   
+  4.9) In a query, how do I detect if a field is NULL? How can I sort on
+  whether a field is NULL or not?
+  
+   You test the column with IS NULL and IS NOT NULL, like this:
+   SELECT *
+   FROM tab
+   WHERE col IS NULL;
+
+   To sort by the NULL status, use the IS NULL and IS NOT NULL modifiers
+   in your ORDER BY clause. Things that are true will sort higher than
+   things that are false, so the following will put NULL entries at the
+   top of the resulting list:
+   SELECT *
+   FROM tab
+   ORDER BY (col IS NOT NULL)
+
+  4.10) What is the difference between the various character types?
+  
+        Type    Internal Name                    Notes
+     VARCHAR(n) varchar       size specifies maximum length, no padding
+     CHAR(n)    bpchar        blank padded to the specified fixed length
+     TEXT       text          no specific upper limit on length
+     BYTEA      bytea         variable-length byte array (null-byte safe)
+     "char"     char          one character
+   
    You will see the internal name when examining system catalogs and in
    some error messages.
    
    The first four types above are "varlena" types (i.e., the first four
    bytes on disk are the length, followed by the data). Thus the actual
-   space used is slightly greater than the declared size. However, these
-   data types are also subject to compression or being stored out-of-line
-   by TOAST, so the space on disk might also be less than expected.
+   space used is slightly greater than the declared size. However, long
+   values are also subject to compression, so the space on disk might
+   also be less than expected.
    VARCHAR(n) is best when storing variable-length strings and it limits
    how long a string can be. TEXT is for strings of unlimited length,
    with a maximum of one gigabyte.
@@ -896,8 +633,8 @@ BYTEA           bytea           variable-length byte array (null-byte safe)
    particularly values that include NULL bytes. All the types described
    here have similar performance characteristics.
    
-    4.14.1) How do I create a serial/auto-incrementing field?
-    
+  4.11.1) How do I create a serial/auto-incrementing field?
+  
    PostgreSQL supports a SERIAL data type. It auto-creates a sequence.
    For example, this:
     CREATE TABLE person (
@@ -913,15 +650,13 @@ BYTEA           bytea           variable-length byte array (null-byte safe)
     );
 
    See the create_sequence manual page for more information about
-   sequences. You can also use each row's OID field as a unique value.
-   However, if you need to dump and reload the database, you need to use
-   pg_dump's -o option or COPY WITH OIDS option to preserve the OIDs.
+   sequences.
    
-    4.14.2) How do I get the value of a SERIAL insert?
-    
+  4.11.2) How do I get the value of a SERIAL insert?
+  
    One approach is to retrieve the next SERIAL value from the sequence
    object with the nextval() function before inserting and then insert it
-   explicitly. Using the example table in 4.14.1, an example in a
+   explicitly. Using the example table in 4.11.1, an example in a
    pseudo-language would look like this:
     new_id = execute("SELECT nextval('person_id_seq')");
     execute("INSERT INTO person (id, name) VALUES (new_id, 'Blaise Pascal')");
@@ -929,85 +664,45 @@ BYTEA           bytea           variable-length byte array (null-byte safe)
    You would then also have the new value stored in new_id for use in
    other queries (e.g., as a foreign key to the person table). Note that
    the name of the automatically created SEQUENCE object will be named
-   <table>_<serialcolumn>_seq, where table and serialcolumn are the names
-   of your table and your SERIAL column, respectively.
+   <table>_< serialcolumn>_seq, where table and serialcolumn are the
+   names of your table and your SERIAL column, respectively.
    
    Alternatively, you could retrieve the assigned SERIAL value with the
    currval() function after it was inserted by default, e.g.,
     execute("INSERT INTO person (name) VALUES ('Blaise Pascal')");
     new_id = execute("SELECT currval('person_id_seq')");
 
-   Finally, you could use the OID returned from the INSERT statement to
-   look up the default value, though this is probably the least portable
-   approach, and the oid value will wrap around when it reaches 4
-   billion. In Perl, using DBI with the DBD::Pg module, the oid value is
-   made available via $sth->{pg_oid_status} after $sth->execute().
-   
-    4.14.3) Doesn't currval() lead to a race condition with other users?
-    
-   No. currval() returns the current value assigned by your backend, not
-   by all users.
-   
-    4.14.4) Why aren't my sequence numbers reused on transaction abort? Why are
-    there gaps in the numbering of my sequence/SERIAL column?
-    
+  4.11.3) Doesn't currval() lead to a race condition with other users?
+  
+   No. currval() returns the current value assigned by your session, not
+   by all sessions.
+   
+  4.11.4) Why aren't my sequence numbers reused on transaction abort? Why are
+  there gaps in the numbering of my sequence/SERIAL column?
+  
    To improve concurrency, sequence values are given out to running
    transactions as needed and are not locked until the transaction
    completes. This causes gaps in numbering from aborted transactions.
    
-    4.15) What is an OID? What is a TID?
-    
-   OIDs are PostgreSQL's answer to unique row ids. Every row that is
-   created in PostgreSQL gets a unique OID. All OIDs generated during
-   initdb are less than 16384 (from include/access/transam.h). All
-   user-created OIDs are equal to or greater than this. By default, all
-   these OIDs are unique not only within a table or database, but unique
-   within the entire PostgreSQL installation.
-   
-   PostgreSQL uses OIDs in its internal system tables to link rows
-   between tables. These OIDs can be used to identify specific user rows
-   and used in joins. It is recommended you use column type OID to store
-   OID values. You can create an index on the OID field for faster
-   access.
-   
-   OIDs are assigned to all new rows from a central area that is used by
-   all databases. If you want to change the OID to something else, or if
-   you want to make a copy of the table, with the original OIDs, there is
-   no reason you can't do it:
-        CREATE TABLE new_table(mycol int);
-        SELECT oid AS old_oid, mycol INTO tmp_table FROM old_table;
-        COPY tmp_table TO '/tmp/pgtable';
-        COPY new_table WITH OIDS FROM '/tmp/pgtable';
-        DROP TABLE tmp_table;
-
-   OIDs are stored as 4-byte integers, and will overflow at 4 billion. No
-   one has reported this ever happening, and we plan to have the limit
-   removed before anyone does.
-   
-   TIDs are used to identify specific physical rows with block and offset
-   values. TIDs change after rows are modified or reloaded. They are used
-   by index entries to point to physical rows.
-   
-    4.16) What is the meaning of some of the terms used in PostgreSQL?
-    
-   Some of the source code and older documentation use terms that have
-   more common usage. Here are some:
-     * table, relation, class
-     * row, record, tuple
-     * column, field, attribute
-     * retrieve, select
-     * replace, update
-     * append, insert
-     * OID, serial value
-     * portal, cursor
-     * range variable, table name, table alias
-       
-   A list of general database terms can be found at:
-   http://hea-www.harvard.edu/MST/simul/software/docs/pkgs/pgsql/glossary
-   /glossary.html
-   
-    4.17) Why do I get the error "ERROR: Memory exhausted in AllocSetAlloc()"?
-    
+  4.12) What is an OID? What is a CTID?
+  
+   Every row that is created in PostgreSQL gets a unique OID unless
+   created WITHOUT OIDS. OIDs are autotomatically assigned unique 4-byte
+   integers that are unique across the entire installation. However, they
+   overflow at 4 billion, and then the OIDs start being duplicated.
+   PostgreSQL uses OIDs to link its internal system tables together.
+   
+   To uniquely number columns in user tables, it is best to use SERIAL
+   rather than OIDs because SERIAL sequences are unique only within a
+   single table. and are therefore less likely to overflow. SERIAL8 is
+   available for storing eight-byte sequence values.
+   
+   CTIDs are used to identify specific physical rows with block and
+   offset values. CTIDs change after rows are modified or reloaded. They
+   are used by index entries to point to physical rows.
+   
+  4.13) Why do I get the error "ERROR: Memory exhausted in AllocSetAlloc()"?
+  
    You probably have run out of virtual memory on your system, or your
    kernel has a low limit for certain resources. Try this before starting
    postmaster:
@@ -1021,53 +716,17 @@ BYTEA           bytea           variable-length byte array (null-byte safe)
    problem with the SQL client because the backend is returning too much
    data, try it before starting the client.
    
-    4.18) How do I tell what PostgreSQL version I am running?
-    
+  4.14) How do I tell what PostgreSQL version I am running?
+  
    From psql, type SELECT version();
    
-    4.19) Why does my large-object operations get "invalid large obj
-    descriptor"?
-    
-   You need to put BEGIN WORK and COMMIT around any use of a large object
-   handle, that is, surrounding lo_open ... lo_close.
-   
-   Currently PostgreSQL enforces the rule by closing large object handles
-   at transaction commit. So the first attempt to do anything with the
-   handle will draw invalid large obj descriptor. So code that used to
-   work (at least most of the time) will now generate that error message
-   if you fail to use a transaction.
-   
-   If you are using a client interface like ODBC you may need to set
-   auto-commit off.
-   
-    4.20) How do I create a column that will default to the current time?
-    
+  4.15) How do I create a column that will default to the current time?
+  
    Use CURRENT_TIMESTAMP:
-CREATE TABLE test (x int, modtime timestamp DEFAULT CURRENT_TIMESTAMP );
+    CREATE TABLE test (x int, modtime TIMESTAMP DEFAULT CURRENT_TIMESTAMP );
 
-    4.21) Why are my subqueries using IN so slow?
-    
-   In versions prior to 7.4, subqueries were joined to outer queries by
-   sequentially scanning the result of the subquery for each row of the
-   outer query. If the subquery returns only a few rows and the outer
-   query returns many rows, IN is fastest. To speed up other queries,
-   replace IN with EXISTS:
-    SELECT *
-    FROM tab
-    WHERE col IN (SELECT subcol FROM subtab);
-
-   to:
-    SELECT *
-    FROM tab
-    WHERE EXISTS (SELECT subcol FROM subtab WHERE subcol = col);
-
-   For this to be fast, subcol should be an indexed column.
-   
-   In version 7.4 and later, IN actually uses the same sophisticated join
-   techniques as normal queries, and is prefered to using EXISTS.
-   
-    4.22) How do I perform an outer join?
-    
+  4.16) How do I perform an outer join?
+  
    PostgreSQL supports outer joins using the SQL standard syntax. Here
    are two examples:
     SELECT *
@@ -1084,37 +743,26 @@ CREATE TABLE test (x int, modtime timestamp DEFAULT CURRENT_TIMESTAMP );
    is assumed in LEFT, RIGHT, and FULL joins. Ordinary joins are called
    INNER joins.
    
-   In previous releases, outer joins can be simulated using UNION and NOT
-   IN. For example, when joining tab1 and tab2, the following query does
-   an outer join of the two tables:
-    SELECT tab1.col1, tab2.col2
-    FROM tab1, tab2
-    WHERE tab1.col1 = tab2.col1
-    UNION ALL
-    SELECT tab1.col1, NULL
-    FROM tab1
-    WHERE tab1.col1 NOT IN (SELECT tab2.col1 FROM tab2)
-    ORDER BY col1
-
-    4.23) How do I perform queries using multiple databases?
-    
+  4.17) How do I perform queries using multiple databases?
+  
    There is no way to query a database other than the current one.
    Because PostgreSQL loads database-specific system catalogs, it is
    uncertain how a cross-database query should even behave.
    
    contrib/dblink allows cross-database queries using function calls. Of
-   course, a client can make simultaneous connections to different
+   course, a client can also make simultaneous connections to different
    databases and merge the results on the client side.
    
-    4.24) How do I return multiple rows or columns from a function?
-    
-   In 7.3, you can easily return multiple rows or columns from a
-   function, http://techdocs.postgresql.org/guides/SetReturningFunctions.
+  4.18) How do I return multiple rows or columns from a function?
+  
+   It is easy using set-returning functions,
+   http://techdocs.postgresql.org/guides/SetReturningFunctions
+   .
    
-    4.25) Why can't I reliably create/drop temporary tables in PL/PgSQL
-    functions?
-    
-   PL/PgSQL caches function contents, and an unfortunate side effect is
+  4.19) Why do I get "relation with OID ##### does not exist" errors when
+  accessing temporary tables in PL/PgSQL functions?
+  
+   PL/PgSQL caches function scripts, and an unfortunate side effect is
    that if a PL/PgSQL function accesses a temporary table, and that table
    is later dropped and recreated, and the function called again, the
    function will fail because the cached function contents still point to
@@ -1122,47 +770,34 @@ CREATE TABLE test (x int, modtime timestamp DEFAULT CURRENT_TIMESTAMP );
    table access in PL/PgSQL. This will cause the query to be reparsed
    every time.
    
-    4.26) What encryption options are available?
-    
-     * contrib/pgcrypto contains many encryption functions for use in SQL
-       queries.
-     * To encrypt transmission from the client to the server, the server
-       must have the ssl option set to true in postgresql.conf, and an
-       applicable host or hostssl record must exist in pg_hba.conf, and
-       the client sslmode must not be disable. (Note that it is also
-       possible to use a third-party encrypted transport, such as stunnel
-       or ssh, rather than PostgreSQL's native SSL connections.)
-     * Database user passwords are automatically encrypted when stored in
-       version 7.3. In previous versions, you must enable the option
-       PASSWORD_ENCRYPTION in postgresql.conf.
-     * The server can run using an encrypted file system.
-     _________________________________________________________________
-   
-                            Extending PostgreSQL
-                                      
-    5.1) I wrote a user-defined function. When I run it in psql, why does it
-    dump core?
-    
-   The problem could be a number of things. Try testing your user-defined
-   function in a stand-alone test program first.
-   
-    5.2) How can I contribute some nifty new types and functions to PostgreSQL?
-    
-   Send your extensions to the pgsql-hackers mailing list, and they will
-   eventually end up in the contrib/ subdirectory.
-   
-    5.3) How do I write a C function to return a tuple?
-    
-   In versions of PostgreSQL beginning with 7.3, table-returning
-   functions are fully supported in C, PL/PgSQL, and SQL. See the
-   Programmer's Guide for more information. An example of a
-   table-returning function defined in C can be found in
-   contrib/tablefunc.
-   
-    5.4) I have changed a source file. Why does the recompile not see the
-    change?
-    
-   The Makefiles do not have the proper dependencies for include files.
-   You have to do a make clean and then another make. If you are using
-   GCC you can use the --enable-depend option of configure to have the
-   compiler compute the dependencies automatically.
+  4.20) What replication solutions are available?
+  
+   Though "replication" is a single term, there are several technologies
+   for doing replication, with advantages and disadvantages for each.
+   
+   Master/slave replication allows a single master to receive read/write
+   queries, while slaves can only accept read/SELECT queries. The most
+   popular freely available master-slave PostgreSQL replication solution
+   is Slony-I.
+   
+   Multi-master replication allows read/write queries to be sent to
+   multiple replicated computers. This capability also has a severe
+   impact on performance due to the need to synchronize changes between
+   servers. Pgcluster is the most popular such solution freely available
+   for PostgreSQL.
+   
+   There are also commercial and hardware-based replication solutions
+   available supporting a variety of replication models.
+   
+  4.21) Why are my table and column names not recognized in my query?
+  
+   The most common cause is the use of double-quotes around table or
+   column names during table creation. When double-quotes are used, table
+   and column names (called identifiers) are stored case-sensitive,
+   meaning you must use double-quotes when referencing the names in a
+   query. Some interfaces, like pgAdmin, automatically double-quote
+   identifiers during table creation. So, for identifiers to be
+   recognized, you must either:
+     * Avoid double-quoting identifiers when creating tables
+     * Use only lowercase characters in identifiers
+     * Double-quote identifiers when referencing them in queries
index 62904e275f4f5d218a4989f04086cdb4e9627cd3..64ccccb2218ec3483196ab417d57c26a4e71f76b 100644 (file)
@@ -1,5 +1,5 @@
 From: Zeugswetter Andreas <ZeugswetterA@spardat.at>
-$Date: 2005/07/30 03:39:40 $
+$Date: 2005/09/22 22:14:10 $
 
 On AIX 4.3.2 PostgreSQL compiled with the native IBM compiler xlc
 (vac.C 5.0.1) passes all regression tests.  Other versions of OS and
index 37169e479b527d700e8550babab852e591c951aa..6b75c7be449eb2a788064207aa281669e197d758 100644 (file)
@@ -1,7 +1,7 @@
 
           Developer's Frequently Asked Questions (FAQ) for PostgreSQL
                                        
-   Last updated: Wed Jan 5 17:36:58 EST 2005
+   Last updated: Mon Sep 19 21:28:08 EDT 2005
    
    Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
    
@@ -9,21 +9,21 @@
    http://www.postgresql.org/files/documentation/faqs/FAQ_DEV.html.
      _________________________________________________________________
    
-                             General Questions
-                                      
+General Questions
+
    1.1) How do I get involved in PostgreSQL development?
    1.2) What development environment is required to develop code?
    1.3) What areas need work?
    1.4) What do I do after choosing an item to work on?
-   1.5) Where can I learn more about the code?
-   1.6) I've developed a patch, what next?
+   1.5) I've developed a patch, what next?
+   1.6) Where can I learn more about the code?
    1.7) How do I download/update the current source tree?
    1.8) How do I test my changes?
    1.9) What tools are available for developers?
    1.10) What books are good for developers?
    1.11) What is configure all about?
    1.12) How do I add a new port?
-   1.13) Why don't you use threads/raw devices/async-I/O, <insert your
+   1.13) Why don't you use threads, raw devices, async-I/O, <insert your
    favorite wizz-bang feature here>?
    1.14) How are RPM's packaged?
    1.15) How are CVS branches handled?
@@ -31,8 +31,8 @@
    1.17) Where can I get technical assistance?
    1.18) How do I get involved in PostgreSQL web site development?
    
-                            Technical Questions
-                                      
+Technical Questions
+
    2.1) How do I efficiently access information in tables from the
    backend code?
    2.2) Why are table, column, type, function, view names sometimes
    2.5) Why do we use palloc() and pfree() to allocate memory?
    2.6) What is ereport()?
    2.7) What is CommandCounterIncrement()?
+   2.8) What debugging features are available?
      _________________________________________________________________
    
-                             General Questions
-                                      
-  1.1) How go I get involved in PostgreSQL development?
+General Questions
+
+  1.1) How do I get involved in PostgreSQL development?
   
    Download the code and have a look around. See 1.7.
    
@@ -84,7 +85,7 @@
   
    Outstanding features are detailed in the TODO list. This is located in
    doc/TODO in the source distribution or at
-   http://developer.postgresql.org/todo.php.
+   http://www.postgresql.org/docs/faqs.TODO.html.
    
    You can learn more about these features by consulting the archives,
    the SQL standards and the recommend texts (see 1.10).
   
    Send an email to pgsql-hackers with a proposal for what you want to do
    (assuming your contribution is not trivial). Working in isolation is
-   not advisable: others may be working on the same TODO item; you may
-   have misunderstood the TODO item; your approach may benefit from the
-   review of others.
-   
-  1.5) Where can I learn more about the code?
-  
-   Other than documentation in the source tree itself, you can find some
-   papers/presentations discussing the code at
-   http://www.postgresql.org/developer.
-   
-  1.6) I've developed a patch, what next?
+   not advisable because others might be working on the same TODO item,
+   or you might have misunderstood the TODO item. In the email, discuss
+   both the internal implementation method you plan to use, and any
+   user-visible changes (new syntax, etc). For complex patches, it is
+   important to get community feeback on your proposal before starting
+   work. Failure to do so might mean your patch is rejected.
+   
+   A web site is maintained for patches awaiting review,
+   http://momjian.postgresql.org/cgi-bin/pgpatches, and those that are
+   being kept for the next release,
+   http://momjian.postgresql.org/cgi-bin/pgpatches2.
+   
+  1.5) I've developed a patch, what next?
   
    Generate the patch in contextual diff format. If you are unfamiliar
-   with this, you may find the script src/tools/makediff/difforig useful.
+   with this, you might find the script src/tools/makediff/difforig
+   useful.
    
    Ensure that your patch is generated against the most recent version of
    the code. If it is a patch adding new functionality, the most recent
-   version is cvs HEAD; if it is a bug fix, this will be the most
+   version is CVS HEAD; if it is a bug fix, this will be the most
    recently version of the branch which suffers from the bug (for more on
    branches in PostgreSQL, see 1.15).
    
    Finally, submit the patch to pgsql-patches@postgresql.org. It will be
-   reviewed by other contributors to the project and may be either
-   accepted or sent back for further work.
+   reviewed by other contributors to the project and will be either
+   accepted or sent back for further work. Also, please try to include
+   documentation changes as part of the patch. If you can't do that, let
+   us know and we will manually update the documentation when the patch
+   is applied.
+   
+  1.6) Where can I learn more about the code?
+  
+   Other than documentation in the source tree itself, you can find some
+   papers/presentations discussing the code at
+   http://www.postgresql.org/developer.
    
   1.7) How do I download/update the current source tree?
   
    developers can just get the most recent source tree snapshot from
    ftp://ftp.postgresql.org.
    
-   Regular developers may want to take advantage of anonymous access to
+   Regular developers might want to take advantage of anonymous access to
    our source code management system. The source tree is currently hosted
    in CVS. For details of how to obtain the source from CVS see
    http://developer.postgresql.org/docs/postgres/cvs.html.
    Basic system testing
    
    The easiest way to test your code is to ensure that it builds against
-   the latest verion of the code and that it does not generate compiler
+   the latest version of the code and that it does not generate compiler
    warnings.
    
    It is worth advised that you pass --enable-cassert to configure. This
    test suite. To do this, issue "make check" in the root directory of
    the source tree. If any tests failure, investigate.
    
-   If you've deliberately changed existing behaviour, this change may
+   If you've deliberately changed existing behavior, this change might
    cause a regression test failure but not any actual regression. If so,
    you should also patch the regression test suite.
    
    There have been a number of discussions about other testing frameworks
    and some developers are exploring these ideas.
    
+   Keep in mind the Makefiles do not have the proper dependencies for
+   include files. You have to do a make clean and then another make. If
+   you are using GCC you can use the --enable-depend option of configure
+   to have the compiler compute the dependencies automatically.
+   
   1.9) What tools are available for developers?
   
    First, all the files in the src/tools directory are designed for
    src/makefiles directory for port-specific Makefile handling. There is
    a backend/port directory if you need special files for your OS.
    
-  1.13) Why don't you use threads/raw devices/async-I/O, <insert your favorite
-  wizz-bang feature here>?
+  1.13) Why don't you use threads, raw devices, async-I/O, <insert your
+  favorite wizz-bang feature here>?
   
    There is always a temptation to use the newest operating system
    features as soon as they arrive. We resist that temptation.
     1. A set of patches to make certain portions of the source tree
        'behave' in the different environment of the RPMset;
     2. The initscript;
-    3. Any other ancilliary scripts and files;
+    3. Any other ancillary scripts and files;
     4. A README.rpm-dist document that tries to adequately document both
        the differences between the RPM build and the WHY of the
        differences, as well as useful RPM environment operations (like,
    want to contain the toplevel "pgsql" directory and say
     cvs ... checkout pgsql
 
-   To get a past branch, you cd to whereever you want it and say
+   To get a past branch, you cd to wherever you want it and say
     cvs ... checkout -r BRANCHNAME pgsql
 
    For example, just a couple days ago I did
    questions about development of new features, on IRC at
    irc.freenode.net in the #postgresql channel.
    
-  1.18) How go I get involved in PostgreSQL web site development?
+  1.18) How do I get involved in PostgreSQL web site development?
   
    PostgreSQL website development is discussed on the
    pgsql-www@postgresql.org mailing list. The is a project page where the
    source code is available at
    http://gborg.postgresql.org/project/pgweb/projdisplay.php , the code
    for the next version of the website is under the "portal" module. You
-   will al so find code for the "techdocs" website if you would like to
+   will also find code for the "techdocs" website if you would like to
    contribute to that. A temporary todo list for current website
    development issues is available at http://xzilla.postgresql.org/todo
    
-                            Technical Questions
-                                      
+Technical Questions
+
   2.1) How do I efficiently access information in tables from the backend code?
   
    You first need to find the tuples(rows) you are interested in. There
    values you want changed. It returns a palloc'ed tuple, which you pass
    to heap_replace(). You can delete tuples by passing the tuple's t_self
    to heap_destroy(). You use t_self for heap_update() too. Remember,
-   tuples can be either system cache copies, which may go away after you
-   call ReleaseSysCache(), or read directly from disk buffers, which go
-   away when you heap_getnext(), heap_endscan, or ReleaseBuffer(), in the
-   heap_fetch() case. Or it may be a palloc'ed tuple, that you must
+   tuples can be either system cache copies, which might go away after
+   you call ReleaseSysCache(), or read directly from disk buffers, which
+   go away when you heap_getnext(), heap_endscan, or ReleaseBuffer(), in
+   the heap_fetch() case. Or it may be a palloc'ed tuple, that you must
    pfree() when finished.
    
   2.2) Why are table, column, type, function, view names sometimes referenced
@@ -653,7 +671,7 @@ typedef struct nameData
    Here are some of the List manipulation commands:
    
    lfirst(i), lfirst_int(i), lfirst_oid(i)
-          return the data (a point, inteter and OID respectively) at list
+          return the data (a point, integer and OID respectively) at list
           element i.
           
    lnext(i)
@@ -718,8 +736,8 @@ typedef struct nameData
    routines in src/backend/nodes used to create, copy, read, and output
    those structures (in particular, the files copyfuncs.c and
    equalfuncs.c. Make sure you add support for your new field to these
-   files. Find any other places the structure may need code for your new
-   field. mkid is helpful with this (see 1.9).
+   files. Find any other places the structure might need code for your
+   new field. mkid is helpful with this (see 1.9).
    
   2.5) Why do we use palloc() and pfree() to allocate memory?
   
@@ -757,3 +775,37 @@ typedef struct nameData
    to be broken into pieces so each piece can see rows modified by
    previous pieces. CommandCounterIncrement() increments the Command
    Counter, creating a new part of the transaction.
+   
+  2.8) What debugging features are available?
+  
+   First, try running configure with the --enable-cassert option, many
+   assert()s monitor the progress of the backend and halt the program
+   when something unexpected occurs.
+   
+   The postmaster has a -d option that allows even more detailed
+   information to be reported. The -d option takes a number that
+   specifies the debug level. Be warned that high debug level values
+   generate large log files.
+   
+   If the postmaster is not running, you can actually run the postgres
+   backend from the command line, and type your SQL statement directly.
+   This is recommended only for debugging purposes. If you have compiled
+   with debugging symbols, you can use a debugger to see what is
+   happening. Because the backend was not started from postmaster, it is
+   not running in an identical environment and locking/backend
+   interaction problems might not be duplicated.
+   
+   If the postmaster is running, start psql in one window, then find the
+   PID of the postgres process used by psql using SELECT
+   pg_backend_pid(). Use a debugger to attach to the postgres PID. You
+   can set breakpoints in the debugger and issue queries from psql. If
+   you are debugging postgres startup, you can set PGOPTIONS="-W n", then
+   start psql. This will cause startup to delay for n seconds so you can
+   attach to the process with the debugger, set any breakpoints, and
+   continue through the startup sequence.
+   
+   You can also compile with profiling to see what functions are taking
+   execution time. The backend profile files will be deposited in the
+   pgsql/data directory. The client profile file will be put in the
+   client's current directory. Linux requires a compile with
+   -DLINUX_PROFILE for proper profiling.
index 4fd105abac776abbb24ccadfb83b7286eaa3555b..d467e4796ad0238aa93a8cd31438275675b633c6 100644 (file)
@@ -6,7 +6,7 @@
    Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
    
    The most recent version of this document can be viewed at
-   http://momjian.postgresql.org/main/writings/pgsql/project/win32.html.
+   http://www.postgresql.org/docs/faqs.FAQ_MINGW.html.
    
    The FAQ for running PostgreSQL on native Win32 is at
    http://pginstaller.projects.postgresql.org/FAQ_windows.html.
index 63603c07be5decdd034eafb0438c5d6199d6f745..99f5ba4c630951daf470978c435530739f1e49cb 100644 (file)
+                                PostgreSQL GyIK
 
-                PostgreSQL GyIK
-   Utolsó módosítás dátuma: 2002 Okt 20.
-   Fordítás aktualizálása: 2003 január
-   
-   A GyIK karbantartója: Bruce Momjian (pgman@candle.pha.pa.us)
-   Fordító: Hornyák László (hornyakl.NOSPAM@inf.elte.hu)
-
-   A legfrissebb verzió itt érhetõ el (angol):
-   http://www.PostgreSQL.org/docs/faq-english.html.
-   
-   Legfrissebb magyar nyelvû verzió:
-   http://www.rootshell.be/~hornyakl/downloads/postgres_faq/
-   
-   Platform specifikus kérdések:
-   http://www.PostgreSQL.org/users-lounge/docs/faq.html.
-     _________________________________________________________________
-   
-                             Általános kérdések
-                                      
-   1.1) Mi a PostgreSQL? Hogy kell kimondani?
-   1.2) Mik a PostgreSQL felhasználási feltételei?
-   1.3) Milyen UNIX operációs rendszereken fut PostgreSQL?
-   1.4) Milyen nem UNIX operációs rendszerek elérhetõek?
-   1.5) Hogyan tudok PostgreSQL-t szerezni?
-   1.6) Hogyan kapok terméktámogatást?
-   1.7) Melyik a legfrissebb kiadás?
-   1.8) Milyen dokumentáció áll rendelkezésre?
-   1.9) Hogyan találok információt hibákról vagy hiányzó funkcionalításról?
-   1.10) Hogy tanuljam meg az SQL nyelvet?
-   1.11) A PostgreSQL 2000. év kompatibilis?
-   1.12) Hogyan lehet csatlakozni a fejlesztõ csapathoz?
-   1.13) Hogyan küldjek hibajelentést?
-   1.14) Milyen a PostgreSQL más DBMS-ekkel összehasonlítva?
-   1.15) Hogyan tudom üzletileg segiteni a PostgreSQL-t?
-   
-                           Felhasználói kliens kérdések
-                                      
-   2.1) Van ODBC meghajtó PostgreSQL-hez?
-   2.2) Milyen eszközök állnak rendelkezésre PostgreSQL Web fejlesztésekhez?
-   2.3) Van a PostgreSQL-hez grafikus felhasználói felület ? Riport 
-   generátor? Beágyazott lekérdezõ nyelv felület?
-   2.4) Milyen programozási nyelvekkel lehet elérni a PostgreSQL szervert?
-   
-                          Adminisztrációs kérdések
-                                      
-   3.1) Hogyan tudom a PostgreSQL-t /usr/local/pgsql -tõl eltérõ helyre 
+ Utolso modosítás dátuma: 2005 május 9.
+
+ Fordítás aktualizálása: 2005 június
+
+ A GyIK karbantartoja: Bruce Momjian (pgman@candle.pha.pa.us)
+
+ Fordíto: Hornyák Lászlo
+ (laszlo.hornyak.nospam@gmail.com)
+
+ A legfrissebb verzio itt érhetõ el (angol):
+
+ http://www.PostgreSQL.org/docs/faq-english.html.
+
+ Legfrissebb magyar nyelvû verzio:
+
+ http://hackers.forgeahead.hu/space/PostgreSQL/GYIK
+
+ Platform specifikus kérdések:
+
+ http://www.PostgreSQL.org/users-lounge/docs/faq.html.
+
+     ----------------------------------------------------------------------
+
+Általános kérdések
+
+   1.1 Mi a PostgreSQL? Hogy kell kimondani?
+   1.2 Mik a PostgreSQL felhasználási feltételei?
+   1.3 Milyen UNIX operácios rendszereken fut PostgreSQL?
+   1.4 Milyen nem UNIX operácios rendszerek elérhetõek?
+   1.5 Hogyan tudok PostgreSQL-t szerezni?
+   1.6 Hogyan kapok terméktámogatást?
+   1.7 Melyik a legfrissebb kiadás?
+   1.8 Milyen dokumentácio áll rendelkezésre?
+   1.9 Hogyan találok informáciot hibákrol vagy hiányzo funkcionalításrol?
+   1.10 Hogy tanuljam meg az SQL nyelvet?
+   1.11 A PostgreSQL 2000. év kompatibilis?
+   1.12 Hogyan lehet csatlakozni a fejlesztõ csapathoz?
+   1.13 Hogyan küldjek hibajelentést?
+   1.14 Milyen a PostgreSQL más DBMS-ekkel összehasonlítva?
+   1.15 Hogyan tudom üzletileg segiteni a PostgreSQL-t?
+   1.16 Ki irányítja a PostgreSQL-t?
+
+Felhasználoi kliens kérdések
+
+   2.1 Van ODBC meghajto PostgreSQL-hez?
+   2.2 Milyen eszközök állnak rendelkezésre PostgreSQL Web fejlesztésekhez?
+   2.3 Van a PostgreSQL-hez grafikus felhasználoi felület ? Riport generátor?
+   Beágyazott lekérdezõ nyelv felület?
+   2.4 Milyen programozási nyelvekkel lehet elérni a PostgreSQL szervert?
+
+Adminisztrácios kérdések
+
+   3.1 Hogyan tudom a PostgreSQL-t /usr/local/pgsql -tõl eltérõ helyre
    installálni?
-   3.2) AMikor elindítom a postmaster-t, egy "Bad System Call"-t vagy core 
+   3.2 AMikor elindítom a postmaster-t, egy "Bad System Call"-t vagy core
    dump-ot kapok. Miért?
-   3.3) Amikor megpróbálom inditani a postmaster-t, "IpcMemoryCreate" hibákat 
+   3.3 Amikor megprobálom inditani a postmaster-t, "IpcMemoryCreate" hibákat
    kapok. Miért?
-   3.4) Amikor megpróbálom inditani a postmaster-t, "IpcSemaphoreCreate" hibákat
-   kapok. Miért?
-   3.5) Hogyan tudom kontrollálni a más gépekrõl érkezõ kapcsolat kéréseket?
-   3.6) Hogyan tudom nagyobb teljesítményre hangolni az adatbázisomat?
-   3.7) Milyen hibakeresõ lehetõségek érhetõek el?
-   3.8) Miért kapok "Sorry, too many clients" hibát csatlakozásnál?
-   3.9) Mi van pgsql_tmp könyvtárban?
-   3.10) Miért kell dumpolni és újratölteni PostgreSQL kiadás váltásánál?
-   
-                           Mûködtetési kérdések
-                                      
-   4.1) Mi a különbség a bináris és a normál kurzorok között?
-   4.2) Hogyan tudom select-elni a lekérdezés elsõ pár sorát?
-   4.3) Hogy tudom kilistázni a táblákat vagy más dolgokat a PostgreSQL-ben?
-   4.4) Hogyan tudok eltávolítani egy oszlopot egy táblából?
-   4.5) Mi a maximális mérete egy sornak, egy táblának vagy egy adatbázisnak?
-   4.6) Mekkora adatbázis lemez terület szükséges egy tipikus szöveg állomány 
+   3.4 Amikor megprobálom inditani a postmaster-t, "IpcSemaphoreCreate"
+   hibákat kapok. Miért?
+   3.5 Hogyan tudom kontrollálni a más gépekrõl érkezõ kapcsolat kéréseket?
+   3.6 Hogyan tudom nagyobb teljesítményre hangolni az adatbázisomat?
+   3.7 Milyen hibakeresõ lehetõségek érhetõek el?
+   3.8 Miért kapok "Sorry, too many clients" hibát csatlakozásnál?
+   3.9 Mi van pgsql_tmp könyvtárban?
+   3.10 Miért kell dumpolni és újratölteni PostgreSQL kiadás váltásánál?
+
+Mûködtetési kérdések
+
+   4.1 Mi a különbség a bináris és a normál kurzorok között?
+   4.2 Hogyan tudom select-elni a lekérdezés elsõ pár sorát?
+   4.3 Hogy tudom kilistázni a táblákat vagy más dolgokat a PostgreSQL-ben?
+   4.4 Hogyan tudok eltávolítani egy oszlopot egy táblábol?
+   4.5 Mi a maximális mérete egy sornak, egy táblának vagy egy adatbázisnak?
+   4.6 Mekkora adatbázis lemez terület szükséges egy tipikus szöveg állomány
    tárolásához?
-   4.7) Hogy tudhatom meg milyen táblák, indexek, adatbázisok vagy felhasználók
-   vannak definiálva?
-   4.8) A lekérdezéseim lassúak, vagy nem használják az indexeket. Miért?
-   4.9) Hogy tudom ellenõrizni, hogy optimalizálta a lekérdezés optimalizáló a 
+   4.7 Hogy tudhatom meg milyen táblák, indexek, adatbázisok vagy
+   felhasználok vannak definiálva?
+   4.8 A lekérdezéseim lassúak, vagy nem használják az indexeket. Miért?
+   4.9 Hogy tudom ellenõrizni, hogy optimalizálta a lekérdezés optimalizálo a
    lekérdezésem?
-   4.10) Mi az R-tree index?
-   4.11) Mi a Genetic Query Optimizer?
-   4.12) Hogyan tudok regexp keresést és case-insensitive regexp keresést 
+   4.10 Mi az R-tree index?
+   4.11 Mi a Genetic Query Optimizer?
+   4.12 Hogyan tudok regexp keresést és case-insensitive regexp keresést
    használni? Hogyan tudok indexet használni case-insensitive kereséshez?
-   4.13) Hogyan tudom észlelni egy lekérdezésban, ha egy mezõ NULL?
-   4.14) Mi a különbség a különbözõ karaktertípusok között?
-   4.15.1) Hogyan tudok létrehozni automatikusan növekvõ értékû mezõt?
-   4.15.2) Hogyan kaphatom meg egy SERIAL beszúrás értékét?
-   4.15.3) A currval() és a nextval() nem teremt holtpont veszélyes helyzetet 
-   a felhasználók között?
-   4.15.4) Miért nem használódnak fel újra a sequence számok tranzakció abort 
-   esetén?
-   Miért vannak problémák a serial oszlopok számozásával?
-   4.16) Mi a OID? Mi a TID?
-   4.17) Mi a PostgreSQL-ben használt kifejezések jelentése?
-   4.18) Miért kapom ezt a hibát: "ERROR: Memory exhausted in
+   4.13 Hogyan tudom észlelni egy lekérdezésban, ha egy mezõ NULL?
+   4.14 Mi a különbség a különbözõ karaktertípusok között?
+   4.15.1 Hogyan tudok létrehozni automatikusan növekvõ értékû mezõt?
+   4.15.2 Hogyan kaphatom meg egy SERIAL beszúrás értékét?
+   4.15.3 A currval() és a nextval() nem teremt holtpont veszélyes helyzetet
+   a felhasználok között?
+   4.15.4 Miért nem használodnak fel újra a sequence számok tranzakcio abort
+   esetén? Miért vannak problémák a serial oszlopok számozásával?
+   4.16 Mi a OID? Mi a TID?
+   4.17 Mi a PostgreSQL-ben használt kifejezések jelentése?
+   4.18 Miért kapom ezt a hibát: "ERROR: Memory exhausted in
    AllocSetAlloc()"?
-   4.19) Hogyan tudhatom meg PostgreSQL, milyen verziót futtatok?
-   4.20) Miért kapok "invalid large obj descriptor" hibát nagy objektumok 
+   4.19 Hogyan tudhatom meg PostgreSQL, milyen verziot futtatok?
+   4.20 Miért kapok "invalid large obj descriptor" hibát nagy objektumok
    kezelésénél?
-   4.21) Hogy hozhatok létre olyan oszlopot, aminek alapértelmezett érétke a 
+   4.21 Hogy hozhatok létre olyan oszlopot, aminek alapértelmezett érétke a
    jelenlegi idõ?
-   4.22) Miért olyan lassúak az al-lekérdezéseim IN-nel?
-   4.23) Hogyan tudok outer join-t végrehajtani?
-   4.24) Hogyan tudok több adatbázison végrehajtani lekérdezést?
-   4.25) Hogy tudok több soros vagy oszlopos eredményt visszaadni egy 
-   funkcióból?
-   4.26) Miért nem tudom megbizhatóan létrehozni és törölni az átmeneti 
-   táblákat a PL/pgSQL funkciókban?
-   4.27) Milyen replikációs lehetõségek vannak?
-   4.28) Milyen kódolási lehetõségek vannak?
-   
-                            A PostgreSQL kiterjesztése
-                                      
-   5.1) Írtam egy felhasználói funkciót. Miért core dumpol az adatbázis amikor 
-   használom?
-   5.2) Hogyan lehet új adattípusokat és funkciókat hozzáadni a PostgreSQL 
-   disztribúcióhoz?
-   5.3) Hogyan lehet olyan C funkciót írni, ami Tuple-t ad vissza?
-   (több soros több oszlopos eredmények)
-   5.4) Megváltoztattam egy forrás állományt. Miért nem változik a bináris 
+   4.22 Miért olyan lassúak az al-lekérdezéseim IN-nel?
+   4.23 Hogyan tudok outer join-t végrehajtani?
+   4.24 Hogyan tudok több adatbázison végrehajtani lekérdezést?
+   4.25 Hogy tudok több soros vagy oszlopos eredményt visszaadni egy
+   funkciobol?
+   4.26 Miért nem tudom megbizhatoan létrehozni és törölni az átmeneti
+   táblákat a PL/pgSQL funkciokban?
+   4.27 Milyen replikácios lehetõségek vannak?
+   4.28 Milyen kodolási lehetõségek vannak?
+
+A PostgreSQL kiterjesztése
+
+   5.1) Írtam egy felhasználoi funkciot. Miért core dumpol az adatbázis
+   amikor használom?
+   5.2) Hogyan lehet új adattípusokat és funkciokat hozzáadni a PostgreSQL
+   disztribúciohoz?
+   5.3) Hogyan lehet olyan C funkciot írni, ami Tuple-t ad vissza? (több
+   soros több oszlopos eredmények)
+   5.4) Megváltoztattam egy forrás állományt. Miért nem változik a bináris
    újrafordítás után?
-     _________________________________________________________________
-   
-                                      
-                             Általános kérdések
-                                      
-    
-   1.1) Mi a PostgreSQL? Hogy kell kimondani?
-   Így ejstd ki: Post-Gres-Q-L. 
+
+     ----------------------------------------------------------------------
+
+Általános kérdések
+
+   1.1 Mi a PostgreSQL? Hogy kell kimondani?
+
+   Így ejstd ki: Post-Gres-Q-L.
+
    (Vagy talán inkább töltsd le a kis mp3-at a PostgreSQL homepage-rõl)
-   
+
    A PostgreSQL a POSTGRES adatbázis management rendszer egy kiegészítése,
-   ami egy következõ generációs DBMS kutatási prototípus. Megtartja a 
+   ami egy következõ generácios DBMS kutatási prototípus. Megtartja a
    POSTGRES adatmodellét és gazdag adattípus választékát, de a PostQuel
-   lekérdezõ nyelvet az SQL egy kiterjesztett verziójával helyettesíti.
-   A PostgreSQL szabad és a teljes forráskód hozzáférhetõ.
-   
+   lekérdezõ nyelvet az SQL egy kiterjesztett verziojával helyettesíti. A
+   PostgreSQL szabad és a teljes forráskod hozzáférhetõ.
+
    A PostgreSQL fejlesztését egy csapat végzi, amelynek minden tagja
-   megtalálható a PostgreSQL fejlesztõi levelezési listán. A jelenlegi
+   megtalálhato a PostgreSQL fejlesztõi levelezési listán. A jelenlegi
    koordinátor Marc G. Fournier (scrappyp@PostgreSQL.org). Ez a csapat
-   felelõs minden fejlesztésért.
-   
-   A PostgreSQL 1.01 alkotói Andrew Yu és Jolly Chen voltak. Sokan
-   járultak hozzá portolással, teszteléssel, hibakereséssel és 
-   fejlesztéssel. Az eredeti Postgres kód, amibõl a PostgreSQL származik
-   Michael Stonebraker professzor irányítása alatt fejlesztettek az
-   egyetem programozói, tanulói és végzett tanulói.
-   
-   A szoftver ereeti neve Postgres volt. Amikor SQL funkcionalítással
-   egészítették ki 1995-ben, a nevét Postgres95-re változtatták. 1996
-   végén kapta mai nevét.
-   
-   1.2) Mik a PostgreSQL felhasználási feltételei?
-   
-   Az eredeti angol copyright szöveg: 
-   -------------------- 
-   PostgreSQL is subject to the following COPYRIGHT:
-   
-   PostgreSQL Data Base Management System
-   
-   Portions copyright (c) 1996-2002, PostgreSQL Global Development Group
-   Portions Copyright (c) 1994-6 Regents of the University of California
-   
-   Permission to use, copy, modify, and distribute this software and its
-   documentation for any purpose, without fee, and without a written
-   agreement is hereby granted, provided that the above copyright notice
-   and this paragraph and the following two paragraphs appear in all
-   copies.
-   
-   IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY
-   FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES,
-   INCLUDING LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND
-   ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF CALIFORNIA HAS BEEN
-   ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-   
-   THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
-   INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE
-   PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE UNIVERSITY OF
-   CALIFORNIA HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT,
-   UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
-   
-   The above is the BSD license, the classic open-source license. It has
-   no restrictions on how the source code may be used. We like it and
-   have no intention of changing it.
-   --------------------
-   
-   Ami nagyon leegyszerûsítve azt jelenti, hogy jogod van használni a 
-   szoftvert mindenféle ellenszolgáltatás (pénz, stb) nélkül, a forrás
-   kódot módosíthatod, és továbbadhatod, DE semmilyen, a szoftver használatából
-   következõ károsodásért nem vállal garanciát a fejlesztõ.
-   
-   A fenti a BSD licensz, egy klasszikus nyilt-forráskód licensz. Nem 
-   tartalmaz megszorításokat arra, hogy a forráskódot hogyan használod fel.
+   felelõs minden fejlesztésért. <>A PostgreSQL 1.01 alkotoi Andrew Yu és
+   Jolly Chen voltak. Sokan járultak hozzá portolással, teszteléssel,
+   hibakereséssel és fejlesztéssel. Az eredeti Postgres kod, amibõl a
+   PostgreSQL származik Michael Stonebraker professzor irányítása alatt
+   fejlesztettek az egyetem programozoi, tanuloi és végzett tanuloi. <>
+
+   A szoftver eredeti neve Postgres volt. Amikor SQL funkcionalítással
+   egészítették ki 1995-ben, a nevét Postgres95-re változtatták. 1996 végén
+   kapta mai nevét.
+
+   1.2 Mik a PostgreSQL felhasználási feltételei?
+
+    Az eredeti angol copyright szöveg:
+
+    --------------------
+
+    PostgreSQL is subject to the following COPYRIGHT:
+
+    PostgreSQL Data Base Management System
+
+    Portions copyright (c) 1996-2002, PostgreSQL Global Development Group
+
+    Portions Copyright (c) 1994-6 Regents of the University of California
+
+    Permission to use, copy, modify, and distribute this software and its
+
+    documentation for any purpose, without fee, and without a written
+
+    agreement is hereby granted, provided that the above copyright notice
+
+    and this paragraph and the following two paragraphs appear in all
+
+    copies.
+
+    IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY
+
+    FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES,
+
+    INCLUDING LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND
+
+    ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF CALIFORNIA HAS BEEN
+
+    ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+    THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
+
+    INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+
+    MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE
+
+    PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE UNIVERSITY OF
+
+    CALIFORNIA HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT,
+
+    UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+
+    --------------------
+
+   Ami nagyon leegyszerûsítve azt jelenti, hogy jogod van használni a
+   szoftvert mindenféle ellenszolgáltatás (pénz, stb) nélkül, a forrás kodot
+   modosíthatod, és továbbadhatod, DE semmilyen, a szoftver használatábol
+   következõ károsodásért nem vállal garanciát a fejlesztõ. A fenti a BSD
+   licensz, egy klasszikus nyilt-forráskod licensz. Nem tartalmaz
+   megszorításokat arra, hogy a forráskodot hogyan használod fel.
+
    Kedveljük ezt a licensz formát és nem áll szándékunkban megváltoztatni.
-   
-    1.3) Milyen UNIX operációs rendszereken fut PostgreSQL?
-   
-   Általában minden UNIX-kompatibilis operációs rendszer képes arra hogy
+
+   1.3 Milyen UNIX operácios rendszereken fut PostgreSQL?
+
+   Általában minden UNIX-kompatibilis operácios rendszer képes arra hogy
    futtassa a PostgreSQL-t. Azokat a platformokat, amiken tesztelték a
-   kiadást megtalálhatod a installációs utasítások között.
-    
-    1.4) Milyen nem UNIX operációs rendszerek elérhetõek?
-    
+   kiadást megtalálhatod a installácios utasítások között.
+
+   1.4 Milyen nem UNIX operácios rendszerek elérhetõek?
+
    Kliens
-   
+
    A libpq C függvénykönyvtárat, a psql-t és más felületeket le lehet úgy
-   fordítani, hogy fussanak MS Windows operációs rendszereken. Ebben az esetben
-   a kliens MS Windows-on fut és TCP/IP segítségével kommunikál a Unixon 
-   futó szerverrel. A "win32.mak" állomány a kiadás része, ennek segítségével
-   lehet Win32 platformokra lefordítani a libpq-t és a psql-t. A PostgreSQL
-   ODBC kliensekkel is képes kommunikálni.
-   
+   fordítani, hogy fussanak MS Windows operácios rendszereken. Ebben az
+   esetben a kliens MS Windows-on fut és TCP/IP segítségével kommunikál a
+   Unixon futo szerverrel. A "win32.mak" állomány a kiadás része, ennek
+   segítségével lehet Win32 platformokra lefordítani a libpq-t és a psql-t. A
+   PostgreSQL ODBC kliensekkel is képes kommunikálni.
+
    Szerver
-  
-   Az adatbázis szerver Cygwin segítségével fut Windows NT és Win2k 
-   rendszereken. További információ található a pgsql/doc/FAQ_MSWIN
+
+   <>Az adatbázis szerver Cygwin segítségével fut Windows NT és Win2k
+   rendszereken. További informácio találhato a pgsql/doc/FAQ_MSWIN
    állományban és a MS Windows FAQ-ban a következõ helyen:
-   http://www.PostgreSQL.org/docs/faq-mswin.html.
-   
-   Natív MS Windows NT/2000/XP portok jelenleg fejlesztés alatt állnak.
-   
-    1.5) Hogyan tudok PostgreSQL-t szerezni?
-     
-    Az elsõdleges anonim ftp oldal:
-    ftp://ftp.PostgreSQL.org/pub. 
-    A tükör oldalak listája megtalálható a fõ weboldalunkon.
-    
-    1.6) Hogyan kapok terméktámogatást?
-    
-    Az elsõdleges lista a pgsql-general@postgresql.org. Ez használható
-    a PostgreSQL-lel kapcsolatos párbeszédekre. Ha fel szeretnél íratkozni,
-    küldj egy levelet a következõ tartalommal (nem tárggyal) a 
-    pgsql-general-request@postgresql.org címre:
-     subscribe
-     end
-    
+   http://www.PostgreSQL.org/docs/faq-mswin.html.  Natív MS Windows
+   NT/2000/XP portok jelenleg fejlesztés alatt állnak.
+
+   1.5 Hogyan tudok PostgreSQL-t szerezni?
+
+   Az elsõdleges anonim ftp oldal: ftp://ftp.PostgreSQL.org/pub.
+
+   A tükör oldalak listája megtalálhato a fõ weboldalunkon.
+
+   1.6 Hogyan kapok terméktámogatást?
+
+   Az elsõdleges lista a pgsql-general@postgresql.org. Ez használhato a
+   PostgreSQL-lel kapcsolatos párbeszédekre. Ha fel szeretnél íratkozni,
+   küldj egy levelet a következõ tartalommal (nem tárggyal) a
+   pgsql-general-request@postgresql.org címre:
+
+ subscribe
+
+ end
+
    Van egy hibákkal kapcsolatos levelezési lista is:
    pgsql-bugs-request@PostgreSQL.org a következõ tartalommal:
-    subscribe
-    end
-
-   A fejleszt?i levelezési lista:
-   pgsql-hackers-request@PostgreSQL.org a következõ tertalommal:
-    subscribe
-    end
-
-   Egyéb levelezési listák találhatóak a weboldalunkon:
-   
-     http://www.PostgreSQL.org
-     
-   Van egy IRC csatorna is #PostgreSQL néven ahol felteheted kérédseid. 
-   A következõ unix paranccsal csatlakozhatsz:
+
+ subscribe
+
+ end
+
+   A fejleszto"i levelezési lista: pgsql-hackers-request@PostgreSQL.org a
+   következõ tartalommal:
+
+ subscribe
+
+ end
+
+   Egyéb levelezési listák találhatoak a weboldalunkon:
+   http://www.PostgreSQL.org
+
+   Van egy IRC csatorna is #PostgreSQL néven ahol felteheted kérédseid. A
+   következõ unix paranccsal csatlakozhatsz:
+
    irc -c '#PostgreSQL' "$USER" irc.phoenix.net.
-   
-   A kereskedelmi terméktámogatást nyújtó cégek listája elérhetö itt:
+
+   A kereskedelmi terméktámogatást nyújto cégek listája elérhetö itt:
    http://www.PostgreSQL.org/users-lounge/commercial-support.html
-   
-    1.7) Melyik a legfrissebb kiadás?
-   
-   A legfrissebb PostgreSQL kiadás a 7.3.
-   
-   A tervek szerint minden negyedik hónapban van új kiadás. 
-   
-    1.8) Milyen dokumentáció áll rendelkezésre?
-    
-   Számos kézikönyv, man oldalak és kis teszt példák találhatóak a kiadásban 
-   a doc/ könyvtár alatt. Az interneten is olvashatod a dokumentációt a 
+
+   Magyar nyelvu" levelezési lista nincs, de ha tudok segiteni a fenit e-mail
+   cimemen elérheto" vagyok.
+
+   1.7 Melyik a legfrissebb kiadás?
+
+   A legfrissebb PostgreSQL kiadás a 8.0.
+
+   A tervek szerint minden évben lesz egy nagyobb fejlesztéseket tartalmazo
+   kiadás, míg a kisebb fejlesztéseket néhány havonta adjuk ki.
+
+   1.8 Milyen dokumentácio áll rendelkezésre?
+
+   Számos kézikönyv, man oldalak és kis teszt példák találhatoak a kiadásban
+   a doc/ könyvtár alatt. Az interneten is olvashatod a dokumentáciot a
    következõ címen:
+
    http://www.PostgreSQL.org/users-lounge/docs/.
-   
-   Két PostgreSQL könyv érhetõ el az interneten a 
+
+   Két PostgreSQL könyv érhetõ el az interneten a
    http://www.PostgreSQL.org/docs/awbook.html és a
-   http://www.commandprompt.com/ppbook/ címeken.
-   A megvásárolható könyvek listája itt található:
-   http://www.ca.PostgreSQL.org/books/.
-   A PostgreSQL-lel kapcsolatos technikai jellegû cikkek gyûjteménye:
+   http://www.commandprompt.com/ppbook/ címeken. A megvásárolhato könyvek
+   listája itt találhato: http://www.ca.PostgreSQL.org/books/. A
+   PostgreSQL-lel kapcsolatos technikai jellegû cikkek gyûjteménye:
    http://techdocs.PostgreSQL.org/.
-   
-   A psql parancs rendelkezik néhány \d utasítással, amellyekkel listázhatóak
-   az operátorok, a funkciók, stb.
-   
-   A website is tartalmaz további dokumentációkat.
-   
-    1.9) Hogyan találok információt hibákról vagy hiányzó funkcionalításról?
-    
+
+   A psql parancs rendelkezik néhány \d utasítással, amellyekkel listázhatoak
+   az operátorok, a funkciok, stb.
+
+   A website is tartalmaz további dokumentáciokat.
+
+   1.9 Hogyan találok informáciot hibákrol vagy hiányzo funkcionalításrol?
+
    A PostgreSQLaz SQL-92 szabvány egy kiegészítése. Nézd meg a TODO listákat
    ha érdekelnek az ismert hibák.
-   
-    1.10) Hogy tanuljam meg az SQL nyelvet?
-    
-    A PostgreSQL könyv a http://www.PostgreSQL.org/docs/awbook.html
-    címen tartalmaz SQL alapokat. Elérhetõ egy másik SQL könyv is a
-    http://www.commandprompt.com/ppbook címen. Egy szép oktató anyag
-    található a http://www.intermedia.net/support/sql/sqltut.shtm,
-    a http://ourworld.compuserve.com/homepages/graeme_birchall/HTM_COOK.HTM
-    és a http://sqlcourse.com oldalakon.
-    
-   Egy másik lehetõség a "Tanítsd magad 21 nap alatt SQL-re, második
-   kiadás" a http://members.tripod.com/er4ebus/sql/index.htm.
-   
-   Sok felhasználónak tetszett a gyakorlati SQL könyv ("The Practical 
-   SQL Handbook"). 
-   
-    1.11) A PostgreSQL 2000. év kompatibilis?
-   
+
+   1.10 Hogy tanuljam meg az SQL nyelvet?
+
+   A PostgreSQL könyv a http://www.PostgreSQL.org/docs/awbook.html címen
+   tartalmaz SQL alapokat. Elérhetõ egy másik SQL könyv is a
+   http://www.commandprompt.com/ppbook címen. Egy szép oktato anyag találhato
+   a http://www.intermedia.net/support/sql/sqltut.shtm, a
+   http://ourworld.compuserve.com/homepages/graeme_birchall/HTM_COOK.HTM és a
+   http://sqlcourse.com oldalakon.
+
+   Egy másik lehetõség a "Tanítsd magad 21 nap alatt SQL-re, második kiadás"
+   a http://members.tripod.com/er4ebus/sql/index.htm.
+
+   Sok felhasználonak tetszett a gyakorlati SQL könyv ("The Practical SQL
+   Handbook").
+
+   1.11 A PostgreSQL 2000. év kompatibilis?
+
    Igen, könnyedén kezeli a 2000 utáni és idõszámításunk elött 2000 elötti
-   dátumokat is. 
-   
-    1.12) Hogyan lehet csatlakozni a fejlesztõ csapathoz?
-   
-   Elösször is töltsd le a forráskódot, és olvasd el a PostgreSQL
-   fejlesztõi dokumnetációt a web oldalunkon vagy a kiadásban. Ezután
+   dátumokat is.
+
+   1.12 Hogyan lehet csatlakozni a fejlesztõ csapathoz?
+
+   Elösször is töltsd le a forráskodot, és olvasd el a PostgreSQL
+   fejlesztõi dokumnetáciot a web oldalunkon vagy a kiadásban. Ezután
    íratkozz fel a pgsql-hackers és a pgsql-patches levelezési listákra.
    Végül pedig küldj be magas szinvonalú patch-eket a pgsql-patches listára.
-   
+
    Van egy pár ember, akiknek commit privilégiumuk a PostgreSQL CVS fán.
-   Õk olyan sok magas szinvonalú patch-et küldtek be, hogy az addigi 
-   csapat már nem tudta követni, és nem volt kétségünk arról, hogy a
-   patch-ek amiket õk küldenek jó minõségû.
-   
-    1.13) Hogyan küldjek hibajelentést?
-   
-   Látogass el a BugTool oldalra: 
+   Õk olyan sok magas szinvonalú patch-et küldtek be, hogy az addigi
+   csapat már nem tudta követni, és nem volt kétségünk arrol, hogy a
+   patch-ek amiket õk küldenek jo minõségû.
+
+   1.13 Hogyan küldjek hibajelentést?
+
+   Látogass el a BugTool oldalra:
    http://www.PostgreSQL.org/bugs/bugs.php
    Itt megtalálod követendõ utasításokat.
-   
-   Ellenõrizd az ftp oldalunkon is, hogy nincs-e újabb verzió vagy folt.
-   ftp://ftp.PostgreSQL.org/pub 
-   
-    1.14) Milyen a PostgreSQL más DBMS-ekkel összehasonlítva?
-   
-   Számos nézõpontból lehet vizsgálni a szoftvert: képességek, teljesítmény
-   megbízhatóság, támogatottság és ár. 
-   
-   Képességek
-          A PostgreSQL rendelkezik a nagy, kereskedelmi DBMS-ek képességeivel:
-          tranzakciók, al-lekérdezések, triggerek, nézetek, külsõ kulcsok,
-          integrítás és kifinoult zármechanizmusok. Van néhány képessége,
-          ami a kereskedelmi adatbázisokból hiányzik, mint például a
-          felhasználó által definiált típusok, öröklõdés, szabályok és
-          verzió kontroll a zárolási viták redukálásáért.
-          
-   Teljesítmény
-          A PostgreSQL teljesítménye hasonlít a kereskedelmi és más nyílt
-          adatbázis szerverekéhez. Lehet bizonyos esetekben lassabb, másokban
-          gyorsabb. A MySQL nevû tanuló RDBMS például gyorsabban hajt végre
-          insert/update mûveleteket, mivel a tranzakciókat elsumákolja.
-          Persze a MySQL nem rendelkezik a képességek részben felsoroltak
-          nagy részével. Mi a megbízhatóságra és a képességekre építünk, bár 
-          a teljesítmény is nõ minden kiadással. Van egy érdekes oldal a 
-          MySQL és a PostgreSQL összehasonlításával a 
-          http://openacs.org/philosophy/why-not-mysql.html címen.
-
-   Megbízhatóság         
-          Tudjuk hogy ha egy DBMS nem megbízható, akkor teljesen haszontalan.
-          Igyekszünk jól tesztelt, stabil kódot kiadni, amiben a lehetõ
-          legkevesebb hiba van. Minden kiadás elött eltellik legalább 1
-          hónap béta teszt, és a kiadási történet is azt mutatja, hogy
-          stabil kódot adunk ki, ami készen áll a produktív felhasználásra.
-          Úgy gondoljuk, felülmúlunk más adatbázis szoftvereket ezen a téren.
-                
-   Támogatás
-          A levelezési listáink kapcsolatot teremtenek a fejlesztõk
-          és felhasználók csoportjával , akik segítenek a problémák
-          megoldásában. Bár nem tudjuk garantálni hogy ki tudjuk
-          javítani a hibát, más, kereskedelmi adatbázis cégek sem tudják.
-          A fejlesztõ csoport közvetlen elérési lehetõsége, a közösség,
-          a dokumentáció és a forráskód gyakran támogatást biztosít,
-          mint más adatbázisoknál. Van kereskedelmi, alkalmi támogatás
-          azoknak, akiknek szüksége van rá (lásd: 1.6).
-          
-   Ár
-          A PostgreSQL szabad bármilyen felhasználásra, akár kereskedelmire
-          is. A termékhez hozzáadhatod a saját forráskódjaidat korlátozás
-          nélkül,
-          
-    1.15) Hogyan tudom üzletileg segiteni a PostgreSQL-t?
-    
-    A PostgreSQL elsõ osztályú infrastruktúrával rendelkezik, amit 1996-ban
-    indítottunk el. Mindent Marc Fourniernek köszönhetünk, aki létrehozta
-    és karbantartja a rendszert.
-   
-    A minõségi infrastruktúra nagyon fontos egy nyilt forrású szoftver
-    esetében. Megvéd az olyan fennakadásoktól, amelyek komoly késéseket
-    okoznak a fejlesztésekben. 
-   
-    Természetesen ez az infrastruktúra nem olcsó. Számos havi és állandó
-    kiadásunk van. Ha a cégednek van pénze, amivel támogatná erõfeszítéseinket,
-    kérlek látogass el a http://store.pgsql.com/shopping/ oldalra.
-   
-    Bár a weboldal "PostgreSQL, Inc"-ként említi, a hozzájárulások kizárólag
-    a PostgreSQL fejlesztésre értendóek, és nem egy meghatározott cégnek. Ha
-    jobban tetszik, küldhetsz csekket is a kapcsolati címek bármelyikére.
-   
-     _________________________________________________________________
-   
-                         Felhasználói kliens kérdések
-                                      
-    2.1) Van ODBC meghajtó PostgreSQL-hez?
-    
-    Két ODBC meghajtó érhetõ el: PsqlODBC és a OpenLink ODBC.
-    
-    A PsqlODBC a PostgreSQL kiadás része. További információ található a 
-    ftp://ftp.PostgreSQL.org/pub/odbc/ oldalon.
-   
-    Az OpenLink ODBC-t a http://www.openlinksw.com címrõl töltheted le.
-    Ez az õ szabványos ODBC kliens szoftverükkel mûködik, így minden
-    általuk támogatott platformon (Win, Mac, Unix, VMS) elérhetõ lesz 
-    a PostgreSQL szerver.
-   
-    Talán olyan vevõknek fogják eladni, akik kereskedelmi minõségû terméket
-    szeretnének kapni, de a freeware verzió mindig elérhetõ lesz. Kérdéseidet
-    a termékkel kapcsolatban a postgres95@openlink.co.uk címen teheted fel.
-   
-    Olvasd el az ODBC fejezetet is a programozók kézikönyvében!
-   
-    2.2) Milyen eszközök állnak rendelkezésre PostgreSQL Web fejlesztésekhez?
-   
-   Egy szép bemutató olvasható az adatbázissal támogatott web oldalanról
-   a http://www.webreview.com weboldalon.
-   
-   A web integrációhoz a PHP egy kiválló szoftver. Letölthetõ a 
-   http://www.php.net címrõl. 
-   
+
+   Ellenõrizd az ftp oldalunkon is, hogy nincs-e újabb verzio vagy folt.
+   ftp://ftp.PostgreSQL.org/pub
+
+   1.14 Milyen a PostgreSQL más DBMS-ekkel összehasonlítva?
+
+   Számos nézõpontbol lehet vizsgálni a szoftvert: képességek, teljesítmény
+   megbízhatoság, támogatottság és ár.
+
+   Képességek: A PostgreSQL rendelkezik a nagy, kereskedelmi DBMS-ek
+   képességeivel: tranzakciok, al-lekérdezések, triggerek, nézetek, külsõ
+   kulcsok, integrítás és kifinoult zármechanizmusok. Van néhány képessége,
+   ami a kereskedelmi adatbázisokbol hiányzik, mint például a felhasználo
+   által definiált típusok, öröklõdés, szabályok és verzio kontroll a
+   zárolási viták redukálásáért.
+
+   Teljesítmény: A PostgreSQL teljesítménye hasonlít a kereskedelmi és más
+   nyílt adatbázis szerverekéhez. Lehet bizonyos esetekben lassabb, másokban
+   gyorsabb. A MySQL nevû tanulo RDBMS például gyorsabban hajt végre
+   insert/update mûveleteket, mivel a tranzakciokat elsumákolja. Persze a
+   MySQL nem rendelkezik a képességek részben felsoroltak nagy részével. Mi a
+   megbízhatoságra és a képességekre építünk, bár a teljesítmény is nõ minden
+   kiadással. Van egy érdekes oldal a MySQL és a PostgreSQL
+   összehasonlításával a http://openacs.org/philosophy/why-not-mysql.html
+   címen.
+
+   Megbízhatoság: Tudjuk hogy ha egy DBMS nem megbízhato, akkor teljesen
+   haszontalan. Igyekszünk jol tesztelt, stabil kodot kiadni, amiben a lehetõ
+   legkevesebb hiba van. Minden kiadás elött eltellik legalább 1 honap béta
+   teszt, és a kiadási történet is azt mutatja, hogy stabil kodot adunk ki,
+   ami készen áll a produktív felhasználásra. Úgy gondoljuk, felülmúlunk más
+   adatbázis szoftvereket ezen a téren.
+
+   Támogatás: A levelezési listáink kapcsolatot teremtenek a fejlesztõk és
+   felhasználok csoportjával , akik segítenek a problémák megoldásában. Bár
+   nem tudjuk garantálni hogy ki tudjuk javítani a hibát, más, kereskedelmi
+   adatbázis cégek sem tudják. A fejlesztõ csoport közvetlen elérési
+   lehetõsége, a közösség, a dokumentácio és a forráskod gyakran támogatást
+   biztosít, mint más adatbázisoknál. Van kereskedelmi, alkalmi támogatás
+   azoknak, akiknek szüksége van rá (lásd: 1.6).
+
+   Ár: A PostgreSQL szabad bármilyen felhasználásra, akár kereskedelmire is.
+   A termékhez hozzáadhatod a saját forráskodjaidat korlátozás nélkül.
+
+   1.15 Hogyan tudom üzletileg segiteni a PostgreSQL-t?
+
+   A PostgreSQL elsõ osztályú infrastruktúrával rendelkezik, amit 1996-ban
+   indítottunk el. Mindent Marc Fourniernek köszönhetünk, aki létrehozta és
+   karbantartja a rendszert.
+
+   A minõségi infrastruktúra nagyon fontos egy nyilt forrású szoftver
+   esetében. Megvéd az olyan fennakadásoktol, amelyek komoly késéseket
+   okoznak a fejlesztésekben. Természetesen ez az infrastruktúra nem olcso.
+   Számos havi és állando kiadásunk van. Ha a cégednek van pénze, amivel
+   támogatná erõfeszítéseinket, kérlek látogass el a
+   http://store.pgsql.com/shopping/ oldalra.
+
+   Bár a weboldal "PostgreSQL, Inc"-ként említi, a hozzájárulások kizárolag a
+   PostgreSQL fejlesztésre értendoek, és nem egy meghatározott cégnek. Ha
+   jobban tetszik, küldhetsz csekket is a kapcsolati címek bármelyikére.
+
+   1.16 Ki irányítja a PostgreSQL-t?
+
+   Ha központi bizottságot, ellenörzo" céget keresel a PostgreSQL mögött, add
+   fel, nincs ilyesmi. Létezik egy mag és CVS commiter csoport, de ez inkáb
+   adminisztrativ mint ellenörzo" célú. A projectet fejleszto"k és
+   felhasználok közössége irányítja, amihez bárki csatlakozhat. Csupán annyit
+   kell tenned hogy felíratkozol a levelezo"listékra és részt veszel a
+   beszélgetésekben.
+
+     ----------------------------------------------------------------------
+
+Felhasználoi kliens kérdések
+
+   2.1 Van ODBC meghajto PostgreSQL-hez?
+
+   Két ODBC meghajto érhetõ el: PsqlODBC és a OpenLink ODBC.
+
+   A PsqlODBC a PostgreSQL kiadás része. További informácio találhato a 
+   ftp://ftp.PostgreSQL.org/pub/odbc/ oldalon.
+
+   Az OpenLink ODBC-t a http://www.openlinksw.com címrõl töltheted le. Ez az
+   õ szabványos ODBC kliens szoftverükkel mûködik, így minden
+
+   általuk támogatott platformon (Win, Mac, Unix, VMS) elérhetõ lesz  a
+   PostgreSQL szerver.
+
+   Talán olyan vevõknek fogják eladni, akik kereskedelmi minõségû terméket
+   szeretnének kapni, de a freeware verzio mindig elérhetõ lesz. Kérdéseidet
+   a termékkel kapcsolatban a postgres95@openlink.co.uk címen teheted fel.
+
+   Olvasd el az ODBC fejezetet is a programozok kézikönyvében!
+
+   2.2 Milyen eszközök állnak rendelkezésre PostgreSQL Web fejlesztésekhez?
+
+   Egy szép bemutato olvashato az adatbázissal támogatott web oldalanrol a
+   http://www.webreview.com weboldalon.
+
+   A web integráciohoz a PHP egy kivállo szoftver. Letölthetõ a
+   http://www.php.net címrõl.
+
    Komplexebb esetekre sokan használják a Perl felületet és a CGI.pm vagy a
    mod_perl-t.
-   
-    2.3) Van a PostgreSQL-hez grafikus felhasználói felület? Riport 
-   generátor? Beágyazott lekérdezõ nyelv felület?
-    
-    Van egy szép PgAccess nevû grafikus felületünk, ami riport generátorként
-    is használható. A weboldalát megtalálod a http://www.pgaccess.org/ címen.
-   
-    A disztribúció tartalmazza az ecpg programot is, ami egy beágyazott SQL
-    lekérdezési felület C nyelvhez. 
-   
-    2.4) Milyen programozási nyelvekkel lehet elérni a PostgreSQL szervert?
-    
-    A következök:       
+
+   2.3 Van a PostgreSQL-hez grafikus felhasználoi felület?
+
+   Van egy szép PgAccess nevû grafikus felületünk, ami riport generátorként
+   is használhato. A weboldalát megtalálod a http://www.pgaccess.org/ címen.
+
+   A http://techdocs.postgresql.org/guides/GUITools oldalon találhatsz egy
+   pontos és részltes listát.
+
+   2.4 Milyen programozási nyelvekkel lehet elérni a PostgreSQL szervert?
+
+   A következök:
+
      * C (libpq)
      * C++ (libpq++)
      * Embedded C (ecpg)
      * TCL (libpgtcl)
      * C Easy API (libpgeasy)
      * PHP ('pg_' functions, Pear::DB)
-
-    További programozási felületek érhetõek el a 
+   További programozási felületek érhetõek el a
    http://www.PostgreSQL.org/interfaces.html és a
    http://gborg.PostgreSQL.org oldalakon.
 
-     _________________________________________________________________
-   
-                          Adminisztrációs kérdések
-                                      
-    3.1) Hogyan tudom a PostgreSQL-t /usr/local/pgsql -tõl eltérõ helyre 
-    installálni?
-    
-    A configure script --prefix paraméterének használatával.
-   
-    3.2) AMikor elindítom a postmaster-t, egy "Bad System Call"-t vagy core 
-    dump-ot kapok.
-        Miért?
-   
+     ----------------------------------------------------------------------
+
+Adminisztrácios kérdések
+
+   3.1 Hogyan tudom a PostgreSQL-t /usr/local/pgsql -tõl eltérõ helyre
+   installálni?
+
+   A configure script --prefix paraméterének használatával.
+
+   3.2 AMikor elindítom a postmaster-t, egy "Bad System Call"-t vagy core
+   dump-ot kapok. Miért?
+
    Számos probléma lehet, de legelösször ellenõrizd le, hogy a kerneled
-   System V kiegészítésekkel rendelkezik-e. A PostgreSQL használja a
-   kernel osztott memória és szemafor API-ját. 
-   
-    3.3) Amikor megpróbálom inditani a postmaster-t, "IpcMemoryCreate" hibákat 
-    kapok. Miért?
-   
-   Vagy nincs megfelelõen konfigurálva a kerneled osztott memória támogatása
-   vagy meg kell nagyobbítanod a maximális osztott memória méretet.
-   A pontos méret szükséglet függ az architektúrádtól és attól hogy hány
-   buffert és processzt konfigurálsz a postmasternek. Legalább 1 MB 
-   területre szükséged van. A PostgreSQL Adminisztráció kézikönyvben
-   olvashatsz részletesebb információkat az osztott memóriáról és a
-   szemaforokról.
-   
-    3.4) Amikor megpróbálom inditani a postmaster-t, "IpcSemaphoreCreate" 
-    hibákat kapok. Miért?
-   
-   Ha a hibaüzenet ez: " IpcSemaphoreCreate: semget failed (No space
-   left on device)", akkor a kerneled konfigurációja nem tesz lehetõvé
-   elegendõ szemafort. A PostgreSQL szerver processzenként 1 szemafort
-   igényel. Egy átmeneti megoldás lehet az hogy a postmastert kevesebb
-   maximális processz számmal inditod el. Használd a -D paramétert.
-   Egy sokkal megfelelõbb megoldás az ha növeled a kerneled SEMMNS
-   és SEMMNI paramétereit.
-   
+   System V kiegészítésekkel rendelkezik-e. A PostgreSQL használja a kernel
+   osztott memoria és szemafor API-ját.
+
+   3.3 Amikor megprobálom inditani a postmaster-t, "IpcMemoryCreate" hibákat
+   kapok. Miért?
+
+   Vagy nincs megfelelõen konfigurálva a kerneled osztott memoria támogatása
+   vagy meg kell nagyobbítanod a maximális osztott memoria méretet.
+
+   A pontos méret szükséglet függ az architektúrádtol és attol hogy hány
+   buffert és processzt konfigurálsz a postmasternek. Legalább 1 MB területre
+   szükséged van. A PostgreSQL Adminisztrácio kézikönyvben olvashatsz
+   részletesebb informáciokat az osztott memoriárol és a szemaforokrol.
+
+   3.4) Amikor megprobálom inditani a postmaster-t, "IpcSemaphoreCreate"
+   hibákat kapok. Miért?
+
+   Ha a hibaüzenet ez: " IpcSemaphoreCreate: semget failed (No space left on
+   device)", akkor a kerneled konfigurácioja nem tesz lehetõvé elegendõ
+   szemafort. A PostgreSQL szerver processzenként 1 szemafort igényel. Egy
+   átmeneti megoldás lehet az hogy a postmastert kevesebb maximális processz
+   számmal inditod el. Használd a -D paramétert. Egy sokkal megfelelõbb
+   megoldás az ha növeled a kerneled SEMMNS és SEMMNI paramétereit.
+
    A hibás szemaforok is adatázis lerobbanásához is vezethet nagy terhelés
-   esetén.
-   Ha a hibaüzenet valami más, lehet hogy nincs szemaforok támogatás
-   forditva a kerneledbe. Olvasd el a PostgreSQL adminisztrátorok 
-   kézikönyvében az osztott memóriáról és a szemaforokról szóló fejezetet.
-   
-    3.5) Hogyan tudom kontrollálni a más gépekrõl érkezõ kapcsolat kéréseket?
-    
+   esetén.Ha a hibaüzenet valami más, lehet hogy nincs szemaforok támogatás
+
+   forditva a kerneledbe. Olvasd el a PostgreSQL adminisztrátorok
+   kézikönyvében az osztott memoriárol és a szemaforokrol szolo fejezetet.
+
+   3.5) Hogyan tudom kontrollálni a más gépekrõl érkezõ kapcsolat kéréseket?
+
    Alapértelmezésben a PostgreSQL a helyi kapcsolatokat Unix socketekkel
-   valósítja meg. Más gépek nem lesznek képesek csatlakozni, ha nem
-   engedélyezed azt -i opcióval a postmasternek, és nem állítod be host a 
-   alapú azonosítást a pg_hba.conf állományban. Ezzel válnak lehetõvé a TCP/IP
-   kapcsolatok.
-    
-    3.6) Hogyan tudom nagyobb teljesítményre hangolni az adatbázisomat?
-   
-   Az indexelés feltétlenül gyorsítja a lekérdezéseket. Az EXPLAIN
-   parancs lehetõvé teszi hogy lásd, hogy a PostgreSQL miként interpretálja
-   lekérdezést és melyik indexet használja.
-   
+   valosítja meg. Más gépek nem lesznek képesek csatlakozni, ha nem
+   engedélyezed azt -i opcioval a postmasternek, és nem állítod be host a
+   alapú azonosítást a pg_hba.conf állományban. Ezzel válnak lehetõvé a
+   TCP/IP kapcsolatok.
+
+   3.6) Hogyan tudom nagyobb teljesítményre hangolni az adatbázisomat?
+
+   Az indexelés feltétlenül gyorsítja a lekérdezéseket. Az EXPLAIN parancs
+   lehetõvé teszi hogy lásd, hogy a PostgreSQL miként interpretálja a
+   lekérdezést és melyik indexet használja.
+
    Ha sok INSERT mûveletet hajtassz végre, csináld nagy kötegekben a COPY
    paranccsal. Ez sokkal gyorsabb mint az egyedi INSERT parancsok. Másodszor:
-   Azok a mûveletek, amelyek nincsenek tranzakció blokkon belül, azok saját
-   tranzakciót indítanak. Sok mûveletet érdemes egy tranzakción belül 
-   végrehajtani. Ez csökkenti a tranzakció kezelés többletidejét. Az indexeket
-   javasolt a nagy adatváltozások elött eltávolítani, majd újra létrehizni.
-   
-   Számos teljesítmény javító lehetõség van. Kikapcsolhatod az fsync()
-   mûveletet a postmaster -o -F opciókval való indításakor. Így nem fog
-   az amugy lassú fsync() függvény meghívódni minden tranzakció végén.
-   
-   Használhatod a postmaster -B opcióját is az osztott memória szegmens
-   méretének növeléséhez. Ha az értéket túl magasra állítod, lehet hogy
-   a postmaster nem indul el, mert túllépted az operációs rendszer által 
+   Azok a mûveletek, amelyek nincsenek tranzakcio blokkon belül, azok saját
+   tranzakciot indítanak. Sok mûveletet érdemes egy tranzakcion belül
+   végrehajtani. Ez csökkenti a tranzakcio kezelés többletidejét. Az
+   indexeket javasolt a nagy adatváltozások elött eltávolítani, majd újra
+   létrehozni.
+
+   Számos teljesítmény javíto lehetõség van. Kikapcsolhatod az fsync()
+   mûveletet a postmaster -o -F opciokval valo indításakor. Így nem fog az
+   amugy lassú fsync() függvény meghívodni minden tranzakcio végén.
+
+   Használhatod a postmaster -B opcioját is az osztott memoria szegmens
+   méretének növeléséhez. Ha az értéket túl magasra állítod, lehet hogy a
+   postmaster nem indul el, mert túllépted az operácios rendszer által 
    megengedett méretet. Minden buffer 8K méretû és alapértelmezésban 64
    buffer van.
-   
-   A -S opcióval növelheted a szerver átmeneti rendezésekre fenntartott
-   memória területét. Az értéket kilobyteban add meg. Az alapértelmezett
+
+   A -S opcioval növelheted a szerver átmeneti rendezésekre fenntartott
+   memoria területét. Az értéket kilobyteban add meg. Az alapértelmezett
    érték 512K.
-   
-   Használhatod a CLUSTER utasítást is, hogy a táblákat egy indexnek 
+
+   Használhatod a CLUSTER utasítást is, hogy a táblákat egy indexnek
    megfelelõen csoportosítsd. Olvasd el a CLUSTER kézikönyv oldalt további
    részletekért.
-   
-   
-    3.7) Milyen hibakeresõ lehetõségek érhetõek el?
-    
-   A PostgreSQL számos lehetöséggel rendelkezik ami értékes lehet a hiba-
-   keresésnél.
-   
-   Elösször is, futtathatod a configure scriptet --enable-cassert 
-   opcióval, sok assert() funkcióhivás ellenörzi a program futását és
-   megállitja ha valami vératlan hiba történik.
-   
-   Mind a postmaster és a postgres számos hibakeresö lehetüséggel rendelkezik.
-   Mindig amikor elinditod a postmastert, gyözödj meg róla, hogy a kimenetet
-   log állományba küldöd. Igy:
+
+   Hardver kiválasztásában segíthet:
+   http://candle.pha.pa.us/main/writings/pgsql/hw_performance/index.html és
+   http://www.powerpostgresql.com/PerfList/.
+
+   A postgresql.conf beállitásaival kapcsolatos tudnivalok:
+   http://www.varlena.com/varlena/GeneralBits/Tidbits/annotated_conf_e.html
+   és http://www.varlena.com/varlena/GeneralBits/Tidbits/perf.html.
+
+   3.7) Milyen hibakeresõ lehetõségek érhetõek el?
+
+   A PostgreSQL számos lehetöséggel rendelkezik ami értékes lehet a
+   hibakeresésnél.
+
+   Elösször is, futtathatod a configure scriptet --enable-cassert opcioval,
+   sok assert() funkciohivás ellenörzi a program futását és megállitja ha
+   valami vératlan hiba történik.
+
+   Mind a postmaster és a postgres számos hibakeresö lehetüséggel
+   rendelkezik. Mindig amikor elinditod a postmastert, gyözödj meg rola, hogy
+   a kimenetet log állományba küldöd. Igy:
+
    cd /usr/local/pgsql
-    ./bin/postmaster >server.log 2>&1 &
-   
-   Ez egy server.log állományt hoz létre a felsö PostgreSQL könyvtárban.
-   Ez az állomány tartlamaz majd számos hasznos információt a szerverrel
-   kapcsolatos problémákról és hibákról. A postmaster -d opciójával lehet
-   részletesebb hibakeresö információt kapni. A -d opcióhoz meg kell 
-   határozni egy hiba szintet. Vigyázz, a magas hibakeresö szint nagy
-   log állományt okozhat.
+
+   ./bin/postmaster >server.log 2>&1 &
+
+   Ez egy server.log állományt hoz létre a felsö PostgreSQL könyvtárban. Ez
+   az állomány tartlamaz majd számos hasznos informáciot a szerverrel
+   kapcsolatos problémákrol és hibákrol. A postmaster -d opciojával lehet
+   részletesebb hibakeresö informáciot kapni. A -d opciohoz meg kell
+   határozni egy hiba szintet. Vigyázz, a magas hibakeresö szint nagy log
+   állományt okozhat.
 
    Ha a postmaster nem fut, akkor futtathatod a postgres szervert
-   parancssorból is, és az SQL kifejezést közvetlenül ennek adhatod át.
-   Ez csak hibakeresés esetében javasolt. Az új sor a kifejezés végét jelenti,
-   nem a pontosvesszö. Ha hibakeresö opciókkal forditottad a szervert, 
-   használhatsz egy debuggert is hogy lásd hogy mi történik. Mivel igy a 
-   szervert nem a postmaster inditotta, nem többfelhasználós környezetként 
-   fut, igy a zárolási és a szerverek közötti kommunikációs hiba jelenségek 
+   parancssorbol is, és az SQL kifejezést közvetlenül ennek adhatod át. Ez
+   csak hibakeresés esetében javasolt. Az új sor a kifejezés végét jelenti,
+   nem a pontosvesszö. Ha hibakeresö opciokkal forditottad a szervert,
+   használhatsz egy debuggert is hogy lásd hogy mi történik. Mivel igy a
+   szervert nem a postmaster inditotta, nem többfelhasználos környezetként
+   fut, igy a zárolási és a szerverek közötti kommunikácios hiba jelenségek
    nem jelentkeznek.
-   
+
    Ha már fut a postmaster, indits egy psql-t, és nézd meg a szerver processz
-   PID-jét! Egy debuggert használhatsz a processzhez csatlakozáshoz. 
-   Beállithatsz töréspontokat és elindithatsz lekérdezéseket. Ha a postgres 
-   inditásban keresel hibát, a PGOPTIONS környezeti változót állitsd be "-W n" 
-   értékre. Ez n másodperc várakozást idéz elö, igy tudsz csatlakozni a
+   PID-jét! Egy debuggert használhatsz a processzhez csatlakozáshoz.
+   Beállithatsz töréspontokat és elindithatsz lekérdezéseket. Ha a postgres
+   inditásban keresel hibát, a PGOPTIONS környezeti változot állitsd be "-W
+   n" értékre. Ez n másodperc várakozást idéz elö, igy tudsz csatlakozni a
    processzhez, el tdsz hejezni töréspontokat, majd folytathatod a indítást.
-      
-   A postgres program -s, -A és -t opciói is nagyon hasznosak lehetnek
+
+   A postgres program -s, -A és -t opcioi is nagyon hasznosak lehetnek
    hibakeresésnél és teljesítmény mérésnél.
-   
-   Profiling lehtöséggel is fordithatod a szervert, hogy lásd melyik
-   funkciók foglalják el a futási idõt. A szerver profile állományai
-   a pgsql/data/base/dbname könzvtárba kerülnek, a kliens profile 
-   állományok az aktuális könyvtárba. Linuxon ehhez szükséges a 
-   -DLINUX_PROFILE fordítási direktiva.
-   
-    3.8) Miért kapok "Sorry, too many clients" (Túl sok kliens) 
-    hibát csatlakozásnál?
-    
-   Növelned kell a postmaster egyidejûleg futtatott szerver processz szám 
+
+   Profiling lehtöséggel is fordithatod a szervert, hogy lásd melyik funkciok
+   foglalják el a futási idõt. A szerver profile állományai a
+   pgsql/data/base/dbname könzvtárba kerülnek, a kliens profile állományok az
+   aktuális könyvtárba. Linuxon ehhez szükséges a -DLINUX_PROFILE fordítási
+   direktiva.
+
+   3.8) Miért kapok "Sorry, too many clients" (Túl sok kliens)
+   hibát csatlakozásnál?
+
+   Növelned kell a postmaster egyidejûleg futtatott szerver processz szám
    korlátját.
-   
+
    Az alapértelmezett korlát 32 processz. Ezt növelhetjed úgy, hogy
-   újrainditod a postmastert és -N opcióval meghatárotod az új értéket,
-   vagy módositod a postgresql.conf-ot.
-   
+   újrainditod a postmastert és -N opcioval meghatárotod az új értéket, vagy
+   modositod a postgresql.conf-ot.
+
    Ne felejtsd el, hogy ha növeled a szerver processzek maximális számát,
    akkor bufferek számát is növelned kell, legalább a processzek számának
-   kétszeresére. Nagy processz számokesetében valószinüleg a Unix 
-   konfigurációs paramétereken is növelni kell. Ellenörizd a SHMMAX
-   (az osztott memória szegmensek maximális mérete), a SEMMNS és a SEMMNI
-   (a szemaforok maximális száma), az NPROC (a processzek maximális száma),
-   a MAXUPRC (felhasználónkénti maximális processz szám) és a NFILE és NINODE
+   kétszeresére. Nagy processz számokesetében valoszinüleg a Unix
+   konfigurácios paramétereken is növelni kell. Ellenörizd a SHMMAX (az
+   osztott memoria szegmensek maximális mérete), a SEMMNS és a SEMMNI (a
+   szemaforok maximális száma), az NPROC (a processzek maximális száma), a
+   MAXUPRC (felhasználonkénti maximális processz szám) és a NFILE és NINODE
    (a megnzitott állománzok maximális száma) paramétereket. A PostgreSQL
-   azért korlátozza külön a processz számot, hogy a rendszeredet ne terhelhesse 
-   meg túlságosan.
-   
-   A PostgreSQL 6.5 verzióban a maximális szerver processz szám 64 volt és
-   a módositáshoz bele kellett irni a include/storage/sinvaladt.h állományba
-   és újra kellett forditani a servert. 
-         
-    3.9) Mi van pgsql_tmp könyvtárban?
-   
-   Ez a könyvtár a lekérdezés végrehajtó által létrehezott átmeneti
-   állományokat tartalmazza. Például ha egy rendezést kell végrehajtani
-   egy ORDER BY kifejezés miatt és a m?velet több memóriát vesz
-   igénybe, mint amennyit a -S paraméter megenged, akkor az átmeneti
-   könyvtárban hoz létre egy állományt a fennmaradó adat tárolására.
-   
-   Az átmeneti állományok többnyire törl?dnek, de meg is maradhat ha
-   például váratlan hibával leáll a szerver egy rendezés közben. Inditáskor
-   és leállitáskor ezeket az állományokat törli a postmaster.
-      
-    3.10) Miért kell dumpolni és újratölteni PostgreSQL kiadás váltásánál?
-   
-   A PostgreSQL csapat csak apróbb változtatásokat hajt végre a kisebb
-   kiadások között, igy ha 7.2 verzióról állsz át 7.2.1 verzióra, akkor nem
-   szükséges kidumplonod az adatbázist. A nagy kiadások esetében (például 
-   verzióról 7.3-ra áttérésnél) változik a belsiõ adatstruktúrák és
+   azért korlátozza külön a processz számot, hogy a rendszeredet ne
+   terhelhesse meg túlságosan.
+
+   A PostgreSQL 6.5 verzioban a maximális szerver processz szám 64 volt és a
+   modositáshoz bele kellett irni a include/storage/sinvaladt.h állományba és
+   újra kellett forditani a servert.
+
+   3.9) Mi van pgsql_tmp könyvtárban?
+
+   Ez a könyvtár a lekérdezés végrehajto által létrehezott átmeneti
+   állományokat tartalmazza. Például ha egy rendezést kell végrehajtani egy
+   ORDER BY kifejezés miatt és a m?velet több memoriát vesz igénybe, mint
+   amennyit a -S paraméter megenged, akkor az átmeneti könyvtárban hoz létre
+   egy állományt a fennmarado adat tárolására.
+
+   Az átmeneti állományok többnyire törl?dnek, de meg is maradhat ha például
+   váratlan hibával leáll a szerver egy rendezés közben. Inditáskor és
+   leállitáskor ezeket az állományokat törli a postmaster.
+
+   3.10) Miért kell dumpolni és újratölteni PostgreSQL kiadás váltásánál?
+
+   A PostgreSQL csapat csak aprobb változtatásokat hajt végre a kisebb
+   kiadások között, igy ha 7.2 verziorol állsz át 7.2.1 verziora, akkor nem
+   szükséges kidumplonod az adatbázist. A nagy kiadások esetében (például
+   verziorol 7.3-ra áttérésnél) változik a belsiõ adatstruktúrák és
    adatállományok formátuma. Ezek a változások gyakran nagyon összetettek,
-   ezért inkáb nem tartunk fenn visszafelé kompatibilitást. A dump 
-   az adatot általános formátumban irja ki, majd az új formátumban lehet
-   azt visszatöleni.
-   
-   Azokban a kiadásokban, amelyek között az adat formátum nem változik,
-   a pg_upgrade program használható dumpolás és helzreállitás nélkül.
-   
-     _________________________________________________________________
-   
-                           Mûködtetési kérdések
-                                      
-    4.1) Mi a különbség a bináris és a normál kurzorok között?
-    
-   Nézd meg a DECLARE dokumentációját.
-   
-    4.2) Hogyan tudom select-elni a lekérdezés elsõ pár sorát?
-    
-   Olvasd el a FETCH dokumentációját, vagy használd a SELECT
-   LIMIT-et.
-   
-   Az egész lekérdezést végre kell hajtani, még akkor is, ha csak az elsõ
-   pár sort akarod megkapni. Gondolj arra, hogy a lekérdezésben lehet ORDER BY 
-   is.  Ha van olyan index, ami megfelel az ORDER BY kifejezésednek, a 
-   PostgreSQL képes lehet az elsö néhány rekord visszaadására, vagy a teljes 
-   lekérdezésnek le kell futnia, amig a kért rekordok le nem generálódnak.
-      
-    4.3) Hogy tudom kilistázni a táblákat vagy más dolgokat a PostgreSQL-ben?
-   
-   Elolvashatod a psql forrás kódjában a pgsql/src/bin/psql/describe.c
+   ezért inkáb nem tartunk fenn visszafelé kompatibilitást. A dump az adatot
+   általános formátumban irja ki, majd az új formátumban lehet azt
+   visszatöleni.
+
+   Azokban a kiadásokban, amelyek között az adat formátum nem változik, a
+   pg_upgrade program használhato dumpolás és helyreállitás nélkül.
+
+     ----------------------------------------------------------------------
+
+Mûködtetési kérdések
+
+   4.1) Mi a különbség a bináris és a normál kurzorok között?
+
+   Nézd meg a DECLARE dokumentácioját.
+
+   4.2) Hogyan tudom select-elni a lekérdezés elsõ pár sorát?
+
+   Olvasd el a FETCH dokumentácioját, vagy használd a SELECT LIMIT-et.
+
+   Az egész lekérdezést végre kell hajtani, még akkor is, ha csak az elsõ pár
+   sort akarod megkapni. Gondolj arra, hogy a lekérdezésben lehet ORDER BY
+   is. Ha van olyan index, ami megfelel az ORDER BY kifejezésednek, a
+   PostgreSQL képes lehet az elsö néhány rekord visszaadására, vagy a teljes
+   lekérdezésnek le kell futnia, amig a kért rekordok le nem generálodnak.
+
+   4.3) Hogy tudom kilistázni a táblákat vagy más dolgokat a PostgreSQL-ben?
+
+   Elolvashatod a psql forrás kodjában a pgsql/src/bin/psql/describe.c
    állományban. Ez SQL parancsokat tartalmaz, amelyek azokat a kimeneteket
    állitják elö, amiket a per jellel kezdödö parancsok adnak vissza.
-    
-    4.4) Hogyan tudok eltávolítani egy oszlopot egy táblából?
-    
-   Ez a funkcionalitás a 7.3 verziótül kezdve érhetö el az ALTER TABLE
-   DROP COLUMN -nal. A régebbi vertiókban igy lehet végrehajtani:
-   BEGIN;
-    LOCK TABLE old_table;
-    SELECT ...  -- minden oszlopot, kivétel amit törölni szeretnél
-    INTO TABLE new_table
-    FROM old_table;
-    DROP TABLE old_table;
-    ALTER TABLE new_table RENAME TO old_table;
-   COMMIT;
+
+   4.4) Hogyan tudok eltávolítani egy oszlopot egy táblábol?
+
+   Ez a funkcionalitás a 7.3 verziotül kezdve érhetö el az ALTER TABLE DROP
+   COLUMN -nal. A régebbi vertiokban igy lehet végrehajtani:
+
+ BEGIN;
+
+ LOCK TABLE old_table;
+
+ SELECT ... -- minden oszlopot, kivétel amit törölni szeretnél
+
+ INTO TABLE new_table
+
+ FROM old_table;
+
+ DROP TABLE old_table;
+
+ ALTER TABLE new_table RENAME TO old_table;
+
+ COMMIT;
 
     4.5) Mi a maximális mérete egy sornak, egy táblának vagy egy adatbázisnak?
-    
+
    A korlátok:
-    adatbázis:                                  korlátlan (1 TB az általunk ismert lagnagyobb)
-    tábla:                                              16 TB
-    rekord/sor                                  1.6TB
-    mezö                                                1 GB
-    a tábla sorainak száma:                     korlátlan
-    a tábla oszlopainak száma:                  250-1600 az oszlop nevektõl függöen
-    A tábla indexeinek száma:                   korlátlan
-   
-   Természetesen nem igazán korlátlan, de a tárterület, memória és egyéb
+
+     * adatbázis: korlátlan (1 TB az általunk ismert lagnagyobb)
+
+     * tábla: 16 TB
+
+     * rekord/sor 1.6TB
+
+     * mezö 1 GB
+
+     * a tábla sorainak száma: korlátlan
+
+     * a tábla oszlopainak száma: 250-1600 az oszlop nevektõl függöen
+
+     * A tábla indexeinek száma: korlátlan
+
+   Természetesen nem igazán korlátlan, de a tárterület, memoria és egyéb
    külsö tényezök korlátozzák. A teljesitmény romolhat, ha ezek az értékek
    szokatlanul nagyok.
-   
-   A 16 TB-os legnagyobb tábla méret nem igényel nagy állomány támogatást.
-   A nagy táblák több 1 GB méretü állományba kerölnek, igy az állomány
-   rendszer korlátai nem lényegesek.
-      
-   A maximális tábla méret és az oszlopok maximális oszlop szám növelhetö,
-   ha az alapértelmezett blokkméretet 32k-ra növeled.
-
-    4.6) Mekkora adatbázis lemez terület szükséges egy tipikus szöveg állomány 
-    tárolásához?
-    
-   A PostgreSQL akár a szöveg állomány helyigénzének ötszörösét is elfoglalhaja.
-   
-   Képzelj el például, egy 100.000 soros szöveget, aminek minde sora 
-   egy számból és egy szövegbõl áll. Tegyük el, hogy átlagosan 20 byte hosszú
-   szövegek. Ez a szövegállomány körülbelül 2.8 MB helyet foglalna el.
-   A tábla ami a fenti adatszerkezetet eltárolná, körülbelül 6.4 MB-os lenne.
+
+   A 16 TB-os legnagyobb tábla méret nem igényel nagy állomány támogatást. A
+   nagy táblák több 1 GB méretü állományba kerölnek, igy az állomány rendszer
+   korlátai nem lényegesek.
+
+   A maximális tábla méret és az oszlopok maximális oszlop szám növelhetö, ha
+   az alapértelmezett blokkméretet 32k-ra növeled.
+
+   4.6) Mekkora adatbázis lemez terület szükséges egy tipikus szöveg állomány
+   tárolásához?
+
+   A PostgreSQL akár a szöveg állomány helyigényének ötszörösét is
+   elfoglalhatja.
+
+   Képzelj el például, egy 100.000 soros szöveget, aminek minde sora egy
+   számbol és egy szövegbõl áll. Tegyük el, hogy átlagosan 20 byte hosszú
+   szövegek. Ez a szövegállomány körülbelül 2.8 MB helyet foglalna el. A
+   tábla ami a fenti adatszerkezetet eltárolná, körülbelül 6.4 MB-os lenne.
    Ezt a következöképpen számolhatjuk ki:
+
    36 byte: sor fejléc
-   24 byte: egy int mezö + egy szöveg mezö
-   4  byte: mutato
-   ---------------------------------------
-   64 byte soronkent.
-   
-   Az adat oldal mérete a PostgreSQL-ben 8192 byte, igy
-   8192 / 64 = 128 rekord adatbázis oldalanként (lefelé kerekitve).
-   
-   100000 rekord / 128 rekord oldalanként = 782 adat oldal (felelé kerekitve).
-   
-   782 adatbázis oldal * 8192 byte olalanként = 6,406,144 byte (6.4 MB)
-   
+
+ 24 byte: egy int mezö + egy szöveg mezö
+
+ 4 byte: mutato
+
+ ---------------------------------------
+
+ 64 byte soronkent.
+
+   Az adat oldal mérete a PostgreSQL-ben 8192 byte, igy 8192 / 64 = 128
+   rekord adatbázis oldalanként (lefelé kerekitve).
+
+ 100000 rekord / 128 rekord oldalanként = 782 adat oldal
+ (felelé kerekitve).
+
+ 782 adatbázis oldal * 8192 byte olalanként = 6,406,144
+ byte (6.4 MB)
+
    Az indexek nem foglalnak túl sokat, de tartalmazzák az indexelt adatot,
    igy ezek is lehetnek nagyok.
-   
+
    A NULL értékek bittérképben vannak tárolva, igy kevés helyet foglanak.
-      
-   
-    4.7) Hogy tudhatom meg milyen táblák, indexek, adatbázisok vagy felhasználók
+
+   4.7) Hogy tudhatom meg milyen táblák, indexek, adatbázisok vagy
+   felhasználok
+
    vannak definiálva?
-   
+
    A psql-ben találsz számos '\' karakterrel kezdödö utasítást az ilyen
-   információk listázására. A '\?' segitségével tudot kilistázni ezeket
-   a parancsokat. Ezen kivül vannak rendszer táblák, amelyek nevei 'pg_'
-   -vel kezdödnek.
-   
-   Próbáld ki a pgsql/src/tutorial/syscat.source állományt is. Ez sok
-   példát tartalmaz az rendszertáblákon végrehajtott SELECT-ekröl.
-   
+   informáciok listázására. A '\?' segitségével tudot kilistázni ezeketa
+   parancsokat. Ezen kivül vannak rendszer táblák, amelyek nevei 'pg_'-vel
+   kezdödnek.
+
+   Probáld ki a pgsql/src/tutorial/syscat.source állományt is. Ez sok példát
+   tartalmaz az rendszertáblákon végrehajtott SELECT-ekröl.
+
    4.8) A lekérdezéseim lassúak, vagy nem használják az indexeket. Miért?
-   
+
    Az indexeket nem használja a szerver minden lekérdezésnél automatikusan.
-   Csak akkor használ indexet, ha a tábla mérete egy megadott alsó határ
-   felett van, és a lekérdezés csak a sorok egy kis részét érinti. Ez azért 
-   van, mert a véletlen hozzáférés még mindig lassabb lehet mint az tábla 
+   Csak akkor használ indexet, ha a tábla mérete egy megadott also határ
+   felett van, és a lekérdezés csak a sorok egy kis részét érinti. Ez azért
+   van, mert a véletlen hozzáférés még mindig lassabb lehet mint az tábla
    szekvenciális olvasása.
-   
+
    Hogy a PostgreSQL meg tudja határozni hogy kell-e indexet használni,
-   léteznie kell egy statisztikának a tábláról. Ez a statisztikai adatok a 
-   VAACUM ANALYZE vagy az egyszerû ANALYZE mûveletek során
-   jönnek létre. A statisztikai adatok felhasználásával az optimalizáló
-   meg tudja határozni, hogy hány sor van a táblában, és el tudja dönteni,
-   hogy használjon-e indexet. A statisztiaki adatgyüjtést idõnként végre
-   kell hajtani, ahogy a tábla adatai változnak.
-   
-   Az indexeket normális esetben nem használja az ORDER BY vagy
-   az OUTER JOIN. A szekvenciális olvasás általában gyorsabb, mint az
-   index keresés egy nagy táblában.
-   Bár a LIMIT az ORDER BY-val kombinálva használhat indexet, mert
-   a tábla csak kis része érintett. Bár a MIN és MAX SQL funkciók sem
-   használják az indexeket, ezeket az értékeket egy ORDER BY + LIMIT
-   lekérdezéssel is le lehet kérdezni:
-    SELECT col
-    FROM tab
-    ORDER BY col [ DESC ]
-    LIMIT 1;
-   
-   Amikor helyettesítõ jel operátorokat használsz, mint a LIKE kulcsszó
-   vagy a ~, az indexeket csak bizonyos körülmények között lehet használni:
-     * A keresõ string kezdete a keresési minta elején kell hogy legyen.
-       például:
-          + A LIKE minták nem kezdõdhetnek % jellel.
-          + ~ (regexp) kifejezések nem kezdõdhetnek ^ jellel.
+   léteznie kell egy statisztikának a táblárol. Ez a statisztikai adatok a
+   VAACUM ANALYZE vagy az egyszerû ANALYZE mûveletek során jönnek létre. A
+   statisztikai adatok felhasználásával az optimalizálo meg tudja határozni,
+   hogy hány sor van a táblában, és el tudja dönteni, hogy használjon-e
+   indexet. A statisztiaki adatgyüjtést idõnként végre kell hajtani, ahogy a
+   tábla adatai változnak.
+
+   Az indexeket normális esetben nem használja az ORDER BY vagy az OUTER
+   JOIN. A szekvenciális olvasás általában gyorsabb, mint az index keresés
+   egy nagy táblában. Bár a LIMIT az ORDER BY-val kombinálva használhat
+   indexet, mert a tábla csak kis része érintett. Bár a MIN és MAX SQL
+   funkciok sem használják az indexeket, ezeket az értékeket egy ORDER BY +
+   LIMIT lekérdezéssel is le lehet kérdezni:
+
+ SELECT col
+
+ FROM tab
+
+ ORDER BY col [ DESC ]
+
+ LIMIT 1;
+
+   Amikor helyettesítõ jel operátorokat használsz, mint a LIKE kulcsszo vagy
+   a ~, az indexeket csak bizonyos körülmények között lehet használni:
+
+   A keresõ string kezdete a keresési minta elején kell hogy legyen. Például:
+
+     * A LIKE minták nem kezdõdhetnek % jellel.
+     *  ~ (regexp) kifejezések nem kezdõdhetnek ^ jellel.
      * A keresési kifejezés nem kezdõdhet karakter osztállyal.
-     * A case-insensitive keresés (ILIKE, ~*) nem használnak indexet
-       ehelyett funkcionális indexet használnak, amit a 4.12 pontban
-       találhatsz.
+     * A case-insensitive keresés (ILIKE, ~*) nem használnak indexet ehelyett
+       funkcionális indexet használnak, amit a 4.12 pontban találhatsz.
      * Az alapértelmezett C hellyel kell futtatni az initdb-t.
-           
-    4.9) Hogy tudom ellenõrizni, hogy optimalizálta a lekérdezés optimalizáló
-    a lekérdezésem?
-    
-   Olvasd el a dokumentáció EXPLAIN-ról szóló részét.
-   
-    4.10) Mi az R-tree index?
-    
-    Az R-tree index a térbeli adat indexelésére alkalmas. Egy hash
-    index nem képes tartomány keresésekre. A B-tree index csak egy
-    dimenzión kezeli a tartomány kereséseket. Például ha az indexet
-    egy pont (point adattípus) típusú mez.re építjük, gyorsabban
-    kezeli az olyan jellegü lekérdezéseket, mint egy adott körben
-    található pontok.
-    
-    Az R-tree tervezési mintát eredetileg leíró szöveg:
-       
-   Guttman, A. "R-trees: A Dynamic Index Structure for Spatial
-   Searching." Proceedings of the 1984 ACM SIGMOD Int'l Conf on Mgmt of
-   Data, 45-57.
-    
-    Ezt olvashatod Stonebraker "Readings in Database Systems" c.
-    könyvében.
-   
-    A beépített R-tree kezelni tudják a sokszögeket (polygon adattípus)
-    és a dobozokat (box). Elméletileg, az R-tree kiterjeszthetõ további 
-    dimenziókra is. Gyakorlatilag ezen dolgoznod kell egy kicsit, és
-    még nincs dokumentációnk arról hogy az hogyan mûködik.
-
-    4.11) Mi a Genetic Query Optimizer?
-    
-    A GEQO modul a lekérdezés optimalizáció sebességét növeli nagy
-    mennyiségû tábla összekapcsolása esetén. Lehetõvé teszi a nagy
-    lekérdezések végrehajtását nem teljes kereséssel.
-   
-    4.12) Hogyan tudok regexp keresést és case-insensitive regexp keresést 
-    használni? Hogyan tudok indexet használni case-insensitive kereséshez?
-    
-    A ~ operátor hajt végre reguláris kifejezés (regexp) értelmezést,
-    a ~* ennek case-insensitive változata. A LIKE case-insensitive
-    változata az ILIKE.
-    
-    A case-insensitive egyenlõség mûveleteket általában igy hajtjuk
-    végre:
-    SELECT *
-    FROM tab
-    WHERE lower(col) = 'abc';
-   
-    Ez nem fog indexet használni, bár létrehozhatsz egy funkció indexet:
   CREATE INDEX tabindex ON tab (lower(col));
-
-    4.13) Hogyan tudom észlelni egy lekérdezésben, ha egy mezõ NULL?
-    
+   4.9) Hogy tudom ellenõrizni, hogy optimalizálta a lekérdezés optimalizálo
+   a lekérdezésem?
+
+   Olvasd el a dokumentácio EXPLAIN-rol szolo részét.
+
+   4.10) Mi az R-tree index?
+
+   Az R-tree index a térbeli adat indexelésére alkalmas. Egy hash index nem
+   képes tartomány keresésekre. A B-tree index csak egy dimenzion kezeli a
+   tartomány kereséseket. Például ha az indexet egy pont (point adattípus)
+   típusú mez.re építjük, gyorsabban kezeli az olyan jellegü lekérdezéseket,
+   mint egy adott körben
+
+   találhato pontok.
+
+   Az R-tree tervezési mintát eredetileg leíro szöveg: Guttman, A. "R-trees:
+   A Dynamic Index Structure for Spatial Searching." Proceedings of the 1984
+   ACM SIGMOD Int'l Conf on Mgmt of Data, 45-57.
+
+   Ezt olvashatod Stonebraker "Readings in Database Systems" c. könyvében.
+
+   A beépített R-tree kezelni tudják a sokszögeket (polygon adattípus) és a
+   dobozokat (box). Elméletileg, az R-tree kiterjeszthetõ további dimenziokra
+   is. Gyakorlatilag ezen dolgoznod kell egy kicsit, és még nincs
+   dokumentácionk arrol hogy az hogyan mûködik.
+
+   4.11) Mi a Genetic Query Optimizer?
+
+   A GEQO modul a lekérdezés optimalizácio sebességét növeli nagy mennyiségû
+   tábla összekapcsolása esetén. Lehetõvé teszi a nagy lekérdezések
+   végrehajtását nem teljes kereséssel.
+
+   4.12) Hogyan tudok regexp keresést és case-insensitive regexp keresést
+   használni? Hogyan tudok indexet használni case-insensitive kereséshez?
+
+   A ~ operátor hajt végre reguláris kifejezés (regexp) értelmezést, a ~*
+   ennek case-insensitive változata. A LIKE case-insensitive változata az
+   ILIKE.
+
+   A case-insensitive egyenlõség mûveleteket általában igy hajtjuk végre:
+
+   SELECT *
+
+ FROM tab
+
+ WHERE lower(col) = 'abc';
+
+   Ez nem fog indexet használni, bár létrehozhatsz egy funkcio indexet:
+
+ CREATE INDEX tabindex ON tab (lower(col));
+
+   4.13) Hogyan tudom észlelni egy lekérdezésben, ha egy mezõ NULL?
+
    Használd "IS NULL"-t és az "IS NOT NULL"-t.
-   
-    4.14) Mi a különbség a különbözõ karaktertípusok között?
-    
-Type            Internal Name   Notes
---------------------------------------------------
-"char"          char            1 character
-CHAR(n)         bpchar          blank padded to the specified fixed length
-VARCHAR(n)      varchar         size specifies maximum length, no padding
-TEXT            text            no specific upper limit on length
-BYTEA           bytea           variable-length byte array (null-byte safe)
-
-   Látni fogod a belsõ elnevezésüket, ha tanulmányozod a rendszertáblákat
-   és néhány hibaüzenetet.
-   
-   Az utóbbi négy a "varlena" típusok, ami a tárolásuk módjára utal:
-   az elsõ 4 byte a lemezen a hosszúság, a többi az adat. A valódi méret
-   tehát nagyobb mint a deklarált hosszúság.Ezek azadatok tömöritve 
-   tárolódnak el, igy kevesebb helyet foglalnek el az elöre számitottnál.
-   
-   A CHAR(n) a legjobb megoldás, ha stabil hosszúságú stringet tárolsz.
-   A VARCHAR(n) jó arra az esetekre, ha a hosszúság változik, de van 
-   felsõ korlátja. A TEXT típus korlátlan hosszúságú (1 GB-ig) szövegek
-   tárolására alklamas. A BYTEA bináris adatok tárolására van. A 
-   teljesitmény mutatói hasonlóak ezenek a típusoknak.
-   
-    4.15.1) Hogyan tudok létrehozni automatikusan növekvõ értékû mezõt?
-    
-    A PostgreSQL rendelkezik egy SERIAL adattípussal. Ez egy szekvenciát
-    és egy indexet hoz létre az oszlopon. Például ez:
-    CREATE TABLE person (
-        id   SERIAL,
-        name TEXT
-    );
+
+   4.14) Mi a különbség a különbözõ karaktertípusok között?
+
+     * "char" egy karakter hosszú string
+     * CHAR(n) bpchar üres hellyel a megadott n hosszúságig
+     * VARCHAR(n) varchar méret maximális hossz meghatározásával, a lefogllat
+       terület is változo hosszú lesz
+     * TEXT nincs meghatározott felso" korlát
+     * BYTEA változo hosszúságú byte-tömb
+
+   Látni fogod a belsõ elnevezésüket, ha tanulmányozod a rendszertáblákatés
+   néhány hibaüzenetet.
+
+   Az utobbi négy a "varlena" típusok, ami a tárolásuk modjára utal: az elsõ
+   4 byte a lemezen a hosszúság, a többi az adat. A valodi méret tehát
+   nagyobb mint a deklarált hosszúság.Ezek azadatok tömöritve tárolodnak el,
+   igy kevesebb helyet foglalnek el az elöre számitottnál.
+
+   A CHAR(n) a legjobb megoldás, ha stabil hosszúságú stringet tárolsz. A
+   VARCHAR(n) jo arra az esetekre, ha a hosszúság változik, de van felsõ
+   korlátja. A TEXT típus korlátlan hosszúságú (1 GB-ig) szövegek tárolására
+   alklamas. A BYTEA bináris adatok tárolására van. A teljesitmény mutatoi
+   hasonloak ezenek a típusoknak.
+
+   4.15.1) Hogyan tudok létrehozni automatikusan növekvõ értékû mezõt?
+
+   A PostgreSQL rendelkezik egy SERIAL adattípussal. Ez egy szekvenciát és
+   egy indexet hoz létre az oszlopon. Például ez:
+
+ CREATE TABLE person (
+
+ id SERIAL,
+
+ name TEXT
+
+ );
 
    ugyanezt jelenti:
-    CREATE SEQUENCE person_id_seq;
-    CREATE TABLE person (
-        id   INT4 NOT NULL DEFAULT nextval('person_id_seq'),
-        name TEXT
-    );
-    CREATE UNIQUE INDEX person_id_key ON person ( id );
-   
-   A szekvenciákkal kapcsolatban olvasd el a create_sequence man
-   oldalt. A sor OID-jét is használhatod egyedi azonositóként, bár
-   ebben az esetben figyelj a pg_gump használatánál a -o opcióra
-   (COPY WITH OIDS, másolás OID-dal), hogy meg?rizd az értékeket.
-   
-    4.15.2) Hogyan kaphatom meg egy SERIAL beszúrás értékét?
-    
-    Egy megoldás erre az, ha a nextval() funkcióval megszerzed az
-    értéket még mielött beszúrnád az adatot a táblába. Erre itt láthatsz
-    egy példát:
-    new_id = execute("SELECT nextval('person_id_seq')");
-    execute("INSERT INTO person (id, name) VALUES (new_id, 'Blaise Pascal')");
-    
-    Esetleg lekérdezheted a szekvencia állapotát a sor beszúrása után.
-    execute("INSERT INTO person (name) VALUES ('Blaise Pascal')");
-    new_id = execute("SELECT currval('person_id_seq')");
+
+ CREATE SEQUENCE person_id_seq;
+
+ CREATE TABLE person (
+
+ id INT4 NOT NULL DEFAULT nextval('person_id_seq'),
+
+ name TEXT
+
+ );
+
+ CREATE UNIQUE INDEX person_id_key ON person ( id );
+
+   A szekvenciákkal kapcsolatban olvasd el a create_sequence man oldalt. A
+   sor OID-jét is használhatod egyedi azonositoként, bár ebben az esetben
+   figyelj a pg_gump használatánál a -o opciora (COPY WITH OIDS, másolás
+   OID-dal), hogy meg?rizd az értékeket.
+
+   4.15.2) Hogyan kaphatom meg egy SERIAL beszúrás értékét?
+
+   Egy megoldás erre az, ha a nextval() funkcioval megszerzed az értéket még
+   mielött beszúrnád az adatot a táblába. Erre itt láthatsz egy példát:
+
+ new_id = execute("SELECT nextval('person_id_seq')");
+
+ execute("INSERT INTO person (id, name) VALUES (new_id, 'Blaise
+ Pascal')");
+
+   Esetleg lekérdezheted a szekvencia állapotát a sor beszúrása után.
+
+ execute("INSERT INTO person (name) VALUES ('Blaise Pascal')");
+
+ new_id = execute("SELECT currval('person_id_seq')");
 
    Végül pedig, használhatod a visszaadott OID értéket is, bár ez a lehetõ
-   legkevésbé portolható. Perl DBI-ben, Edmund Mergl DBD::Pg moduljában
-   az OID érték használható a $sth->execute() után ($sth->{pg_oid_status}).
+   legkevésbé portolhato. Perl DBI-ben, Edmund Mergl DBD::Pg moduljában az
+   OID érték használhato a $sth->execute() után ($sth->{pg_oid_status}).
+
+   4.15.3) A currval() és a nextval() nem teremt holtpont veszélyes helyzetet
+   a felhasználok között?
 
-    4.15.3) A currval() és a nextval() nem teremt holtpont veszélyes helyzetet 
-   a felhasználók között?
-    
-   Nem. A currval() funkció a szerver processzed által adott értéket adja 
+   Nem. A currval() funkcio a szerver processzed által adott értéket adja
    vissza, nem pedig a többi szerver processz által adottat.
-   
-    4.15.4) Miért nem használódnak fel újra a sequence számok tranzakció 
-    abort esetén?
-    Miért vannak problémák a serial oszlopok számozásával?
-    
-   A párhuzamosság fejlesztése érdekében a sorozat számokat kérésre
-   adja ki a szerver futó tranzakcióknak, és azokat nem zárja, amig
-   a tranzakció véget nem ér. Ez jukakat okoz a számozásokban a
-   visszaforditott tranzakciók miatt.
-   
-    4.16) Mi a OID? Mi a TID?
-    
-   Az OID a PostgreSQL egyedi sor azonositója. Minden sor, ami létrejön
-   a szerveren, kap egy OID-t. Minden OID, amit az initdb alatt jön létre
-   16384 alatt van (lásd include/access/transam.h). Minden, felhasználó
-   által létrehozott OID legalább ennyi. Alapértelmezésben, az OID
-   nem csak a táblában vagy az adatbázisban egyedi, hanem a teljes
-   PostgreSQL adatbázis rendszerben.
-   
-   A PostgreSQL az OID-okat a belsö tábláiban használja a sorok táblák
-   között összekapcsolásához. Ezek az OID-k használhatóak a rekordok
-   azonositására is amikor táblákat csatol össze a szerver (JOIN).
-   Az OID-ot használhatod mezö típusként is, és indexelheted is.
-   
-   Az OID érték egy központi területröl származik, amit minden szerver 
+
+   4.15.4) Miért nem használodnak fel újra a sequence számok tranzakcio abort
+   esetén?
+
+   Miért vannak problémák a serial oszlopok számozásával?
+
+   A párhuzamosság fejlesztése érdekében a sorozat számokat kérésre adja ki a
+   szerver futo tranzakcioknak, és azokat nem zárja, amig a tranzakcio véget
+   nem ér. Ez jukakat okoz a számozásokban a visszaforditott tranzakciok
+   miatt.
+
+   4.16) Mi a OID? Mi a TID?
+
+   Az OID a PostgreSQL egyedi sor azonositoja. Minden sor, ami létrejön a
+   szerveren, kap egy OID-t. Minden OID, amit az initdb alatt jön létre 16384
+   alatt van (lásd include/access/transam.h). Minden, felhasználo által
+   létrehozott OID legalább ennyi. Alapértelmezésben, az OID nem csak a
+   táblában vagy az adatbázisban egyedi, hanem a teljes PostgreSQL adatbázis
+   rendszerben.
+
+   A PostgreSQL az OID-okat a belsö tábláiban használja a sorok táblák között
+   összekapcsolásához. Ezek az OID-k használhatoak a rekordok azonositására
+   is amikor táblákat csatol össze a szerver (JOIN). Az OID-ot használhatod
+   mezö típusként is, és indexelheted is.
+
+   Az OID érték egy központi területröl származik, amit minden szerver
    processz használ. Ha az OID-ot valami másra szeretnéd cserélni:
-        CREATE TABLE new_table(old_oid oid, mycol int);
-        SELECT old_oid, mycol INTO new FROM old;
-        COPY new TO '/tmp/pgtable';
-        DELETE FROM new;
-        COPY new WITH OIDS FROM '/tmp/pgtable';
-   
-   Az OID 4 byte-os integer értékként tárolódik, igy 4 milliárdnál túlcsordul.
-   Még soha senki nem jelezte hogy ez történt volna, és ezt a korlátot 
-   igyekszünk eltávolitani, még mielött bárki észrevenné.
-   
-   A TID a fizikai sorok blokk és offszet címmel való azonositására szolgál.
-   A TID változik minden rekord módositás és törlés alkalmával. Ezeket az 
+
+   CREATE TABLE new_table(old_oid oid, mycol int);
+
+ SELECT old_oid, mycol INTO new FROM old;
+
+ COPY new TO '/tmp/pgtable';
+
+ DELETE FROM new;
+
+ COPY new WITH OIDS FROM '/tmp/pgtable';
+
+   Az OID 4 byte-os integer értékként tárolodik, igy 4 milliárdnál
+   túlcsordul. Még soha senki nem jelezte hogy ez történt volna, és ezt a
+   korlátot igyekszünk eltávolitani, még mielött bárki észrevenné.
+
+   A TID a fizikai sorok blokk és offszet címmel valo azonositására szolgál.
+   A TID változik minden rekord modositás és törlés alkalmával. Ezeket az
    indexek használják hogy a fizikai sort gyorsan megtalálják.
-      
-    4.17) Mi a PostgreSQL-ben használt kifejezések jelentése?
-    
-    Néhol a forrás kódban és a dokumnetációban találhatóak kifejezések,
-    amelyek általánosabb jelentéssel bírnak. Itt van néhány:
-     * tábla (table), reláció (relation), osztály (class)
+
+   4.17) Mi a PostgreSQL-ben használt kifejezések jelentése?
+
+   Néhol a forrás kodban és a dokumnetácioban találhatoak kifejezések,
+   amelyek általánosabb jelentéssel bírnak. Itt van néhány:
+
+     * tábla (table), relácio (relation), osztály (class)
      * sor (row), rekord (record), tuple (nincs magyar jelentés)
      * oszlop (column), mezö (field), attributum (attribute)
      * retrieve, select
-     * helyettesit (replace), módosit (update)
+     * helyettesit (replace), modosit (update)
      * hozzáfûz (append), beszúr (insert)
      * OID, sorozat érték (serial value)
      * portal, cursor
      * range variable, tábla név, tábla alias
-       
-   Az általános adatbázis kifejezések összefoglalóját itt olvasható:
-   http://hea-www.harvard.edu/MST/simul/software/docs/pkgs/pgsql/glossary
-   /glossary.html
-   
-    4.18) Miért kapom ezt a hibát: "ERROR: Memory exhausted in
+   Az általános adatbázis kifejezések összefoglaloját itt olvashato:
+
+   http://hea-www.harvard.edu/MST/simul/software/docs/pkgs/pgsql/glossary/glossary.html
+
+   4.18) Miért kapom ezt a hibát: "ERROR: Memory exhausted in
    AllocSetAlloc()"?
-    
-   Lehet hogy elfogyott a virtuális memóriád, vagy a kerneled erõforrás 
-   korlátai alacsonyak. Próbáld ki ezt mielött elinditanád a postmastert:
-    ulimit -d 262144
-    limit datasize 256m
-
-   A shelltõl függõen ezek közül csak az egyik fut majd le, de a
-   processzek adatszegmensét sokkal magasabbra állitja, ami talán 
-   elég lesz a lekérdezés végrehajtásához. Ez az utasítás a jelenlegi
-   processzre (a shelled) érvényes, és minden általa létrehozott
-   processzre. Ha problémád van az SQL klienssel, mert a szerver
-   túl nagy adatot küld vissza, próbáld meg e klienssel is ugyanezt.
-
-    4.19) Hogyan tudhatom meg PostgreSQL, milyen verziót futtatok?
-    
+
+   Lehet hogy elfogyott a virtuális memoriád, vagy a kerneled erõforrás
+   korlátai alacsonyak. Probáld ki ezt mielött elinditanád a postmastert:
+
+ ulimit -d 262144
+
+ limit datasize 256m
+
+   A shelltõl függõen ezek közül csak az egyik fut majd le, de a processzek
+   adatszegmensét sokkal magasabbra állitja, ami talán elég lesz a lekérdezés
+   végrehajtásához. Ez az utasítás a jelenlegi processzre (a shelled)
+   érvényes, és minden általa létrehozott processzre. Ha problémád van az SQL
+   klienssel, mert a szerver túl nagy adatot küld vissza, probáld meg e
+   klienssel is ugyanezt.
+
+   4.19) Hogyan tudhatom meg PostgreSQL, milyen verziot futtatok?
+
    A psql programban select version();
-   
-    4.20) Miért kapok "invalid large obj descriptor" hibát nagy objektumok 
-    kezelésénél?
-   
-   A nagy objektumok kezelését egy tranzakciós blokkban helyezd el.
-   (BEGIN és COMMIT között)
-   
+
+   4.20) Miért kapok "invalid large obj descriptor" hibát nagy objektumok
+   kezelésénél?
+
+   A nagy objektumok kezelését egy tranzakcios blokkban helyezd el. (BEGIN és
+   COMMIT között)
+
    Jelenleg a PostgreSQL ezt a szabályt azzal teszi kötelezõvé, hogy a
-   tranzakció végén a nagy objektumokat lezárja, igy a tranzakció után 
-   az elsõ mûvelet amit az objektumon végrahajtanál hibás lesz.
-   
-    Ha olyan programozási felületet használsz mint az ODBC vagy a JDBC
-    akkor valószinûleg ki kell kapcsolnod az auto-commit-ot.
-   
-   
-    4.21) Hogy hozhatok létre olyan oszlopot, aminek alapértelmezett 
-    érétke a jelenlegi idõ?
-    
+   tranzakcio végén a nagy objektumokat lezárja, igy a tranzakcio után az
+   elsõ mûvelet amit az objektumon végrahajtanál hibás lesz.
+
+   Ha olyan programozási felületet használsz mint az ODBC vagy a JDBC akkor
+   valoszinûleg ki kell kapcsolnod az auto-commit-ot.
+
+   4.21) Hogy hozhatok létre olyan oszlopot, aminek alapértelmezett érétke a
+   jelenlegi idõ?
+
    Használd a CURRENT_TIMESTAMP -ot:
-   CREATE TABLE test (x int, modtime timestamp DEFAULT CURRENT_TIMESTAMP );
-
-    4.22) Miért olyan lassúak az al-lekérdezéseim IN-nel?
-   
-   Jelenleg az al-lekérdezéseket a külsõ lekérdezéshez csatoljuk. Ha
-   az allekérdezés csak kevés sort eredményez és a külsõ lekérdezés
-   sokat, akkor az IN is gyors. Az EXISTS kulcsszó használatával 
-   gyorsithatod a lekérdezéseket.
-    SELECT *
-    FROM tab
-    WHERE col IN (SELECT subcol FROM subtab);
+
+ CREATE TABLE test (x int, modtime timestamp DEFAULT CURRENT_TIMESTAMP );
+
+   4.22) Miért olyan lassúak az al-lekérdezéseim IN-nel?
+
+   Jelenleg az al-lekérdezéseket a külsõ lekérdezéshez csatoljuk. Ha az
+   allekérdezés csak kevés sort eredményez és a külsõ lekérdezés sokat, akkor
+   az IN is gyors. Az EXISTS kulcsszo használatával gyorsithatod a
+   lekérdezéseket.
+
+   SELECT *
+
+ FROM tab
+
+ WHERE col IN (SELECT subcol FROM subtab);
 
    EXISTS használatával:
-    SELECT *
-    FROM tab
-    WHERE EXISTS (SELECT subcol FROM subtab WHERE subcol = col);
-   
-   Ahhoz hogy ez gyorsan fusson le, a subcol indexelt oszlopnak kell 
-   hogy legyen. Reméljük ezt a korlátot sikerül hamarosan legyõznünk.
-   
-    4.23) Hogyan tudok outer join-t végrehajtani?
-    
-    A PostgreSQL a szabványos SQL szintaktikát követi. Itt van két példa:
-    SELECT *
-    FROM t1 LEFT OUTER JOIN t2 ON (t1.col = t2.col);
+
+ SELECT *
+
+ FROM tab
+
+ WHERE EXISTS (SELECT subcol FROM subtab WHERE subcol = col);
+
+   Ahhoz hogy ez gyorsan fusson le, a subcol indexelt oszlopnak kell hogy
+   legyen. Reméljük ezt a korlátot sikerül hamarosan legyõznünk.
+
+   4.23) Hogyan tudok outer join-t végrehajtani?
+
+   A PostgreSQL a szabványos SQL szintaktikát követi. Itt van két példa:
+
+   SELECT *
+
+ FROM t1 LEFT OUTER JOIN t2 ON (t1.col = t2.col);
 
    vagy
-    SELECT *
-    FROM t1 LEFT OUTER JOIN t2 USING (col);
-   
+
+ SELECT *
+
+ FROM t1 LEFT OUTER JOIN t2 USING (col);
+
    Ezek az identikus lekérdezések összekapcsolják a t1.col és a t2.col
-   mezõket, és a t1 bármelyik kapcsolatlan sorát is visszadják. A RIGHT
-   JOIN a t2 kapcsolatlan sorait adta volna vissza, a FULL JOIN pedig
-   a kapcsolt, és mindkét tábla kapcsolatlan sorait adja. Az OUTER
-   kulcsszó opcionális, a LEFT, RIGHT és FULL JOIN szintaktikailag 
-    helyes. Az átlagos összekapcsolásokat INNER JOIN-nak nevezzük.
-   
+   mezõket, és a t1 bármelyik kapcsolatlan sorát is visszadják. A RIGHT JOIN
+   a t2 kapcsolatlan sorait adta volna vissza, a FULL JOIN pedig a kapcsolt,
+   és mindkét tábla kapcsolatlan sorait adja. Az OUTER kulcsszo opcionális, a
+   LEFT, RIGHT és FULL JOIN szintaktikailag helyes. Az átlagos
+   összekapcsolásokat INNER JOIN-nak nevezzük.
+
    Az elõzõ kiadásokban a OUTER JOIN lekérdezéseket UNION és NOT IN
-   kulcsszavakkal lehetett szimulálni. Például a tab1 és a tab2 
+   kulcsszavakkal lehetett szimulálni. Például a tab1 és a tab2
    összekapcsolása:
-    SELECT tab1.col1, tab2.col2
-    FROM tab1, tab2
-    WHERE tab1.col1 = tab2.col1
-    UNION ALL
-    SELECT tab1.col1, NULL
-    FROM tab1
-    WHERE tab1.col1 NOT IN (SELECT tab2.col1 FROM tab2)
-    ORDER BY col1
-
-    4.24) Hogyan tudok több adatbázison végrehajtani lekérdezést?
-   
-   Arra nincs lehetõség, hogy más adatbázisból kérdezz le adatot.
-   Mivel a PostgreSQL adatbázis specifikus rendszer táblákat tölt
-   be, bizonytalan hogy egy adatbázisok közötti lekérdezésnek hogyan
-   kellene viselkednie. 
-   
-   A contrib/dblink könyvtárban találsz egy megoldást erre, ami 
-   funkció hivások segitségével mûködik. Persze, a kliens hozhat létre
-   szimultán kapcsolatot több adatbázissal, és összefésülheti az 
-   eredményeket.
-   
-    4.25) Hogy tudok több soros vagy oszlopos eredményt visszaadni egy 
-    funkcióból?
-    
-    A PL/pgSQL tárolt eljárás nyelvvel refcursor használatával. 
-    Részletesen itt:
-    http://www.PostgreSQL.org/idocs/index.php?plpgsql-cursors.html
-   
-    4.26) Miért nem tudom megbizhatóan létrehozni és törölni az átmeneti 
-    táblákat a PL/pgSQL funkciókban?
-    
-    A PL/pgSQL cacheli a funkciók tartalmát, aminek az a szerencsétlen
-    mellékhatása, hogy ha egy PL/pgSQL funkció használ egy átmeneti
-    táblát, ami kés?bb törlõdik majd ujra létrejön, akkor az újra lefutó
-    funkció nem fogja megtalálni a táblát, mert a cache változat a régi
-    táblára tartalmaz mutatót. A megoldás erre az EXECUTE utasítás
-    használata az átmeneti táblák kezelésére PL/pgSQL-ben. Ez a 
-    lekérdezés újrafordítását fogja elõidézni minden alkalommal.
-    
-    4.27) Milyen replikációs lehetõségek vannak?
-    
-    Számos master/slave replikációs lehetõség létezik. Ez csak a master
-    adatbázis számára teszi lehetõvé, hogy az adatokat változtassa. Egy
-    Listát olvashatsz ezekrõl itt: 
+
+ SELECT tab1.col1, tab2.col2
+
+ FROM tab1, tab2
+
+ WHERE tab1.col1 = tab2.col1
+
+ UNION ALL
+
+ SELECT tab1.col1, NULL
+
+ FROM tab1
+
+ WHERE tab1.col1 NOT IN (SELECT tab2.col1 FROM tab2)
+
+ ORDER BY col1
+
+   4.24) Hogyan tudok több adatbázison végrehajtani lekérdezést?
+
+   Arra nincs lehetõség, hogy más adatbázisbol kérdezz le adatot.Mivel a
+   PostgreSQL adatbázis specifikus rendszer táblákat töltbe, bizonytalan hogy
+   egy adatbázisok közötti lekérdezésnek hogyankellene viselkednie.
+
+   A contrib/dblink könyvtárban találsz egy megoldást erre, ami funkcio
+   hivások segitségével mûködik. Persze, a kliens hozhat létreszimultán
+   kapcsolatot több adatbázissal, és összefésülheti az eredményeket.
+
+   4.25) Hogy tudok több soros vagy oszlopos eredményt visszaadni egy
+   funkciobol?
+
+   A PL/pgSQL tárolt eljárás nyelvvel refcursor használatával. Részletesen
+   itt:
+
+   http://www.PostgreSQL.org/idocs/index.php?plpgsql-cursors.html
+
+   4.26) Miért nem tudom megbizhatoan létrehozni és törölni az átmeneti
+   táblákat a PL/pgSQL funkciokban?
+
+   A PL/pgSQL cacheli a funkciok tartalmát, aminek az a szerencsétlen
+   mellékhatása, hogy ha egy PL/pgSQL funkcio használ egy átmeneti táblát,
+   ami késo"bb törlõdik majd ujra létrejön, akkor az újra lefuto funkcio nem
+   fogja megtalálni a táblát, mert a cache változat a régi táblára tartalmaz
+   mutatot. A megoldás erre az EXECUTE használata az átmeneti táblák
+   kezelésére PL/pgSQL-ben. Ez a lekérdezés újrafordítását fogja elõidézni
+   minden alkalommal.
+
+   4.27) Milyen replikácios lehetõségek vannak?
+
+   Bár a replikácio egyetlen terület, több technologia létezik replikáciora,
+   természetesen mindnek meg vannak a maga elo"nyei és hátrányai.
+
+   A master/slave replikácios megoldással a master adatbázison hajthatunk
+   végre modosításokat, míg a slave adatbázisokon csak lekérdezéseket. A
+   PostgreSQL legnépszeru"bb master/slave replikácios megoldása a Solny-I.
+
+   Számos más master/slave replikácios lehetõség létezik.Egy Listát
+   olvashatsz ezekrõl itt:
+
    http://gborg.PostgreSQL.org/genpage?replication_research
-   
-   Egy többfelhasználós replikációs rendszer készül itt:
+
+   A multi-master replikácio leheto"vé teszi több master adatbázis
+   használatát, bár ez a technologia drasztikusan csökkenti az adatbázis
+   teljesítményét a sok szinkornizácio miatt. A PGCluster a legelterjedtebb
+   ilyen megoldás.
+
+   Egy többfelhasználos replikácios rendszer készül itt:
+
    http://gborg.PostgreSQL.org/project/pgreplication/projdisplay.php.
-   
-    4.28) Milyen kódolási lehetõségek vannak?
-    
-    - A contrib/pgcrypto tartlamaz számos SQL lekérdezésben használható kódolást.
-    - A kliens-szerver kommunikáció rejtjelezésére a hostssl használható.
-      Ezt a pg_hba.conf-ben engedélyeztheted.
-    - Az adatbázis felhsználók jelszavait tároláskor kódolja a rendszer. 
-      Régebbi verziókban a PASSWORD_ENCRYPTION opcióval lehetett
-      bekapcsolni.
-    - A szerveren használhatsz kódolt fájrendszert.
-     _________________________________________________________________
-   
-                            A PostgreSQL kiterjesztése
-                                      
-   5.1) Írtam egy felhasználói funkciót. Miért core dumpol az adatbázis amikor
-   használom?
-   
-   Számos probléma lehet. Elöbb probáld ki a funkciódat egy különálló
+
+   4.28) Milyen kodolási lehetõségek vannak?
+
+     * A contrib/pgcrypto tartlamaz számos SQL lekérdezésben használhato
+       kodolást.
+     * A kliens-szerver kommunikácio rejtjelezésére a hostssl használhato.
+       Ezt a pg_hba.conf-ben engedélyeztheted.
+     * Az adatbázis felhsználok jelszavait tároláskor kodolja a rendszer. 
+     * Régebbi verziokban a PASSWORD_ENCRYPTION opcioval lehetett
+       bekapcsolni.
+     * A szerveren használhatsz kodolt fájrendszert.
+
+     ----------------------------------------------------------------------
+
+A PostgreSQL kiterjesztése
+
+   5.1) Írtam egy felhasználoi funkciot. Miért core dumpol az adatbázis
+   amikor használom?
+
+   Számos probléma lehet. Elöbb probáld ki a funkciodat egy különállo
    alkalmazásban.
-   
-   5.2) Hogyan lehet új adattípusokat és funkciókat hozzáadni a PostgreSQL 
-   disztribúcióhoz?
-   
+
+   5.2) Hogyan lehet új adattípusokat és funkciokat hozzáadni a PostgreSQL
+   disztribúciohoz?
+
    Küldd el a kiegészítéseid a pgsql-hackers levelezési listára és a
    forráskodjaid végül a contrib-ban kötnek ki.
-   
-   5.3) Hogyan lehet olyan C funkciót írni, ami Tuple-t ad vissza?
-    
-        A 7.3 verziótól kezdve a PostgreSQL támogatja a táblázatokat
-        viszzaadó funkciókat C, PL/pgSQL és SQL nyelveken. Bõvebb
-        dokumentációt a Programozó kézikönyvben találsz. Egy C példa 
-        funkció található a contrib/tablefunc könyvtárban.
-        
-   5.4) Megváltoztattam egy forrás állományt. Miért nem változik a bináris 
+
+   5.3) Hogyan lehet olyan C funkciot írni, ami Tuple-t ad vissza?
+
+   A 7.3 verziotol kezdve a PostgreSQL támogatja a táblázatokat viszzaado
+   funkciokat C, PL/pgSQL és SQL nyelveken. Bõvebb dokumentáciot a Programozo
+   kézikönyvben találsz. Egy C példa funkcio találhato a contrib/tablefunc
+   könyvtárban.
+
+   5.4) Megváltoztattam egy forrás állományt. Miért nem változik a bináris
    újrafordítás után?
-   
+
    A Makefile-ok nem ismerik a include állományok megfelelõ függõségeit.
    Végre kell hajtanod egy make clean-t, majd újra egy make-t. Ha GCC-t
-   használsz felhasználhatod a configure script --enable-depend opcióját,
-   így a compiler maga fogja ellenõrizni a függõségeket.
-   
-
+   használsz felhasználhatod a configure script --enable-depend opcioját, így
+   a compiler maga fogja ellenõrizni a függõségeket.
index 8949f93b96102e7248e0f685d89bed58dda7bd5f..df71e8bf25d5128b8815ce6e29f0c0e935a79938 100644 (file)
   alink="#0000ff">
     <H1>Frequently Asked Questions (FAQ) for PostgreSQL</H1>
 
-    <P>Last updated: Sun Jan 16 23:27:08 EST 2005</P>
+    <P>Last updated: Fri Sep 16 14:07:22 EDT 2005</P>
 
     <P>Current maintainer: Bruce Momjian (<A href=
-    "mailto:pgman@candle.pha.pa.us">pgman@candle.pha.pa.us</A>)<BR>
+    "mailto:pgman@candle.pha.pa.us">pgman@candle.pha.pa.us</A>)
     </P>
 
     <P>The most recent version of this document can be viewed at <A href=
     <HR>
 
     <H2 align="center">General Questions</H2>
-    <A href="#1.1">1.1</A>) What is PostgreSQL? How is it pronounced?<BR>
-     <A href="#1.2">1.2</A>) What is the copyright on PostgreSQL?<BR>
-     <A href="#1.3">1.3</A>) What Unix platforms does PostgreSQL run
-    on?<BR>
-     <A href="#1.4">1.4</A>) What non-Unix ports are available?<BR>
-     <A href="#1.5">1.5</A>) Where can I get PostgreSQL?<BR>
-     <A href="#1.6">1.6</A>) Where can I get support?<BR>
+     <A href="#1.1">1.1</A>) What is PostgreSQL? How is it pronounced?<BR>
+     <A href="#1.2">1.2</A>) What is the copyright of PostgreSQL?<BR>
+     <A href="#1.3">1.3</A>) What platforms does PostgreSQL support?<BR>
+     <A href="#1.4">1.4</A>) Where can I get PostgreSQL?<BR>
+     <A href="#1.5">1.5</A>) Where can I get support?<BR>
+     <A href="#1.6">1.6</A>) How do I submit a bug report?<BR>
      <A href="#1.7">1.7</A>) What is the latest release?<BR>
      <A href="#1.8">1.8</A>) What documentation is available?<BR>
      <A href="#1.9">1.9</A>) How do I find out about known bugs or
     missing features?<BR>
      <A href="#1.10">1.10</A>) How can I learn <SMALL>SQL</SMALL>?<BR>
-     <A href="#1.11">1.11</A>) Is PostgreSQL Y2K compliant?<BR>
-     <A href="#1.12">1.12</A>) How do I join the development team?<BR>
-     <A href="#1.13">1.13</A>) How do I submit a bug report?<BR>
-     <A href="#1.14">1.14</A>) How does PostgreSQL compare to other
+     <A href="#1.11">1.11</A>) How do I join the development team?<BR>
+     <A href="#1.12">1.12</A>) How does PostgreSQL compare to other
     <SMALL>DBMS</SMALL>s?<BR>
-     <A href="#1.15">1.15</A>) How can I financially assist
-    PostgreSQL?<BR>
+     <A href="#1.13">1.13</A>) Who controls PostgreSQL?<BR>
      
 
     <H2 align="center">User Client Questions</H2>
-    <A href="#2.1">2.1</A>) Are there <SMALL>ODBC</SMALL> drivers for
+    <A href="#2.1">2.1</A>) What interfaces are available for
     PostgreSQL?<BR>
      <A href="#2.2">2.2</A>) What tools are available for using
     PostgreSQL with Web pages?<BR>
      <A href="#2.3">2.3</A>) Does PostgreSQL have a graphical user
     interface?<BR>
-     <A href="#2.4">2.4</A>) What languages are available to
-    communicate with PostgreSQL?<BR>
      
 
     <H2 align="center">Administrative Questions</H2>
     <A href="#3.1">3.1</A>) How do I install PostgreSQL somewhere other
     than <I>/usr/local/pgsql</I>?<BR>
-     <A href="#3.2">3.2</A>) When I start <I>postmaster</I>, I get a
-    <I>Bad System Call</I> or core dumped message. Why?<BR>
-     <A href="#3.3">3.3</A>) When I try to start <I>postmaster</I>, I
-    get <I>IpcMemoryCreate</I> errors. Why?<BR>
-     <A href="#3.4">3.4</A>) When I try to start <I>postmaster</I>, I
-    get <I>IpcSemaphoreCreate</I> errors. Why?<BR>
-     <A href="#3.5">3.5</A>) How do I control connections from other
+     <A href="#3.2">3.2</A>) How do I control connections from other
     hosts?<BR>
-     <A href="#3.6">3.6</A>) How do I tune the database engine for
+     <A href="#3.3">3.3</A>) How do I tune the database engine for
     better performance?<BR>
-     <A href="#3.7">3.7</A>) What debugging features are available?<BR>
-     <A href="#3.8">3.8</A>) Why do I get <I>"Sorry, too many
+     <A href="#3.4">3.4</A>) What debugging features are available?<BR>
+     <A href="#3.5">3.5</A>) Why do I get <I>"Sorry, too many
     clients"</I> when trying to connect?<BR>
-     <A href="#3.9">3.9</A>) What is in the  <I>pgsql_tmp</I>
-    directory?<BR>
-     <A href="#3.10">3.10</A>) Why do I need to do a dump and restore
+     <A href="#3.6">3.6</A>) Why do I need to do a dump and restore
     to upgrade PostgreSQL releases?<BR>
-     <A href="#3.11">3.11</A>) What computer hardware should I use?<BR>
+     <A href="#3.7">3.7</A>) What computer hardware should I use?<BR>
 
 
     <H2 align="center">Operational Questions</H2>
-    <A href="#4.1">4.1</A>) What is the difference between binary
-    cursors and normal cursors?<BR>
-     <A href="#4.2">4.2</A>) How do I <SMALL>SELECT</SMALL> only the
+     <A href="#4.1">4.1</A>) How do I <SMALL>SELECT</SMALL> only the
     first few rows of a query?  A random row?<BR>
-     <A href="#4.3">4.3</A>) How do I find out what tables, indexes,
+     <A href="#4.2">4.2</A>) How do I find out what tables, indexes,
     databases, and users are defined?  How do I see the queries used
     by <I>psql</I> to display them?<BR>
-     <A href="#4.4">4.4</A>) How do you remove a column from a
-    table, or change it's data type?<BR>
-     <A href="#4.5">4.5</A>) What is the maximum size for a row, a
+     <A href="#4.3">4.3</A>) How do you change a column's data type?<BR>
+     <A href="#4.4">4.4</A>) What is the maximum size for a row, a
     table, and a database?<BR>
-     <A href="#4.6">4.6</A>) How much database disk space is required
+     <A href="#4.5">4.5</A>) How much database disk space is required
     to store data from a typical text file?<BR>
-     <A href="#4.7">4.7</A>) My queries are slow or don't make use of
-    the indexes. Why?<BR>
-     <A href="#4.8">4.8</A>) How do I see how the query optimizer is
+     <A href="#4.6">4.6</A>) Why are my queries slow?  Why don't they
+    use my indexes?<BR>
+     <A href="#4.7">4.7</A>) How do I see how the query optimizer is
     evaluating my query?<BR>
-     <A href="#4.9">4.9</A>) What is an R-tree index?<BR>
-     <A href="#4.10">4.10</A>) What is the Genetic Query Optimizer?<BR>
-     <A href="#4.11">4.11</A>) How do I perform regular expression
+     <A href="#4.8">4.8</A>) How do I perform regular expression
     searches and case-insensitive regular expression searches? How do I
     use an index for case-insensitive searches?<BR>
-     <A href="#4.12">4.12</A>) In a query, how do I detect if a field
-    is <SMALL>NULL</SMALL>?<BR>
-     <A href="#4.13">4.13</A>) What is the difference between the
+     <A href="#4.9">4.9</A>) In a query, how do I detect if a field
+    is <SMALL>NULL</SMALL>?  How can I sort on whether a field is <SMALL>
+    NULL</SMALL> or not?<BR>
+     <A href="#4.10">4.10</A>) What is the difference between the
     various character types?<BR>
-     <A href="#4.14.0">4.14.0</A>) How do I create a
+     <A href="#4.11.1">4.11.1</A>) How do I create a
     serial/auto-incrementing field?<BR>
-     <A href="#4.14.1">4.14.1</A>) How do I get the value of a
+     <A href="#4.11.2">4.11.2</A>) How do I get the value of a
     <SMALL>SERIAL</SMALL> insert?<BR>
-     <A href="#4.14.2">4.14.2</A>) Doesn't <I>currval()</I>
+     <A href="#4.11.3">4.11.3</A>) Doesn't <I>currval()</I>
     lead to a race condition with other users?<BR>
-     <A href="#4.14.3">4.14.3</A>) Why aren't my sequence numbers
+     <A href="#4.11.4">4.11.4</A>) Why aren't my sequence numbers
     reused on transaction abort? Why are there gaps in the numbering of
     my sequence/SERIAL column?<BR>
-     <A href="#4.15">4.15</A>) What is an <SMALL>OID</SMALL>? What is a
-    <SMALL>TID</SMALL>?<BR>
-     <A href="#4.16">4.16</A>) What is the meaning of some of the terms
-    used in PostgreSQL?<BR>
-     <A href="#4.17">4.17</A>) Why do I get the error <I>"ERROR: Memory
+     <A href="#4.12">4.12</A>) What is an <SMALL>OID</SMALL>? What is a
+    <SMALL>CTID</SMALL>?<BR>
+     <A href="#4.13">4.13</A>) Why do I get the error <I>"ERROR: Memory
     exhausted in AllocSetAlloc()"</I>?<BR>
-     <A href="#4.18">4.18</A>) How do I tell what PostgreSQL version I
+     <A href="#4.14">4.14</A>) How do I tell what PostgreSQL version I
     am running?<BR>
-     <A href="#4.19">4.19</A>) Why does my large-object operations get
-    <I>"invalid large obj descriptor"</I>?<BR>
-     <A href="#4.20">4.20</A>) How do I create a column that will
+     <A href="#4.15">4.15</A>) How do I create a column that will
     default to the current time?<BR>
-     <A href="#4.21">4.21</A>) Why are my subqueries using
-    <CODE><SMALL>IN</SMALL></CODE> so slow?<BR>
-     <A href="#4.22">4.22</A>) How do I perform an outer join?<BR>
-     <A href="#4.23">4.23</A>) How do I perform queries using multiple
+     <A href="#4.16">4.16</A>) How do I perform an outer join?<BR>
+     <A href="#4.17">4.17</A>) How do I perform queries using multiple
     databases?<BR>
-     <A href="#4.24">4.24</A>) How do I return multiple rows or columns
+     <A href="#4.18">4.18</A>) How do I return multiple rows or columns
     from a function?<BR>
-     <A href="#4.25">4.25</A>) Why can't I reliably create/drop
-    temporary tables in PL/PgSQL functions?<BR>
-     <A href="#4.26">4.26</A>) What encryption options are available?<BR>
-     
+     <A href="#4.19">4.19</A>) Why do I get "relation with OID #####
+    does not exist" errors when accessing temporary tables in PL/PgSQL
+    functions?<BR>
+     <A href="#4.20">4.20</A>) What replication solutions are available?<BR>
+     <A href="#4.21">4.21</A>) Why are my table and column names not
+    recognized in my query?<BR>
+
 
-    <H2 align="center">Extending PostgreSQL</H2>
-    <A href="#5.1">5.1</A>) I wrote a user-defined function. When I run
-    it in <I>psql</I>, why does it dump core?<BR>
-     <A href="#5.2">5.2</A>) How can I contribute some nifty new types
-    and functions to PostgreSQL?<BR>
-     <A href="#5.3">5.3</A>) How do I write a C function to return a
-    tuple?<BR>
-     <A href="#5.4">5.4</A>) I have changed a source file. Why does the
-    recompile not see the change?<BR>
-     
     <HR>
 
     <H2 align="center">General Questions</H2>
 
-    <H4><A name="1.1">1.1</A>) What is PostgreSQL? How is it pronounced?</H4>
-
-    <P>PostgreSQL is pronounced <I>Post-Gres-Q-L</I>.</P>
-
-    <P>PostgreSQL is an enhancement of the POSTGRES database management
-    system (and is still sometimes reffered to as simply "Postgres"), 
-    a next-generation <SMALL>DBMS</SMALL> research prototype.
-    While PostgreSQL retains the powerful data model and rich data
-    types of POSTGRES, it replaces the PostQuel query language with an
-    extended subset of <SMALL>SQL</SMALL>. PostgreSQL is free and the
-    complete source is available.</P>
-
-    <P>PostgreSQL development is performed by a team of
-    developers who all subscribe to the PostgreSQL development mailing
-    list. The current coordinator is Marc G. Fournier (<A href=
-    "mailto:scrappy@PostgreSQL.org">scrappy@PostgreSQL.org</A>). (See
-    section <a href="#1.6">1.6</a> on how to join). This team is now
-    responsible for all development of PostgreSQL.  It is a community
-    project and is not controlled by any company.  To get involved, see
-    the developer's FAQ at <A href=
+    <H3><A name="1.1">1.1</A>) What is PostgreSQL? How is it pronounced?</H3>
+
+    <P>PostgreSQL is pronounced <I>Post-Gres-Q-L</I>, and is also sometimes 
+    referred to as just <I>Postgres</I>. An audio file is available in 
+    <a href="http://www.postgresql.org/files/postgresql.mp3">MP3 format</a> for 
+    those would like to hear the pronunciation.</P>
+
+    <P>PostgreSQL is an object-relational database system that has the
+    features of traditional commercial database systems with
+    enhancements to be found in next-generation <SMALL>DBMS</SMALL>
+    systems. PostgreSQL is free and the complete source code is
+    available.</P>
+
+    <P>PostgreSQL development is performed by a team of mostly volunteer
+    developers spread throughout the world and communicating via the
+    Internet. It is a community project and is not controlled by any
+    company. To get involved, see the developer's FAQ at <A href=
     "http://www.postgresql.org/files/documentation/faqs/FAQ_DEV.html">
     http://www.postgresql.org/files/documentation/faqs/FAQ_DEV.html</A>
     </P>
 
-    <P>The authors of PostgreSQL 1.01 were Andrew Yu and Jolly Chen.
-    Many others have contributed to the porting, testing, debugging,
-    and enhancement of the code. The original Postgres code, from which
-    PostgreSQL is derived, was the effort of many graduate students,
-    undergraduate students, and staff programmers working under the
-    direction of Professor Michael Stonebraker at the University of
-    California, Berkeley.</P>
-
-    <P>The original name of the software at Berkeley was Postgres. When
-    <SMALL>SQL</SMALL> functionality was added in 1995, its name was
-    changed to Postgres95. The name was changed at the end of 1996 to
-    PostgreSQL.</P>
+    <H3><A name="1.2">1.2</A>) What is the copyright of
+    PostgreSQL?</H3>
 
-    <H4><A name="1.2">1.2</A>) What is the copyright on
-    PostgreSQL?</H4>
+    <P>PostgreSQL is distributed under the classic BSD license. It has
+    no restrictions on how the source code can be used. We like it and
+    have no intention of changing it.</P>
 
-    <P>PostgreSQL is subject to the following COPYRIGHT:</P>
+    <P>This is the BSD license we use:</P>
 
     <P>PostgreSQL Data Base Management System</P>
 
     <P>Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
-    Portions Copyright (c) 1994-6 Regents of the University of California</P>
+    Portions Copyright (c) 1994-1996 Regents of the University of California</P>
 
     <P>Permission to use, copy, modify, and distribute this software
     and its documentation for any purpose, without fee, and without a
     UNIVERSITY OF CALIFORNIA HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE,
     SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.</P>
 
-    <P>The above is the BSD license, the classic open-source license.
-    It has no restrictions on how the source code may be used. We like
-    it and have no intention of changing it.</P>
-
-    <H4><A name="1.3">1.3</A>) What Unix platforms does PostgreSQL run
-    on?</H4>
+    <H3><A name="1.3">1.3</A>) What platforms does PostgreSQL support?</H3>
 
     <P>In general, any modern Unix-compatible platform should be able to
     run PostgreSQL. The platforms that had received explicit testing at
     the time of release are listed in the installation
     instructions.</P>
 
-    <H4><A name="1.4">1.4</A>) What non-Unix ports are available?</H4>
-
-    <P>Starting with version 8.0, PostgreSQL now runs natively on
-    Microsoft Windows NT-based operating systems like Win2000, WinXP,
-    and Win2003.  A prepackaged installer is available at <a href=
-    "http://pgfoundry.org/projects/pginstaller">
+    <P>PostgreSQL also runs natively on Microsoft Windows NT-based operating
+    systems like Win2000, WinXP, and Win2003.  A prepackaged installer is
+    available at <a href= "http://pgfoundry.org/projects/pginstaller">
     http://pgfoundry.org/projects/pginstaller</a>.  MSDOS-based versions
-    of Windows (Win95, Win98, WinMe) can run PostgreSQL using Cygwin.
+    of Windows (Win95, Win98, WinMe) can run PostgreSQL using Cygwin.</P>
 
     <p>There is also a Novell Netware 6 port at
     <a href="http://forge.novell.com">http://forge.novell.com</a>,
     and an OS/2 (eComStation) version at <a href=
-    "http://hobbes.nmsu.edu/cgi-bin/h-search?sh=1&button=Search&key=postgreSQL&stype=all&sort=type&dir=%2F">
-    http://hobbes.nmsu.edu/cgi-bin/h-search?sh=1&button=Search&key=postgreSQL&stype=all&sort=type&dir=%2F</a>.</p>
-
-    <H4><A name="1.5">1.5</A>) Where can I get PostgreSQL?</H4>
+    "http://hobbes.nmsu.edu/cgi-bin/h-search?sh=1&amp;button=Search&amp;key=postgreSQL&amp;stype=all&amp;sort=type&amp;dir=%2F">
+    http://hobbes.nmsu.edu/cgi-bin/h-search?sh=1&amp;button=Search&amp;key=postgreSQL&amp;stype=all&amp;sort=type&amp;dir=%2F</a>.</p>
 
-    <P>The primary anonymous ftp site for PostgreSQL is <A href=
-    "ftp://ftp.PostgreSQL.org/pub">ftp://ftp.PostgreSQL.org/pub</A>.
-    For mirror sites, see our main web site.</P>
+    <H3><A name="1.4">1.4</A>) Where can I get PostgreSQL?</H3>
 
-    <H4><A name="1.6">1.6</A>) Where can I get support?</H4>
+    <P>Via web browser, use <a href="http://www.postgresql.org/ftp/">
+    http://www.postgresql.org/ftp/</a>, and via ftp, use
+    <A href="ftp://ftp.PostgreSQL.org/pub/">
+    ftp://ftp.PostgreSQL.org/pub/</A>.</P>
 
-    <P>The main mailing list is: <A href=
-    "mailto:pgsql-general@PostgreSQL.org">pgsql-general@PostgreSQL.org</A>.
-    It is available for discussion of matters pertaining to PostgreSQL.
-    To subscribe, send mail with the following lines in the body (not
-    the subject line):</P>
-<PRE>
-    subscribe
-    end
-</PRE>
-
-    <P>to <A href=
-    "mailto:pgsql-general-request@PostgreSQL.org">pgsql-general-request@PostgreSQL.org</A>.</P>
-
-    <P>There is also a digest list available. To subscribe to this
-    list, send email to: <A href=
-    "mailto:pgsql-general-digest-request@PostgreSQL.org">pgsql-general-digest-request@PostgreSQL.org</A>
-    with a body of:</P>
-<PRE>
-    subscribe
-    end
-</PRE>
+    <H3><A name="1.5">1.5</A>) Where can I get support?</H3>
 
-    Digests are sent out to members of this list whenever the main list
-    has received around 30k of messages. 
-
-    <P>The bugs mailing list is available. To subscribe to this list,
-    send email to <A href=
-    "mailto:pgsql-bugs-request@PostgreSQL.org">pgsql-bugs-request@PostgreSQL.org</A>
-    with a body of:</P>
-<PRE>
-    subscribe
-    end
-</PRE>
-
-    There is also a developers discussion mailing list available. To
-    subscribe to this list, send email to <A href=
-    "mailto:pgsql-hackers-request@PostgreSQL.org">pgsql-hackers-request@PostgreSQL.org</A>
-    with a body of: 
-<PRE>
-    subscribe
-    end
-</PRE>
-
-    <P>Additional mailing lists and information about PostgreSQL can be
-    found via the PostgreSQL WWW home page at:</P>
-
-    <BLOCKQUOTE>
-      <A href="http://www.PostgreSQL.org">http://www.PostgreSQL.org</A>
-    </BLOCKQUOTE>
+    <P>The PostgreSQL community provides assistance to many of its users
+    via email.  The main web site to subscribe to the email lists is
+    <a href="http://www.postgresql.org/community/lists/">
+    http://www.postgresql.org/community/lists/</a>. The <I>general</I>
+    or <I>bugs</I> lists are a good place to start.</P>
 
     <P>The major IRC channel is <I>#postgresql</I> on Freenode
     (<I>irc.freenode.net</I>).  To connect you can use the Unix
-    command <CODE>irc -c '#postgresql' "$USER" irc.freenode.net</CODE>
-    or use any of the other popular IRC clients.  A Spanish one also exists
+    program <CODE>irc -c '#postgresql' "$USER" irc.freenode.net</CODE>
+    or use any other IRC clients.  A Spanish one also exists
     on the same network, (<I>#postgresql-es</I>), and a French one,
-    (<I>#postgresqlfr</I>).  There is also a PostgreSQL channel on EFNet.
+    (<I>#postgresqlfr</I>).  There is also a PostgreSQL channel on EFNet.</P>
 
     <P>A list of commercial support companies is available at <A href=
-    "http://techdocs.postgresql.org/companies.php">http://techdocs.postgresql.org/companies.php</A>.</P>
+    "http://techdocs.postgresql.org/companies.php">
+    http://techdocs.postgresql.org/companies.php</A>.</P>
 
-    <H4><A name="1.7">1.7</A>) What is the latest release?</H4>
+    <H3><A name="1.6">1.6</A>) How do I submit a bug report?</H3>
 
-    <P>The latest release of PostgreSQL is version 8.0.0.</P>
+    <P>Visit the PostgreSQL bug form at <A href=
+    "http://www.postgresql.org/support/submitbug">
+    http://www.postgresql.org/support/submitbug</A>.</P>
 
-    <P>We plan to have major releases every six to eight months.</P>
+    <P>Also check out our ftp site <A href=
+    "ftp://ftp.PostgreSQL.org/pub/">ftp://ftp.PostgreSQL.org/pub/</A> to
+    see if there is a more recent PostgreSQL version.</P>
+
+    <H3><A name="1.7">1.7</A>) What is the latest release?</H3>
+
+    <P>The latest release of PostgreSQL is version 8.0.3.</P>
 
-    <H4><A name="1.8">1.8</A>) What documentation is available?</H4>
+    <P>We plan to have a major release every year, with minor releases
+    every few months.</P>
 
-    <P>Several manuals, manual pages, and some small test examples are
-    included in the distribution. See the <I>/doc</I> directory. You
-    can also browse the manuals online at <A href=
-    "http://www.PostgreSQL.org/docs">http://www.PostgreSQL.org/docs</A>.</P>
+    <H3><A name="1.8">1.8</A>) What documentation is available?</H3>
+
+    <P>PostgreSQL includes extensive documentation, including a large
+    manual, manual pages, and some test examples. See the <I>/doc</I>
+    directory. You can also browse the manuals online at <A href=
+    "http://www.PostgreSQL.org/docs">http://www.PostgreSQL.org/docs</A>.
+    </P>
 
     <P>There are two PostgreSQL books available online at <A href=
-    "http://www.PostgreSQL.org/docs/awbook.html">http://www.PostgreSQL.org/docs/awbook.html</A>
+    "http://www.postgresql.org/docs/books/awbook.html">http://www.postgresql.org/docs/books/awbook.html</A>
     and <A href=
     "http://www.commandprompt.com/ppbook/">http://www.commandprompt.com/ppbook/</A>.
-    There is a list of PostgreSQL books available for purchase at <A
-    href=
+    There are a number of PostgreSQL books available for purchase.  One
+    of the most popular ones is by Korry Douglas.  A list of book reviews
+    can be found at <A href=
     "http://techdocs.postgresql.org/techdocs/bookreviews.php">http://techdocs.PostgreSQL.org/techdocs/bookreviews.php</A>.
     There is also a collection of PostgreSQL technical articles at <A
     href=
 
     <P>Our web site contains even more documentation.</P>
 
-    <H4><A name="1.9">1.9</A>) How do I find out about known bugs or
-    missing features?</H4>
+    <H3><A name="1.9">1.9</A>) How do I find out about known bugs or
+    missing features?</H3>
 
     <P>PostgreSQL supports an extended subset of <SMALL>SQL</SMALL>-92.
-    See our <A href="http://developer.PostgreSQL.org/todo.php">TODO</A>
+    See our <A href="http://www.postgresql.org/docs/faqs.TODO.html">TODO</A>
     list for known bugs, missing features, and future plans.</P>
 
-    <H4><A name="1.10">1.10</A>) How can I learn
-    <SMALL>SQL</SMALL>?</H4>
+    <H3><A name="1.10">1.10</A>) How can I learn
+    <SMALL>SQL</SMALL>?</H3>
 
-    <P>The PostgreSQL book at <A href=
-    "http://www.PostgreSQL.org/docs/awbook.html">http://www.PostgreSQL.org/docs/awbook.html</A>
-    teaches <SMALL>SQL</SMALL>. There is another PostgreSQL book at <A
-    href=
-    "http://www.commandprompt.com/ppbook/">http://www.commandprompt.com/ppbook.</A>
-    There is a nice tutorial at <A href=
+    <P>First, consider the PostgreSQL-specific books mentioned above.
+    Another one is "Teach Yourself SQL in 21 Days, Second Edition"
+    at <A href=
+    "http://members.tripod.com/er4ebus/sql/index.htm">http://members.tripod.com/er4ebus/sql/index.htm</A>.
+    Many of our users like <I>The Practical SQL Handbook</I>,
+    Bowman, Judith S., et al., Addison-Wesley. Others like <I>The
+    Complete Reference SQL</I>, Groff et al., McGraw-Hill.</P>
+
+    <P>There is also a nice tutorial at <A href=
     "http://www.intermedia.net/support/sql/sqltut.shtm">http://www.intermedia.net/support/sql/sqltut.shtm,</A>
     at <A href=
     "http://ourworld.compuserve.com/homepages/graeme_birchall/HTM_COOK.HTM">
     and at <A href=
     "http://sqlcourse.com/">http://sqlcourse.com.</A></P>
 
-    <P>Another one is "Teach Yourself SQL in 21 Days, Second Edition"
-    at <A href=
-    "http://members.tripod.com/er4ebus/sql/index.htm">http://members.tripod.com/er4ebus/sql/index.htm</A></P>
-
-    <P>Many of our users like <I>The Practical SQL Handbook</I>,
-    Bowman, Judith S., et al., Addison-Wesley. Others like <I>The
-    Complete Reference SQL</I>, Groff et al., McGraw-Hill.</P>
-
-    <H4><A name="1.11">1.11</A>) Is PostgreSQL Y2K compliant?</H4>
-
-    <P>Yes, we easily handle dates past the year 2000 AD, and before
-    2000 BC.</P>
-
-    <H4><A name="1.12">1.12</A>) How do I join the development
-    team?</H4>
-
-    <P>First, download the latest source and read the PostgreSQL
-    Developers documentation on our web site, or in the distribution.
-    Second, subscribe to the <I>pgsql-hackers</I> and
-    <I>pgsql-patches</I> mailing lists. Third, submit high quality
-    patches to pgsql-patches.</P>
-
-    <P>There are about a dozen people who have commit privileges to the
-    PostgreSQL <SMALL>CVS</SMALL> archive. They each have submitted so
-    many high-quality patches that it was impossible for the existing
-    committers to keep up, and we had confidence that patches they
-    committed were of high quality.</P>
-
-    <H4><A name="1.13">1.13</A>) How do I submit a bug report?</H4>
+    <H3><A name="1.11">1.11</A>) How do I join the development
+    team?</H3>
 
-    <P>Visit the PostgreSQL bug form at <A href=
-    "http://www.postgresql.org/support/submitbug">
-    http://www.postgresql.org/support/submitbug</A>.</P>
-
-    <P>Also check out our ftp site <A href=
-    "ftp://ftp.PostgreSQL.org/pub">ftp://ftp.PostgreSQL.org/pub</A> to
-    see if there is a more recent PostgreSQL version or patches.</P>
+    <P>See the <a href="http://www.postgresql.org/docs/faqs.FAQ_DEV.html">
+    Developer's FAQ</A>.</P>
 
-    <H4><A name="1.14">1.14</A>) How does PostgreSQL compare to other
-    <SMALL>DBMS</SMALL>s?</H4>
+    <H3><A name="1.12">1.12</A>) How does PostgreSQL compare to other
+    <SMALL>DBMS</SMALL>s?</H3>
 
     <P>There are several ways of measuring software: features,
     performance, reliability, support, and price.</P>
 
       <DD>PostgreSQL's performance is comparable to other commercial and
       open source databases. It is faster for some things, slower for
-      others. In comparison to MySQL or leaner database systems, we are
-      faster for multiple users, complex queries, and a read/write query
-      load.  MySQL is faster for simple SELECT queries done by a few users.
-      Of course, MySQL does not have most of the features mentioned in the
-      <I>Features</I> section above. We are built for reliability and
-      features, and we continue to improve performance in every
-      release. <BR>
+      others.  Our performance is usually +/-10% compared to other databases.
       <BR>
       </DD>
 
       community, manuals, and the source code often make PostgreSQL
       support superior to other <SMALL>DBMS</SMALL>s. There is
       commercial per-incident support available for those who need it.
-      (See <A href="#1.6">FAQ section 1.6</A>.)<BR>
+      (See <A href="#1.5">FAQ section 1.5</A>.)<BR>
       <BR>
       </DD>
 
       </DD>
     </DL>
 
-    <H4><A name="1.15">1.15</A>) How can I financially assist
-    PostgreSQL?</H4>
+    <H3><A name="1.13">1.13</A>) Who controls PostgreSQL?<BR>
 
-    <P>PostgreSQL has had a first-class infrastructure since we started
-    in 1996. This is all thanks to Marc Fournier, who has created
-    and managed this infrastructure over the years.</P>
-
-    <P>Quality infrastructure is very important to an open-source
-    project. It prevents disruptions that can greatly delay forward
-    movement of the project.</P>
-
-    <P>Of course, this infrastructure is not cheap. There are a variety
-    of monthly and one-time expenses that are required to keep it
-    going. If you or your company has money it can donate to help fund
-    this effort, please go to <A href="http://store.pgsql.com/shopping/">http://store.pgsql.com/shopping/</A>
-    and make a donation.</P>
-
-    <P>Although the web page mentions PostgreSQL, Inc, the
-    "contributions" item is solely to support the PostgreSQL project
-    and does not fund any specific company. If you prefer, you can also
-    send a check to the contact address.</P>
-
-    <P>Also, if you have a success story about PostgreSQL, please email
-    it to our advocacy list at <a href="mailto:pgsql-advocacy@postgresql.org">
-    pgsql-advocacy@postgresql.org</a>.</P>
+    <P>If you are looking for a PostgreSQL gatekeeper, central committee,
+    or controlling company, give up --- there isn't one.  We do have a
+    core committee and CVS committers, but these groups are more for
+    administrative purposes than control.  The project is directed by
+    the community of developers and users, which anyone can join.  All
+    you need to do is subscribe to the mailing lists and participate in the
+    discussions.   (See the <a href="http://www.postgresql.org/docs/faqs.FAQ_DEV.html">
+    Developer's FAQ</A> for information on how to get involved in PostgreSQL
+    development.)</P>
 
     <HR>
 
     <H2 align="center">User Client Questions</H2>
 
-    <H4><A name="2.1">2.1</A>) Are there <SMALL>ODBC</SMALL> drivers
-    for PostgreSQL?</H4>
-
-    <P>There are two <SMALL>ODBC</SMALL> drivers available, PsqlODBC
-    and OpenLink <SMALL>ODBC</SMALL>.</P>
-
-    <P>You can download PsqlODBC from <A href=
-    "http://gborg.postgresql.org/project/psqlodbc/projdisplay.php">
-    http://gborg.postgresql.org/project/psqlodbc/projdisplay.php</A>.</P>
+    <H3><A name="2.1">2.1</A>) What interfaces are available for
+    PostgreSQL?</H3>
 
-    <P>OpenLink <SMALL>ODBC</SMALL> can be gotten from <A href=
-    "http://www.openlinksw.com/">http://www.openlinksw.com</A>. It
-    works with their standard <SMALL>ODBC</SMALL> client software so
-    you'll have PostgreSQL <SMALL>ODBC</SMALL> available on every
-    client platform they support (Win, Mac, Unix, VMS).</P>
+    <P>The PostgreSQL install includes only the <SMALL>C</SMALL> and embedded
+    <SMALL>C</SMALL> interfaces.  All other interfaces are independent projects
+    that are downloaded separately;  being separate allows them to have their
+    own release schedule and development teams.</P>
 
-    <P>They will probably be selling this product to people who need
-    commercial-quality support, but a freeware version will always be
-    available. Please send questions to <A href=
-    "mailto:postgres95@openlink.co.uk">postgres95@openlink.co.uk</A>.</P>
+    <P>Some programming languages like <SMALL>PHP</SMALL> include an
+    interface to PostgreSQL. Interfaces for languages like Perl,
+    <SMALL>TCL</SMALL>, Python, and many others are available at
+    <a href="http://gborg.postgresql.org">http://gborg.postgresql.org</A>
+    in the <I>Drivers/Interfaces</I> section and via Internet search.
+    </P>
 
-    <H4><A name="2.2">2.2</A>) What tools are available for using
-    PostgreSQL with Web pages?</H4>
+    <H3><A name="2.2">2.2</A>) What tools are available for using
+    PostgreSQL with Web pages?</H3>
 
     <P>A nice introduction to Database-backed Web pages can be seen at:
     <A href="http://www.webreview.com">http://www.webreview.com</A></P>
 
-    <P>For Web integration, PHP is an excellent interface. It is at <A
-    href="http://www.php.net">http://www.php.net</A>.</P>
+    <P>For Web integration, PHP (<A
+    href="http://www.php.net">http://www.php.net</A>) is an excellent
+    interface.</P>
 
-    <P>For complex cases, many use the Perl interface and CGI.pm or mod_perl.</P>
+    <P>For complex cases, many use the Perl and DBD::Pg with CGI.pm or
+    mod_perl.</P>
 
-    <H4><A name="2.3">2.3</A>) Does PostgreSQL have a graphical user
-    interface?</H4>
+    <H3><A name="2.3">2.3</A>) Does PostgreSQL have a graphical user
+    interface?</H3>
 
-    <P>Yes, there are several graphical interfaces to PostgreSQL available.
-    These include PgAccess <a href="http://www.pgaccess.org">
-    http://www.pgaccess.org</a>), pgAdmin III (<a
-    href="http://www.pgadmin.org">http://www.pgadmin.org</a>, RHDB Admin (<a
-    href="http://sources.redhat.com/rhdb/">http://sources.redhat.com/rhdb/
-    </a>), TORA (<a href="http://www.globecom.net/tora/">http://www.globecom.net/tora/</a>,
-    partly commercial), and Rekall
-    (<a href="http://www.thekompany.com/products/rekall/">
-    http://www.thekompany.com/products/rekall/</a>, proprietary). There is 
-    also PhpPgAdmin (<a href="http://phppgadmin.sourceforge.net/">
-    http://phppgadmin.sourceforge.net/ </a>), a web-based interface to 
-    PostgreSQL.</P>
+    <P>Yes, see <a href="http://techdocs.postgresql.org/guides/GUITools">
+    http://techdocs.postgresql.org/guides/GUITools</a> for a
+    detailed list.</P>
 
-    <P>See <a href="http://techdocs.postgresql.org/guides/GUITools">http://techdocs.postgresql.org/guides/GUITools</a> for a more detailed list.</P>
+    <HR>
 
-    <H4><A name="2.4">2.4</A>) What languages are able to communicate with 
-    PostgreSQL?</H4>
 
-    <P>Most popular programming languages contain an interface to
-    PostgreSQL. Check your programming language's list of extension
-    modules.</P>
+    <H2 align="center">Administrative Questions</H2>
 
-    <P>The following interfaces are included in the PostgreSQL
-    distribution:</P>
+    <H3><A name="3.1">3.1</A>) How do I install PostgreSQL somewhere
+    other than <I>/usr/local/pgsql</I>?</H3>
 
-    <UL>
-      <LI>C (libpq)</LI>
+    <P>Specify the <I>--prefix</I> option when running
+    <I>configure</I>.</P>
 
-      <LI>Embedded C (ecpg)</LI>
+    <H3><A name="3.2">3.2</A>) How do I control connections from other
+    hosts?</H3>
 
-      <LI>Java (jdbc)</LI>
+    <P>By default, PostgreSQL only allows connections from the local
+    machine using Unix domain sockets or TCP/IP connections. Other
+    machines will not be able to connect unless you modify
+    <I>listen_addresses</I> in the <I>postgresql.conf</I> file, enable
+    host-based authentication by modifying the
+    <I>$PGDATA/pg_hba.conf</I> file, and restart the server.</P>
 
-      <LI>Python (PyGreSQL)</LI>
+    <H3><A name="3.3">3.3</A>) How do I tune the database engine for
+    better performance?</H3>
 
-      <LI>TCL (libpgtcl)</LI>
+    <P>There are three major areas for potential performance
+    improvement:</P>
+    
+    <DL>
+    <DT><B>Query Changes</B></DT>
+
+    <DD>This involves modifying queries to obtain better
+    performance:
+    <ul>
+    <li>Creation of indexes, including expression and partial
+    indexes</li>
+    <li>Use of COPY instead of multiple <SMALL>INSERT</SMALL>s</li>
+    <li>Grouping of multiple statements into a single transaction to
+    reduce commit overhead</li>
+    <li>Use of <SMALL>CLUSTER</SMALL> when retrieving many rows from an
+    index</li>
+    <li>Use of <SMALL>LIMIT</SMALL> for returning a subset of a query's
+    output</li>
+    <li>Use of Prepared queries</li>
+    <li>Use of <SMALL>ANALYZE</SMALL> to maintain accurate optimizer
+    statistics</li>
+    <li>Regular use of <SMALL>VACUUM</SMALL> or <I>pg_autovacuum</I></li>
+    <li>Dropping of indexes during large data changes</li>
+    </ul><BR>
+    <BR>
+    </DD>
 
-    </UL>
-    <P>Additional interfaces are available at 
-    <a href="http://gborg.postgresql.org">http://gborg.postgresql.org</A>
-    in the <I>Drivers/Interfaces</I> section.
-    </P>
-    <HR>
+    <DT><B>Server Configuration</B></DT>
 
-    <H2 align="center">Administrative Questions</H2>
+    <DD>A number of <I>postgresql.conf</I> settings affect performance.
+    For more details, see <a href=
+    "http://www.postgresql.org/docs/current/static/runtime.html">
+    Administration Guide/Server Run-time Environment/Run-time
+    Configuration</a> for a full listing, and for commentary see <a
+    href="http://www.varlena.com/varlena/GeneralBits/Tidbits/annotated_conf_e.html">
+    http://www.varlena.com/varlena/GeneralBits/Tidbits/annotated_conf_e.html</a>
+    and <a href="http://www.varlena.com/varlena/GeneralBits/Tidbits/perf.html">
+    http://www.varlena.com/varlena/GeneralBits/Tidbits/perf.html</a>.
+    <BR>
+    <BR>
+    </DD>
 
-    <H4><A name="3.1">3.1</A>) How do I install PostgreSQL somewhere
-    other than <I>/usr/local/pgsql</I>?</H4>
+    <DT><B>Hardware Selection</B></DT>
 
-    <P>Specify the <I>--prefix</I> option when running
-    <I>configure</I>.</P>
+    <DD>The effect of hardware on performance is detailed in <a
+    href="http://candle.pha.pa.us/main/writings/pgsql/hw_performance/index.html">
+    http://candle.pha.pa.us/main/writings/pgsql/hw_performance/index.html</a> and
+    <a href="http://www.powerpostgresql.com/PerfList/">
+    http://www.powerpostgresql.com/PerfList/</a>.
+    <BR>
+    <BR>
+    </DD>
+    </DL>
 
-    <H4><A name="3.2">3.2</A>) When I start <I>postmaster</I>, I get a
-    <I>Bad System Call</I> or core dumped message. Why?</H4>
-
-    <P>It could be a variety of problems, but first check to see that
-    you have System V extensions installed in your kernel. PostgreSQL
-    requires kernel support for shared memory and semaphores.</P>
-
-    <H4><A name="3.3">3.3</A>) When I try to start <I>postmaster</I>, I
-    get <I>IpcMemoryCreate</I> errors. Why?</H4>
-
-    <P>You either do not have shared memory configured properly in your
-    kernel or you need to enlarge the shared memory available in the
-    kernel. The exact amount you need depends on your architecture and
-    how many buffers and backend processes you configure for
-    <I>postmaster</I>. For most systems, with default numbers of
-    buffers and processes, you need a minimum of ~1 MB. See the <A
-    href="http://www.postgresql.org/docs/current/static/kernel-resources.html">PostgreSQL
-    Administrator's Guide/Server Run-time Environment/Managing Kernel Resources</A>
-    section for more detailed information about shared memory and semaphores.</P>
-
-    <H4><A name="3.4">3.4</A>) When I try to start <I>postmaster</I>, I
-    get <I>IpcSemaphoreCreate</I> errors. Why?</H4>
-
-    <P>If the error message is <I>IpcSemaphoreCreate: semget failed (No
-    space left on device)</I> then your kernel is not configured with
-    enough semaphores. Postgres needs one semaphore per potential
-    backend process. A temporary solution is to start <I>postmaster</I>
-    with a smaller limit on the number of backend processes. Use
-    <I>-N</I> with a parameter less than the default of 32. A more
-    permanent solution is to increase your kernel's
-    <SMALL>SEMMNS</SMALL> and <SMALL>SEMMNI</SMALL> parameters.</P>
-
-    <P>Inoperative semaphores can also cause crashes during heavy
-    database access.</P>
-
-    <P>If the error message is something else, you might not have
-    semaphore support configured in your kernel at all. See the
-    PostgreSQL Administrator's Guide for more detailed information
-    about shared memory and semaphores.</P>
-
-    <H4><A name="3.5">3.5</A>) How do I control connections from other
-    hosts?</H4>
+    <H3><A name="3.4">3.4</A>) What debugging features are
+    available?</H3>
 
-    <P>By default, PostgreSQL only allows connections from the local
-    machine using Unix domain sockets or TCP/IP connections. Other
-    machines will not be able to connect unless you modify
-    listen_addresses in the postgresql.conf <B>and</B> enable
-    host-based authentication by modifying the file
-    <I>$PGDATA/pg_hba.conf</I> accordingly.</P>
-
-    <H4><A name="3.6">3.6</A>) How do I tune the database engine for
-    better performance?</H4>
-
-    <P>Certainly, indexes can speed up queries. The
-    <SMALL>EXPLAIN ANALYZE</SMALL> command allows you to see how
-    PostgreSQL is interpreting your query, and which indexes are
-    being used.</P>
-
-    <P>If you are doing many <SMALL>INSERTs</SMALL>, consider doing
-    them in a large batch using the <SMALL>COPY</SMALL> command. This
-    is much faster than individual <SMALL>INSERTS</SMALL>. Second,
-    statements not in a <SMALL>BEGIN WORK/COMMIT</SMALL> transaction
-    block are considered to be in their own transaction. Consider
-    performing several statements in a single transaction block. This
-    reduces the transaction overhead. Also, consider dropping and
-    recreating indexes when making large data changes.</P>
-
-    <P>There are several tuning options in the <a href=
-    "http://www.postgresql.org/docs/current/static/runtime.html">
-    Administration Guide/Server Run-time Environment/Run-time Configuration</a>.
-    You can disable <I>fsync()</I> by using <i>fsync</I> option. This will
-    prevent <I>fsync()</I>s from flushing to disk after every
-    transaction.</P>
-
-    <P>You can use the <I>shared_buffers</I> option to
-    increase the number of shared memory buffers used by the backend
-    processes. If you make this parameter too high, the
-    <I>postmaster</I> may not start because you have exceeded your
-    kernel's limit on shared memory space. Each buffer is 8K and the
-    default is 1000 buffers.</P>
-
-    <P>You can also use the <I>sort_mem</I> (from PostgreSQL 8.0: <I>work_mem</I>)
-    options to increase the maximum amount of memory used by the backend
-    processes for each temporary sort. The default is 1024 (i.e. 1MB).</P>
-
-    <P>You can also use the <SMALL>CLUSTER</SMALL> command to group
-    data in tables to match an index. See the <SMALL>CLUSTER</SMALL>
-    manual page for more details.</P>
-
-    <H4><A name="3.7">3.7</A>) What debugging features are
-    available?</H4>
-
-    <P>PostgreSQL has several features that report status information
-    that can be valuable for debugging purposes.</P>
-
-    <P>First, by running <I>configure</I> with the --enable-cassert
-    option, many <I>assert()</I>s monitor the progress of the backend
-    and halt the program when something unexpected occurs.</P>
-
-    <P>Both <I>postmaster</I> and <I>postgres</I> have several debug
-    options available. First, whenever you start <I>postmaster</I>,
-    make sure you send the standard output and error to a log file,
-    like:</P>
-<PRE>
-    cd /usr/local/pgsql
-    ./bin/postmaster &gt;server.log 2&gt;&amp;1 &amp;
-</PRE>
+    <P>There are many <CODE>log_*</CODE> server configuration variables
+    that enable printing of query and process statistics which can be
+    very useful for debugging and performance measurements.</P>
 
-    <P>This will put a server.log file in the top-level PostgreSQL
-    directory. This file contains useful information about problems or
-    errors encountered by the server. <I>Postmaster</I> has a <I>-d</I>
-    option that allows even more detailed information to be reported.
-    The <I>-d</I> option takes a number that specifies the debug level.
-    Be warned that high debug level values generate large log
-    files.</P>
-
-    <P>If <I>postmaster</I> is not running, you can actually run the
-    <I>postgres</I> backend from the command line, and type your
-    <SMALL>SQL</SMALL> statement directly. This is recommended
-    <B>only</B> for debugging purposes. Note that a newline terminates
-    the query, not a semicolon. If you have compiled with debugging
-    symbols, you can use a debugger to see what is happening. Because
-    the backend was not started from <I>postmaster</I>, it is not
-    running in an identical environment and locking/backend interaction
-    problems may not be duplicated.</P>
-
-    <P>If <I>postmaster</I> is running, start <I>psql</I> in one
-    window, then find the <SMALL>PID</SMALL> of the <I>postgres</I>
-    process used by <I>psql</I> using <pre>SELECT pg_backend_pid()</pre>.
-    Use a debugger to attach to the <I>postgres</I> <SMALL>PID</SMALL>.
-    You can set breakpoints in the debugger and issue queries from
-    <I>psql</I>. If you are debugging <I>postgres</I> startup, you can
-    set PGOPTIONS="-W n", then start <I>psql</I>. This will cause startup
-    to delay for <I>n</I> seconds so you can attach to the process with
-    the debugger, set any breakpoints, and continue through the startup
-    sequence.</P>
-
-    <P>There are several <pre>log_*</pre> server configuration variables
-    that enable printing of process statistics which can be very useful
-    for debugging and performance measurements.</P>
-
-    <P>You can also compile with profiling to see what functions are
-    taking execution time. The backend profile files will be deposited
-    in the <I>pgsql/data/base/dbname</I> directory. The client profile
-    file will be put in the client's current directory. Linux requires
-    a compile with <I>-DLINUX_PROFILE</I> for proper profiling.</P>
-
-    <H4><A name="3.8">3.8</A>) Why do I get <I>"Sorry, too many
-    clients"</I> when trying to connect?</H4>
-
-    <P>You need to increase <I>postmaster</I>'s limit on how many
-    concurrent backend processes it can start.</P>
-
-    <P>The default limit is 32 processes. You can increase it by
-    restarting <I>postmaster</I> with a suitable <I>-N</I> value or
-    modifying <I>postgresql.conf</I>.</P>
-
-    <P>Note that if you make <I>-N</I> larger than 32, you must also
-    increase <I>-B</I> beyond its default of 64; <I>-B</I> must be at
-    least twice <I>-N</I>, and probably should be more than that for
-    best performance. For large numbers of backend processes, you are
-    also likely to find that you need to increase various Unix kernel
-    configuration parameters. Things to check include the maximum size
-    of shared memory blocks, <SMALL>SHMMAX;</SMALL> the maximum number
-    of semaphores, <SMALL>SEMMNS</SMALL> and <SMALL>SEMMNI;</SMALL> the
-    maximum number of processes, <SMALL>NPROC;</SMALL> the maximum
-    number of processes per user, <SMALL>MAXUPRC;</SMALL> and the
-    maximum number of open files, <SMALL>NFILE</SMALL> and
-    <SMALL>NINODE</SMALL>. The reason that PostgreSQL has a limit on
-    the number of allowed backend processes is so your system won't run
-    out of resources.</P>
-
-    <H4><A name="3.9">3.9</A>) What is in the <I>pgsql_tmp</I> directory?</H4>
-
-    <P>This directory contains temporary files generated by the query 
-    executor. For example, if a sort needs to be done to satisfy an 
-    <SMALL>ORDER BY</SMALL> and the sort requires more space than the
-    backend's <I>-S</I> parameter allows, then temporary files are created
-    here to hold the extra data.</P>
-
-    <P>The temporary files are usually deleted automatically, but might
-    remain if a backend crashes during a sort. A stop and restart of the
-    <I>postmaster</I> will remove files from those directories.</P>
-
-    <H4><A name="3.10">3.10</A>) Why do I need to do a dump and restore
-    to upgrade between major PostgreSQL releases?</H4>
+    <H3><A name="3.5">3.5</A>) Why do I get <I>"Sorry, too many
+    clients"</I> when trying to connect?</H3>
+
+    <P>You have reached the default limit is 100 database sessions. You
+    need to increase the <I>postmaster</I>'s limit on how many
+    concurrent backend processes it can start by changing the
+    <I>max_connections</I> value in <I>postgresql.conf</I> and
+    restarting the <I>postmaster</I>.</P>
+
+    <H3><A name="3.6">3.6</A>) Why do I need to do a dump and restore
+    to upgrade between major PostgreSQL releases?</H3>
 
     <P>The PostgreSQL team makes only small changes between minor releases,
-    so upgrading from 7.2 to 7.2.1 does not require a dump and restore.
-    However, major releases (e.g. from 7.2 to 7.3) often change the internal
+    so upgrading from 7.4.0 to 7.4.1 does not require a dump and restore.
+    However, major releases (e.g. from 7.3 to 7.4) often change the internal
     format of system tables and data files. These changes are often complex,
-    so we don't maintain backward compatability for data files. A dump outputs
+    so we don't maintain backward compatibility for data files. A dump outputs
     data in a generic format that can then be loaded in using the new internal
     format.</P>
 
-    <P>In releases where the on-disk format does not change, the
-    <I>pg_upgrade</I> script can be used to upgrade without a dump/restore.
-    The release notes mention whether <I>pg_upgrade</I> is available for the
-    release.</P>
-
-    <H4><A name="3.11">3.11</A>) What computer hardware should I use?</H4>
+    <H3><A name="3.7">3.7</A>) What computer hardware should I use?</H3>
 
     <P>Because PC hardware is mostly compatible, people tend to believe that
     all PC hardware is of equal quality.  It is not.  ECC RAM, SCSI, and
 
     <H2 align="center">Operational Questions</H2>
 
-    <H4><A name="4.1">4.1</A>) What is the difference between binary
-    cursors and normal cursors?</H4>
-
-    <P>See the <SMALL>DECLARE</SMALL> manual page for a
-    description.</P>
-
-    <H4><A name="4.2">4.2</A>) How do I <SMALL>SELECT</SMALL> only the
-    first few rows of a query?  A random row?</H4>
+    <H3><A name="4.1">4.1</A>) How do I <SMALL>SELECT</SMALL> only the
+    first few rows of a query?  A random row?</H3>
 
-    <P>See the <SMALL>FETCH</SMALL> manual page, or use
-    <SMALL>SELECT</SMALL> ... <SMALL>LIMIT</SMALL>....</P>
+    <P>To retrieve only a few rows, if you know at the number of rows
+    needed at the time of the <SMALL>SELECT</SMALL> use
+    <SMALL>LIMIT</SMALL> . If an index matches the <SMALL>ORDER
+    BY</SMALL> it is possible the entire query does not have to be
+    executed. If you don't know the number of rows at
+    <SMALL>SELECT</SMALL> time, use a cursor and
+    <SMALL>FETCH</SMALL>.</P>
 
-    <P>The entire query may have to be evaluated, even if you only want
-    the first few rows. Consider using a query that has an <SMALL>ORDER
-    BY</SMALL>. If there is an index that matches the <SMALL>ORDER
-    BY</SMALL>, PostgreSQL may be able to evaluate only the first few
-    records requested, or the entire query may have to be evaluated
-    until the desired rows have been generated.</P>
-
-    <P>To <SMALL>SELECT</SMALL> a random row, use:
+    <P>To <SMALL>SELECT</SMALL> a random row, use:</P>
 <PRE>
     SELECT col
     FROM tab
     LIMIT 1;
 </PRE>
 
-    <H4><A name="4.3">4.3</A>) How do I find out what tables, indexes,
+    <H3><A name="4.2">4.2</A>) How do I find out what tables, indexes,
     databases, and users are defined?  How do I see the queries used
-    by <I>psql</I> to display them?</H4>
+    by <I>psql</I> to display them?</H3>
 
     <P>Use the \dt command to see tables in <I>psql</I>. For a complete list of
     commands inside psql you can use \?. Alternatively you can read the source 
     database.</P>
 
     <P>There are also system tables beginning with <I>pg_</I> that describe
-    these too. Use <I>psql -l</I> will list all databases.</P>
+    these too.</P>
+    
+    <P>Use <I>psql -l</I> will list all databases.</P>
 
     <P>Also try the file <I>pgsql/src/tutorial/syscat.source</I>. It
     illustrates many of the <SMALL>SELECT</SMALL>s needed to get
     information from the database system tables.</P>
 
-    <H4><A name="4.4">4.4</A>) How do you remove a column from a
-    table, or change its data type?</H4>
-
-    <P><SMALL>DROP COLUMN</SMALL> functionality was added in release 7.3
-    with <SMALL>ALTER TABLE DROP COLUMN</SMALL>.  In earlier versions,
-    you can do this:</P>
-<PRE>
-    BEGIN;
-    LOCK TABLE old_table;
-    SELECT ...  -- select all columns but the one you want to remove
-    INTO TABLE new_table
-    FROM old_table;
-    DROP TABLE old_table;
-    ALTER TABLE new_table RENAME TO old_table;
-    COMMIT;
-</PRE>
+    <H3><A name="4.3">4.3</A>) How do you change a column's data type?</H3>
 
     <P>Changing the data type of a column can be done easily in 8.0
-    and later with <SMALL>ALTER TABLE ALTER COLUMN TYPE</SMALL>.
+    and later with <SMALL>ALTER TABLE ALTER COLUMN TYPE</SMALL>.</P>
 
     <P>In earlier releases, do this:</P>
 <PRE>
     <P>You might then want to do <I>VACUUM FULL tab</I> to reclaim the
     disk space used by the expired rows.</P>
     
-    <H4><A name="4.5">4.5</A>) What is the maximum size for a row, a
-    table, and a database?</H4>
+    <H3><A name="4.4">4.4</A>) What is the maximum size for a row, a
+    table, and a database?</H3>
 
     <P>These are the limits:</P>
-<PRE>
-    Maximum size for a database?             unlimited (32 TB databases exist)
-    Maximum size for a table?                32 TB
-    Maximum size for a row?                  1.6TB
-    Maximum size for a field?                1 GB
-    Maximum number of rows in a table?       unlimited
-    Maximum number of columns in a table?    250-1600 depending on column types
-    Maximum number of indexes on a table?    unlimited
-</PRE>
-
-    Of course, these are not actually unlimited, but limited to
+<BLOCKQUOTE>
+<TABLE>
+<TR><TD>Maximum size for a database?</TD><TD>unlimited (32 TB databases
+exist)</TD></TR>
+<TR><TD>Maximum size for a table?</TD><TD>32 TB</TD></TR>
+<TR><TD>Maximum size for a row?</TD><TD>1.6TB</TD></TR>
+<TR><TD>Maximum size for a field?</TD><TD>1 GB</TD></TR>
+<TR><TD>Maximum number of rows in a table?</TD><TD>unlimited</TD></TR>
+<TR><TD>Maximum number of columns in a table?</TD><TD>250-1600 depending
+on column types</TD></TR>
+<TR><TD>Maximum number of indexes on a
+table?</TD><TD>unlimited</TD></TR>
+</TABLE>
+</BLOCKQUOTE>
+
+    <P>Of course, these are not actually unlimited, but limited to
     available disk space and memory/swap space. Performance may suffer
-    when these values get unusually large. 
+    when these values get unusually large.</P>
 
     <P>The maximum table size of 32 TB does not require large file
     support from the operating system. Large tables are stored as
     <P>The maximum table size and maximum number of columns can be
     quadrupled by increasing the default block size to 32k.</P>
 
-    <H4><A name="4.6">4.6</A>) How much database disk space is required
-    to store data from a typical text file?</H4>
+    <P>One limitation is that indexes can not be created on columns
+    longer than about 2,000 characters. Fortunately, such indexes are
+    rarely needed. Uniqueness is best guaranteed by a funtion index
+    of an MD5 hash of the long column, and full text indexing
+    allows for searching of words within the column.</P>
+
+    <H3><A name="4.5">4.5</A>) How much database disk space is required
+    to store data from a typical text file?</H3>
 
     <P>A PostgreSQL database may require up to five times the disk
     space to store data from a text file.</P>
     The size of the PostgreSQL database file containing this data can
     be estimated as 6.4 MB:</P>
 <PRE>
-    32 bytes: each row header (approximate)
+    28 bytes: each row header (approximate)
     24 bytes: one int field and one text field
    + 4 bytes: pointer on page to tuple
    ----------------------------------------
-    60 bytes per row
+    56 bytes per row
 
    The data page size in PostgreSQL is 8192 bytes (8 KB), so:
 
    8192 bytes per page
-   -------------------   =  136 rows per database page (rounded down)
-     60 bytes per row
+   -------------------   =  146 rows per database page (rounded down)
+     56 bytes per row
 
    100000 data rows
-   --------------------  =  735 database pages (rounded up)
-      128 rows per page
+   --------------------  =  685 database pages (rounded up)
+      146 rows per page
 
-735 database pages * 8192 bytes per page  =  6,021,120 bytes (6 MB)
+685 database pages * 8192 bytes per page  =  5,611,520 bytes (5.6 MB)
 </PRE>
 
     <P>Indexes do not require as much overhead, but do contain the data
     <P><SMALL>NULL</SMALL>s are stored as bitmaps, so they
     use very little space.</P>
     
-    <H4><A name="4.7">4.7</A>) My queries are slow or don't make use of
-    the indexes. Why?</H4>
+    <H3><A name="4.6">4.6</A>) Why are my queries slow?  Why don't they
+    use my indexes?</H3>
 
-    <P>Indexes are not automatically used by every query. Indexes are only
-    used if the table is larger than a minimum size, and the query
-    selects only a small percentage of the rows in the table. This is
-    because the random disk access caused by an index scan can be
-    slower than a straight read through the table, or sequential scan. 
+    <P>Indexes are not used by every query. Indexes are used only if the
+    table is larger than a minimum size, and the query selects only a
+    small percentage of the rows in the table. This is because the random
+    disk access caused by an index scan can be slower than a straight read
+    through the table, or sequential scan. </P>
 
     <P>To determine if an index should be used, PostgreSQL must have
     statistics about the table. These statistics are collected using
 
     <P>If you believe the optimizer is incorrect in choosing a
     sequential scan, use <CODE>SET enable_seqscan TO 'off'</CODE> and
-    run tests to see if an index scan is indeed faster.</P>
+    run query again to see if an index scan is indeed faster.</P>
 
     <P>When using wild-card operators such as <SMALL>LIKE</SMALL> or
     <I>~</I>, indexes can only be used in certain circumstances:</P>
     <LI>The search string can not start with a character class,
     e.g. [a-e].</LI>
     <LI>Case-insensitive searches such as <SMALL>ILIKE</SMALL> and
-    <I>~*</I> do not utilize indexes. Instead, use functional
-    indexes, which are described in section <a href="#4.11">4.11</a>.</LI>
+    <I>~*</I> do not utilize indexes. Instead, use expression
+    indexes, which are described in section <a href="#4.8">4.8</a>.</LI>
     <LI>The default <I>C</I> locale must be used during
-    <i>initdb</i> because it is not possible to know the next-greater
+    <i>initdb</i> because it is not possible to know the next-greatest
     character in a non-C locale.  You can create a special
-    <PRE>text_pattern_ops</PRE> index for such cases that work only
-    for <PRE>LIKE</PRE> indexing.
+    <CODE>text_pattern_ops</CODE> index for such cases that work only
+    for <SMALL>LIKE</SMALL> indexing.
     </LI>
     </UL>
 
     <P>In pre-8.0 releases, indexes often can not be used unless the data
-    types exactly match the index's column types.  This is particularly
+    types exactly match the index's column types.  This was particularly
     true of int2, int8, and numeric column indexes.</P>
 
-    <H4><A name="4.8">4.8</A>) How do I see how the query optimizer is
-    evaluating my query?</H4>
+    <H3><A name="4.7">4.7</A>) How do I see how the query optimizer is
+    evaluating my query?</H3>
 
     <P>See the <SMALL>EXPLAIN</SMALL> manual page.</P>
 
-    <H4><A name="4.9">4.9</A>) What is an R-tree index?</H4>
-
-    <P>An R-tree index is used for indexing spatial data. A hash index
-    can't handle range searches. A B-tree index only handles range
-    searches in a single dimension. R-trees can handle
-    multi-dimensional data. For example, if an R-tree index can be
-    built on an attribute of type <I>point</I>, the system can more
-    efficiently answer queries such as "select all points within a
-    bounding rectangle."</P>
-
-    <P>The canonical paper that describes the original R-tree design
-    is:</P>
-
-    <P>Guttman, A. "R-trees: A Dynamic Index Structure for Spatial
-    Searching." Proceedings of the 1984 ACM SIGMOD Int'l Conf on Mgmt
-    of Data, 45-57.</P>
-
-    <P>You can also find this paper in Stonebraker's "Readings in
-    Database Systems".</P>
-
-    <P>Built-in R-trees can handle polygons and boxes. In theory,
-    R-trees can be extended to handle higher number of dimensions. In
-    practice, extending R-trees requires a bit of work and we don't
-    currently have any documentation on how to do it.</P>
-
-    <H4><A name="4.10">4.10</A>) What is the Genetic Query
-    Optimizer?</H4>
-
-    <P>The <SMALL>GEQO</SMALL> module speeds query optimization when
-    joining many tables by means of a Genetic Algorithm (GA). It allows
-    the handling of large join queries through nonexhaustive
-    search.</P>
-
-    <H4><A name="4.11">4.11</A>) How do I perform regular expression
+    <H3><A name="4.8">4.8</A>) How do I perform regular expression
     searches and case-insensitive regular expression searches? How do I
-    use an index for case-insensitive searches?</H4>
+    use an index for case-insensitive searches?</H3>
 
     <P>The <I>~</I> operator does regular expression matching, and
     <I>~*</I> does case-insensitive regular expression matching. The
     FROM tab
     WHERE lower(col) = 'abc';
 </PRE>
-
     This will not use an standard index. However, if you create a
-    functional index, it will be used: 
+    expresssion index, it will be used: 
 <PRE>
     CREATE INDEX tabindex ON tab (lower(col));
 </PRE>
-
-    <H4><A name="4.12">4.12</A>) In a query, how do I detect if a field
-    is <SMALL>NULL</SMALL>?</H4>
+    <P>If the above index is created as <SMALL>UNIQUE</SMALL>, though
+    the column can store upper and lowercase characters, it can not have
+    identical values that differ only in case. To force a particular
+    case to be stored in the column, use a <SMALL>CHECK</SMALL>
+    constraint or a trigger.</P>
+                                        
+    <H3><A name="4.9">4.9</A>) In a query, how do I detect if a field
+    is <SMALL>NULL</SMALL>?  How can I sort on whether a field is <SMALL>
+    NULL</SMALL> or not?</H3>
 
     <P>You test the column with <SMALL>IS NULL</SMALL> and <SMALL>IS
-    NOT NULL</SMALL>.</P>
+    NOT NULL</SMALL>, like this:</P>
 
-    <H4><A name="4.13">4.13</A>) What is the difference between the
-    various character types?</H4>
 <PRE>
-Type            Internal Name   Notes
---------------------------------------------------
-VARCHAR(n)      varchar         size specifies maximum length, no padding
-CHAR(n)         bpchar          blank padded to the specified fixed length
-TEXT            text            no specific upper limit on length
-BYTEA           bytea           variable-length byte array (null-byte safe)
-"char"          char            one character
+   SELECT *
+   FROM tab
+   WHERE col IS NULL;
 </PRE>
 
+   <P>To sort by the <SMALL>NULL</SMALL> status, use the <SMALL>IS NULL</SMALL>
+   and <SMALL>IS NOT NULL</SMALL> modifiers in your <SMALL>ORDER BY</SMALL> clause.
+   Things that are <I>true</I> will sort higher than things that are <I>false</I>,
+   so the following will put NULL entries at the top of the resulting list:</P>
+
+<PRE>
+   SELECT *
+   FROM tab
+   ORDER BY (col IS NOT NULL)
+</PRE>
+
+    <H3><A name="4.10">4.10</A>) What is the difference between the
+    various character types?</H3>
+<BLOCKQUOTE>
+<TABLE>
+<TR><TH>Type</TH><TH>Internal Name</TH><TH>Notes</TH></TR>
+<TR><TD>VARCHAR(n)</TD><TD>varchar</TD><TD>size specifies maximum
+length, no padding</TD></TR>
+<TR><TD>CHAR(n)</TD><TD>bpchar</TD><TD>blank padded to the specified
+fixed length</TD></TR>
+<TR><TD>TEXT</TD><TD>text</TD><TD>no specific upper limit on
+length</TD></TR>
+<TR><TD>BYTEA</TD><TD>bytea</TD><TD>variable-length byte array
+(null-byte safe)</TD></TR>
+<TR><TD>"char"</TD><TD>char</TD><TD>one character</TD></TR>
+</TABLE>
+</BLOCKQUOTE>
+
     <P>You will see the internal name when examining system catalogs
     and in some error messages.</P>
 
     <P>The first four types above are "varlena" types (i.e., the first
     four bytes on disk are the length, followed by the data). Thus the
     actual space used is slightly greater than the declared size.
-    However, these data types are also subject to compression or being
-    stored out-of-line by <SMALL>TOAST</SMALL>, so the space on disk
-    might also be less than expected.</P>
+    However, long values are also subject to compression, so the space
+    on disk might also be less than expected.</P>
 
     <SMALL>VARCHAR(n)</SMALL> is best when storing variable-length
     strings and it limits how long a string can be. <SMALL>TEXT</SMALL>
@@ -1108,12 +816,11 @@ BYTEA           bytea           variable-length byte array (null-byte safe)
     particularly values that include <SMALL>NULL</SMALL> bytes. All the
     types described here have similar performance characteristics.</P>
 
-    <H4><A name="4.14.1">4.14.1</A>) How do I create a
-    serial/auto-incrementing field?</H4>
+    <H3><A name="4.11.1">4.11.1</A>) How do I create a
+    serial/auto-incrementing field?</H3>
 
     <P>PostgreSQL supports a <SMALL>SERIAL</SMALL> data type. It
-    auto-creates a sequence.  For example,
-    this:</P>
+    auto-creates a sequence.  For example, this:</P>
 <PRE>
     CREATE TABLE person ( 
         id   SERIAL, 
@@ -1122,143 +829,87 @@ BYTEA           bytea           variable-length byte array (null-byte safe)
 </PRE>
 
     is automatically translated into this: 
+
 <PRE>
     CREATE SEQUENCE person_id_seq;
     CREATE TABLE person ( 
         id   INT4 NOT NULL DEFAULT nextval('person_id_seq'),
-        name TEXT 
+        name TEXT
     );
 </PRE>
 
     See the <I>create_sequence</I> manual page for more information
-    about sequences. You can also use each row's <I>OID</I> field as a
-    unique value. However, if you need to dump and reload the database,
-    you need to use <I>pg_dump</I>'s <I>-o</I> option or <SMALL>COPY
-    WITH OIDS</SMALL> option to preserve the <SMALL>OID</SMALL>s. 
+    about sequences.
 
-    <H4><A name="4.14.2">4.14.2</A>) How do I get the value of a
-    <SMALL>SERIAL</SMALL> insert?</H4>
+    <H3><A name="4.11.2">4.11.2</A>) How do I get the value of a
+    <SMALL>SERIAL</SMALL> insert?</H3>
 
     <P>One approach is to retrieve the next <SMALL>SERIAL</SMALL> value
     from the sequence object with the <I>nextval()</I> function
     <I>before</I> inserting and then insert it explicitly. Using the
-    example table in <A href="#4.14.1">4.14.1</A>, an example in a
+    example table in <A href="#4.11.1">4.11.1</A>, an example in a
     pseudo-language would look like this:</P>
 <PRE>
     new_id = execute("SELECT nextval('person_id_seq')");
     execute("INSERT INTO person (id, name) VALUES (new_id, 'Blaise Pascal')");
 </PRE>
 
-    You would then also have the new value stored in
-    <CODE>new_id</CODE> for use in other queries (e.g., as a foreign
-    key to the <CODE>person</CODE> table). Note that the name of the
-    automatically created <SMALL>SEQUENCE</SMALL> object will be named
-    &lt;<I>table</I>&gt;_&lt;<I>serialcolumn</I>&gt;_<I>seq</I>, where
-    <I>table</I> and <I>serialcolumn</I> are the names of your table
-    and your <SMALL>SERIAL</SMALL> column, respectively.
-
-    <P>Alternatively, you could retrieve the assigned
-    <SMALL>SERIAL</SMALL> value with the <I>currval()</I> function
-    <I>after</I> it was inserted by default, e.g.,</P>
+    You would then also have the new value stored in <CODE>new_id</CODE>
+    for use in other queries (e.g., as a foreign key to the <CODE>person
+    </CODE> table). Note that the name of the automatically created
+    <SMALL>SEQUENCE</SMALL> object will be named &lt;<I>table</I>&gt;_&lt;<I>
+    serialcolumn</I>&gt;_<I>seq</I>, where <I>table</I> and <I>serialcolumn</I>
+    are the names of your table and your <SMALL>SERIAL</SMALL> column,
+    respectively.
+
+    <P>Alternatively, you could retrieve the assigned <SMALL>SERIAL</SMALL>
+    value with the <I>currval()</I> function <I>after</I> it was inserted by
+    default, e.g.,</P>
 <PRE>
     execute("INSERT INTO person (name) VALUES ('Blaise Pascal')");
     new_id = execute("SELECT currval('person_id_seq')");
 </PRE>
     
-    <P>Finally, you could use the <A href="#4.15"><SMALL>OID</SMALL></A>
-    returned from the <SMALL>INSERT</SMALL> statement to look up the
-    default value, though this is probably the least portable approach,
-    and the oid value will wrap around when it reaches 4 billion.
-    In Perl, using DBI with the DBD::Pg module, the oid value is made
-    available via <I>$sth-&gt;{pg_oid_status}</I> after
-    <I>$sth-&gt;execute()</I>.</P>
-
-    <H4><A name="4.14.3">4.14.3</A>) Doesn't <I>currval()</I>
-    lead to a race condition with other users?</H4>
+    <H3><A name="4.11.3">4.11.3</A>) Doesn't <I>currval()</I>
+    lead to a race condition with other users?</H3>
 
     <P>No. <I>currval()</I> returns the current value assigned by your
-    backend, not by all users.</P>
+    session, not by all sessions.</P>
 
-    <H4><A name="4.14.4">4.14.4</A>) Why aren't my sequence numbers
+    <H3><A name="4.11.4">4.11.4</A>) Why aren't my sequence numbers
     reused on transaction abort? Why are there gaps in the numbering of
-    my sequence/SERIAL column?</H4>
+    my sequence/SERIAL column?</H3>
 
     <P>To improve concurrency, sequence values are given out to running
     transactions as needed and are not locked until the transaction
     completes. This causes gaps in numbering from aborted
     transactions.</P>
 
-    <H4><A name="4.15">4.15</A>) What is an <SMALL>OID</SMALL>? What is
-    a <SMALL>TID</SMALL>?</H4>
-
-    <P><SMALL>OID</SMALL>s are PostgreSQL's answer to unique row ids.
-    Every row that is created in PostgreSQL gets a unique
-    <SMALL>OID</SMALL>. All <SMALL>OID</SMALL>s generated during
-    <I>initdb</I> are less than 16384 (from
-    <I>include/access/transam.h</I>). All user-created
-    <SMALL>OID</SMALL>s are equal to or greater than this. By default,
-    all these <SMALL>OID</SMALL>s are unique not only within a table or
-    database, but unique within the entire PostgreSQL installation.</P>
-
-    <P>PostgreSQL uses <SMALL>OID</SMALL>s in its internal system
-    tables to link rows between tables. These <SMALL>OID</SMALL>s can
-    be used to identify specific user rows and used in joins. It is
-    recommended you use column type <SMALL>OID</SMALL> to store
-    <SMALL>OID</SMALL> values. You can create an index on the
-    <SMALL>OID</SMALL> field for faster access.</P>
-
-    <P>O<SMALL>ID</SMALL>s are assigned to all new rows from a central
-    area that is used by all databases. If you want to change the
-    <SMALL>OID</SMALL> to something else, or if you want to make a copy
-    of the table, with the original <SMALL>OID</SMALL>s, there is no
-    reason you can't do it:</P>
-<PRE>
-        CREATE TABLE new_table(mycol int);
-        SELECT oid AS old_oid, mycol INTO tmp_table FROM old_table;
-        COPY tmp_table TO '/tmp/pgtable';
-        COPY new_table WITH OIDS FROM '/tmp/pgtable';
-        DROP TABLE tmp_table;
-</PRE>
-    <P>O<SMALL>ID</SMALL>s are stored as 4-byte integers, and will
-    overflow at 4 billion. No one has reported this ever happening, and
-    we plan to have the limit removed before anyone does.</P>
-
-    <P>T<SMALL>ID</SMALL>s are used to identify specific physical rows
-    with block and offset values. T<SMALL>ID</SMALL>s change after rows
+    <H3><A name="4.12">4.12</A>) What is an <SMALL>OID</SMALL>? What is
+    a <SMALL>CTID</SMALL>?</H3>
+
+    <P>Every row that is created in PostgreSQL gets a unique
+    <SMALL>OID</SMALL> unless created <SMALL>WITHOUT OIDS</SMALL>.
+    O<SMALL>ID</SMALL>s are autotomatically assigned unique 4-byte
+    integers that are unique across the entire installation.  However,
+    they overflow at 4 billion, and then the O<SMALL>ID</SMALL>s start
+    being duplicated. PostgreSQL uses <SMALL>OID</SMALL>s to link its
+    internal system tables together.</P>
+
+    <P>To uniquely number columns in user tables, it is best to use
+    <SMALL>SERIAL</SMALL> rather than O<SMALL>ID</SMALL>s because
+    <SMALL>SERIAL</SMALL> sequences are unique only within a single
+    table. and are therefore less likely to overflow.
+    <SMALL>SERIAL8</SMALL> is available for storing eight-byte sequence
+    values.</P>
+
+    <P>C<SMALL>TID</SMALL>s are used to identify specific physical rows
+    with block and offset values. C<SMALL>TID</SMALL>s change after rows
     are modified or reloaded. They are used by index entries to point
     to physical rows.</P>
 
-    <H4><A name="4.16">4.16</A>) What is the meaning of some of the
-    terms used in PostgreSQL?</H4>
-
-    <P>Some of the source code and older documentation use terms that
-    have more common usage. Here are some:</P>
-
-    <UL>
-      <LI>table, relation, class</LI>
-
-      <LI>row, record, tuple</LI>
-
-      <LI>column, field, attribute</LI>
-
-      <LI>retrieve, select</LI>
-
-      <LI>replace, update</LI>
-
-      <LI>append, insert</LI>
-
-      <LI><SMALL>OID</SMALL>, serial value</LI>
-
-      <LI>portal, cursor</LI>
-
-      <LI>range variable, table name, table alias</LI>
-    </UL>
-
-    <P>A list of general database terms can be found at: <A href=
-    "http://hea-www.harvard.edu/MST/simul/software/docs/pkgs/pgsql/glossary/glossary.html">http://hea-www.harvard.edu/MST/simul/software/docs/pkgs/pgsql/glossary/glossary.html</A></P>
-
-    <H4><A name="4.17">4.17</A>) Why do I get the error <I>"ERROR:
-    Memory exhausted in AllocSetAlloc()"</I>?</H4>
+    <H3><A name="4.13">4.13</A>) Why do I get the error <I>"ERROR:
+    Memory exhausted in AllocSetAlloc()"</I>?</H3>
 
     <P>You probably have run out of virtual memory on your system,
     or your kernel has a low limit for certain resources. Try this
@@ -1276,61 +927,20 @@ BYTEA           bytea           variable-length byte array (null-byte safe)
     backend is returning too much data, try it before starting the
     client.
 
-    <H4><A name="4.18">4.18</A>) How do I tell what PostgreSQL version
-    I am running?</H4>
+    <H3><A name="4.14">4.14</A>) How do I tell what PostgreSQL version
+    I am running?</H3>
 
     <P>From <I>psql</I>, type <CODE>SELECT version();</CODE></P>
 
-    <H4><A name="4.19">4.19</A>) Why does my large-object operations
-    get <I>"invalid large obj descriptor"</I>?</H4>
-
-    <P>You need to put <CODE>BEGIN WORK</CODE> and <CODE>COMMIT</CODE>
-    around any use of a large object handle, that is, surrounding
-    <CODE>lo_open</CODE> ... <CODE>lo_close.</CODE></P>
-
-    <P>Currently PostgreSQL enforces the rule by closing large object
-    handles at transaction commit. So the first attempt to do anything
-    with the handle will draw <I>invalid large obj descriptor</I>. So
-    code that used to work (at least most of the time) will now
-    generate that error message if you fail to use a transaction.</P>
-
-    <P>If you are using a client interface like <SMALL>ODBC</SMALL> you
-    may need to set <CODE>auto-commit off.</CODE></P>
-
-    <H4><A name="4.20">4.20</A>) How do I create a column that will
-    default to the current time?</H4>
+    <H3><A name="4.15">4.15</A>) How do I create a column that will
+    default to the current time?</H3>
 
     <P>Use <I>CURRENT_TIMESTAMP</I>:</P>
 <PRE>
-<CODE>CREATE TABLE test (x int, modtime timestamp DEFAULT CURRENT_TIMESTAMP );
-</CODE>
+    CREATE TABLE test (x int, modtime TIMESTAMP DEFAULT CURRENT_TIMESTAMP );
 </PRE>
 
-    <H4><A name="4.21">4.21</A>) Why are my subqueries using
-    <CODE><SMALL>IN</SMALL></CODE> so slow?</H4>
-
-    <P>In versions prior to 7.4, subqueries were joined to outer queries
-    by sequentially scanning the result of the subquery for each row of
-    the outer query. If the subquery returns only a few rows and the outer
-    query returns many rows, <CODE><SMALL>IN</SMALL></CODE> is fastest.  To
-    speed up other queries, replace <CODE>IN</CODE> with
-    <CODE>EXISTS</CODE>:</P>
-<PRE>    SELECT *
-    FROM tab
-    WHERE col IN (SELECT subcol FROM subtab);
-</PRE>
-    to:
-<PRE>    SELECT *
-    FROM tab
-    WHERE EXISTS (SELECT subcol FROM subtab WHERE subcol = col);
-</PRE>
-
-    For this to be fast, <CODE>subcol</CODE> should be an indexed column.
-    <P>In version 7.4 and later,  <CODE>IN</CODE> actually uses the same
-    sophisticated join techniques as normal queries, and is prefered
-    to using <CODE>EXISTS</CODE>.
-
-    <H4><A name="4.22">4.22</A>) How do I perform an outer join?</H4>
+    <H3><A name="4.16">4.16</A>) How do I perform an outer join?</H3>
 
     <P>PostgreSQL supports outer joins using the SQL standard syntax.
     Here are two examples:</P>
@@ -1353,105 +963,74 @@ BYTEA           bytea           variable-length byte array (null-byte safe)
     <SMALL>RIGHT</SMALL>, and <SMALL>FULL</SMALL> joins. Ordinary joins
     are called <SMALL>INNER</SMALL> joins.</P>
 
-    <P>In previous releases, outer joins can be simulated using
-    <SMALL>UNION</SMALL> and <SMALL>NOT IN</SMALL>. For example, when
-    joining <I>tab1</I> and <I>tab2</I>, the following query does an
-    <I>outer</I> join of the two tables:<BR>
-    <BR>
-    </P>
-<PRE>
-    SELECT tab1.col1, tab2.col2
-    FROM tab1, tab2
-    WHERE tab1.col1 = tab2.col1
-    UNION ALL
-    SELECT tab1.col1, NULL
-    FROM tab1
-    WHERE tab1.col1 NOT IN (SELECT tab2.col1 FROM tab2)
-    ORDER BY col1
-</PRE>
-
-    <H4><A name="4.23">4.23</A>) How do I perform queries using
-    multiple databases?</H4>
+    <H3><A name="4.17">4.17</A>) How do I perform queries using
+    multiple databases?</H3>
 
     <P>There is no way to query a database other than the current one.
     Because PostgreSQL loads database-specific system catalogs, it is
     uncertain how a cross-database query should even behave.</P>
 
     <P><I>contrib/dblink</I> allows cross-database queries using
-    function calls. Of course, a client can make simultaneous
+    function calls. Of course, a client can also make simultaneous
     connections to different databases and merge the results on the
     client side.</P>
 
-    <H4><A name="4.24">4.24</A>) How do I return multiple rows or
-    columns from a function?</H4>
+    <H3><A name="4.18">4.18</A>) How do I return multiple rows or
+    columns from a function?</H3>
 
-    <P>In 7.3, you can easily return multiple rows or columns from a
-    function,
+    <P>It is easy using set-returning functions, 
     <a href="http://techdocs.postgresql.org/guides/SetReturningFunctions">
-    http://techdocs.postgresql.org/guides/SetReturningFunctions</a>.
+    http://techdocs.postgresql.org/guides/SetReturningFunctions</a></P>.
+
+    <H3><A name="4.19">4.19</A>) Why do I get "relation with OID #####
+    does not exist" errors when accessing temporary tables in PL/PgSQL
+    functions?</H3>
 
-    <H4><A name="4.25">4.25</A>) Why can't I reliably create/drop
-    temporary tables in PL/PgSQL functions?</H4>
-    <P>PL/PgSQL caches function contents, and an unfortunate side effect
+    <P>PL/PgSQL caches function scripts, and an unfortunate side effect
     is that if a PL/PgSQL function accesses a temporary table, and that
-    table is later dropped and recreated, and the function called
-    again, the function will fail because the cached function contents
-    still point to the old temporary table. The solution is to use
+    table is later dropped and recreated, and the function called again,
+    the function will fail because the cached function contents still
+    point to the old temporary table. The solution is to use
     <SMALL>EXECUTE</SMALL> for temporary table access in PL/PgSQL. This
     will cause the query to be reparsed every time.</P>
 
-    <H4><A name="4.26">4.26</A>) What encryption options are available?
-    </H4>
+    <H3><A name="4.20">4.20</A>) What replication solutions are available?
+    </H3>
+
+    <P>Though "replication" is a single term, there are several technologies
+    for doing replication, with advantages and disadvantages for each.</P>
+
+    <P>Master/slave replication allows a single master to receive read/write
+    queries, while slaves can only accept read/<SMALL>SELECT</SMALL>
+    queries. The most popular freely available master-slave PostgreSQL
+    replication solution is <A
+    href="http://gborg.postgresql.org/project/slony1/projdisplay.php">
+    Slony-I</A>.</P>
+
+    <P>Multi-master replication allows read/write queries to be sent to
+    multiple replicated computers.  This capability also has a severe impact
+    on performance due to the need to synchronize changes between servers. 
+    <A href="http://pgfoundry.org/projects/pgcluster/">Pgcluster</a> is the
+    most popular such solution freely available for PostgreSQL.</P>
+
+    <P>There are also commercial and hardware-based replication solutions
+    available supporting a variety of replication models.</P>
+
+    <H3><A name="4.21">4.21</A>) Why are my table and column names not
+    recognized in my query?</H3>
+
+    <P>The most common cause is the use of double-quotes around table or
+    column names during table creation. When double-quotes are used,
+    table and column names (called identifiers) are stored <a
+    href="http://www.postgresql.org/docs/8.0/static/sql-syntax.html#SQL-
+    SYNTAX-IDENTIFIERS">case-sensitive</a>, meaning you must use
+    double-quotes when referencing the names in a query. Some interfaces,
+    like pgAdmin, automatically double-quote identifiers during table
+    creation. So, for identifiers to be recognized, you must either:
     <UL>
-    <LI><I>contrib/pgcrypto</I> contains many encryption functions for
-    use in <SMALL>SQL</SMALL> queries.</LI>
-    <LI>To encrypt transmission from the client to the server, the server
-    must have the <I>ssl</I> option set to <I>true</I> in <I>postgresql.conf,
-    </I> and an applicable <I>host</I> or <I>hostssl</I> record must exist in
-    <I>pg_hba.conf</I>, and the client <I>sslmode</I> must not be
-    <I>disable.</I> (Note that it is also possible to use a third-party
-    encrypted transport, such as stunnel or ssh, rather than PostgreSQL's
-    native SSL connections.)
-    <LI>Database user passwords are automatically encrypted when stored in
-    version 7.3. In previous versions, you must enable the option
-    <I>PASSWORD_ENCRYPTION</I> in <I>postgresql.conf</I>.</LI>
-    <LI>The server can run using an encrypted file system.</LI>
+    <LI>Avoid double-quoting identifiers when creating tables</LI>
+    <LI>Use only lowercase characters in identifiers</LI>
+    <LI>Double-quote identifiers when referencing them in queries</LI>
     </UL>
-
-    <HR>
-
-    <H2 align="center">Extending PostgreSQL</H2>
-
-    <H4><A name="5.1">5.1</A>) I wrote a user-defined function. When I
-    run it in <I>psql</I>, why does it dump core?</H4>
-
-    <P>The problem could be a number of things. Try testing your
-    user-defined function in a stand-alone test program first.</P>
-
-    <H4><A name="5.2">5.2</A>) How can I contribute some nifty new
-    types and functions to PostgreSQL?</H4>
-
-    <P>Send your extensions to the <I>pgsql-hackers</I> mailing list,
-    and they will eventually end up in the <I>contrib/</I>
-    subdirectory.</P>
-
-    <H4><A name="5.3">5.3</A>) How do I write a C function to return a
-    tuple?</H4>
-
-    <P>In versions of PostgreSQL beginning with 7.3, table-returning
-    functions are fully supported in C, PL/PgSQL, and SQL. See the
-    Programmer's Guide for more information. An example of a
-    table-returning function defined in C can be found in
-    <I>contrib/tablefunc</I>.</P>
-
-    <H4><A name="5.4">5.4</A>) I have changed a source file. Why does
-    the recompile not see the change?</H4>
-
-    <P>The <I>Makefiles</I> do not have the proper dependencies for
-    include files. You have to do a <I>make clean</I> and then another
-    <I>make</I>. If you are using <SMALL>GCC</SMALL> you can use the
-    <I>--enable-depend</I> option of <I>configure</I> to have the
-    compiler compute the dependencies automatically.</P>
   </BODY>
 </HTML>
-
index c43dc78af4934aec08b1f198e143cf83626cd55b..69db6aa18c8a5d15deceeac652fec4d39e68c6a0 100644 (file)
@@ -13,7 +13,7 @@
     <H1>Developer's Frequently Asked Questions (FAQ) for
     PostgreSQL</H1>
 
-    <P>Last updated: Wed Jan  5 17:36:58 EST 2005</P>
+    <P>Last updated: Mon Sep 19 21:28:08 EDT 2005</P>
 
     <P>Current maintainer: Bruce Momjian (<A href=
     "mailto:pgman@candle.pha.pa.us">pgman@candle.pha.pa.us</A>)<BR>
@@ -26,9 +26,7 @@
     <BR>
      
 
-    <CENTER>
       <H2>General Questions</H2>
-    </CENTER>
     <A href="#1.1">1.1</A>) How do I get involved in PostgreSQL
     development?<BR>
      <A href="#1.2">1.2</A>) What development environment is required
@@ -36,8 +34,8 @@
      <A href="#1.3">1.3</A>) What areas need work?<BR>
      <A href="#1.4">1.4</A>) What do I do after choosing an item to
     work on?<BR>
-     <A href="#1.5">1.5</A>) Where can I learn more about the code?<BR>
-     <A href="#1.6">1.6</A>) I've developed a patch, what next?<BR>
+     <A href="#1.5">1.5</A>) I've developed a patch, what next?<BR>
+     <A href="#1.6">1.6</A>) Where can I learn more about the code?<BR>
      <A href="#1.7">1.7</A>) How do I download/update the current
     source tree?<BR>
      <A href="#1.8">1.8</A>) How do I test my changes?<BR>
@@ -46,8 +44,8 @@
      <A href="#1.10">1.10</A>) What books are good for developers?<BR>
      <A href="#1.11">1.11</A>) What is configure all about?<BR>
      <A href="#1.12">1.12</A>) How do I add a new port?<BR>
-     <A href="#1.13">1.13</A>) Why don't you use threads/raw
-    devices/async-I/O, &lt;insert your favorite wizz-bang feature
+     <A href="#1.13">1.13</A>) Why don't you use threadsraw
+    devicesasync-I/O, &lt;insert your favorite wizz-bang feature
     here&gt;?<BR>
      <A href="#1.14">1.14</A>) How are RPM's packaged?<BR>
      <A href="#1.15">1.15</A>) How are CVS branches handled?<BR>
@@ -59,9 +57,7 @@
     site development?<BR>
      
 
-    <CENTER>
       <H2>Technical Questions</H2>
-    </CENTER>
     <A href="#2.1">2.1</A>) How do I efficiently access information in
     tables from the backend code?<BR>
      <A href="#2.2">2.2</A>) Why are table, column, type, function,
     <I>pfree</I>() to allocate memory?<BR>
      <A href="#2.6">2.6</A>) What is ereport()?<BR>
      <A href="#2.7">2.7</A>) What is CommandCounterIncrement()?<BR>
+     <A href="#2.8">2.8</A>) What debugging features are available?<BR>
+
      <BR>
      
     <HR>
 
-    <CENTER>
-      <H2>General Questions</H2>
-    </CENTER>
+    <H2>General Questions</H2>
 
-    <H3><A name="1.1">1.1</A>) How go I get involved in PostgreSQL
+    <H3><A name="1.1">1.1</A>) How do I get involved in PostgreSQL
     development?</H3>
 
     <P>Download the code and have a look around. See <A href=
     "#1.7">1.7</A>.</P>
 
     <P>Subscribe to and read the <A href=
-    "http://archives.posrgresql.org/pgsql-hackers">pgsql-hackers</A>
+    "http://archives.postgresql.org/pgsql-hackers">pgsql-hackers</A>
     mailing list (often termed 'hackers'). This is where the major
     contributors and core members of the project discuss
     development.</P>
     <H3><A name="1.3">1.3</A>) What areas need work?</H3>
     Outstanding features are detailed in the TODO list. This is located
     in <I>doc/TODO</I> in the source distribution or at <A href=
-    "http://developer.postgresql.org/todo.php">
-    http://developer.postgresql.org/todo.php</A>.
+    "http://www.postgresql.org/docs/faqs.TODO.html">
+    http://www.postgresql.org/docs/faqs.TODO.html</A>.
     
 
     <P>You can learn more about these features by consulting the
 
     <P>Send an email to pgsql-hackers with a proposal for what you want
     to do (assuming your contribution is not trivial). Working in
-    isolation is not advisable: others may be working on the same TODO
-    item; you may have misunderstood the TODO item; your approach may
-    benefit from the review of others.</P>
-
-    <H3><A name="1.5">1.5</A>) Where can I learn more about the
-    code?</H3>
-
-    <P>Other than documentation in the source tree itself, you can find
-    some papers/presentations discussing the code at <A href=
-    "http://www.postgresql.org/developer">
-    http://www.postgresql.org/developer</A>.</P>
-
-    <H3><A name="1.6">1.6</A>) I've developed a patch, what next?</H3>
+    isolation is not advisable because others might be working on the same
+    TODO item, or you might have misunderstood the TODO item. In the
+    email, discuss both the internal implementation method you plan to
+    use, and any user-visible changes (new syntax, etc). For complex
+    patches, it is important to get community feeback on your proposal
+    before starting work. Failure to do so might mean your patch is
+    rejected.</P>
+
+    <P>A web site is maintained for patches awaiting review,
+    <a href="http://momjian.postgresql.org/cgi-bin/pgpatches">
+    http://momjian.postgresql.org/cgi-bin/pgpatches</a>, and
+    those that are being kept for the next release,
+    <a href="http://momjian.postgresql.org/cgi-bin/pgpatches_hold">
+    http://momjian.postgresql.org/cgi-bin/pgpatches2</a>.</P>
+    
+    <H3><A name="1.5">1.5</A>) I've developed a patch, what next?</H3>
 
     <P>Generate the patch in contextual diff format. If you are
-    unfamiliar with this, you may find the script
+    unfamiliar with this, you might find the script
     <I>src/tools/makediff/difforig</I> useful.</P>
 
     <P>Ensure that your patch is generated against the most recent
     version of the code. If it is a patch adding new functionality, the
-    most recent version is cvs HEAD; if it is a bug fix, this will be
+    most recent version is CVS HEAD; if it is a bug fix, this will be
     the most recently version of the branch which suffers from the bug
     (for more on branches in PostgreSQL, see <A href=
     "#1.15">1.15</A>).</P>
 
     <P>Finally, submit the patch to pgsql-patches@postgresql.org. It
-    will be reviewed by other contributors to the project and may be
-    either accepted or sent back for further work.</P>
+    will be reviewed by other contributors to the project and will be
+    either accepted or sent back for further work. Also, please try to
+    include documentation changes as part of the patch. If you can't do
+    that, let us know and we will manually update the documentation when
+    the patch is applied.</P>
+
+    <H3><A name="1.6">1.6</A>) Where can I learn more about the
+    code?</H3>
+
+    <P>Other than documentation in the source tree itself, you can find
+    some papers/presentations discussing the code at <A href=
+    "http://www.postgresql.org/developer">
+    http://www.postgresql.org/developer</A>.</P>
 
     <H3><A name="1.7">1.7</A>) How do I download/update the current
     source tree?</H3>
     <A href=
     "ftp://ftp.postgresql.org">ftp://ftp.postgresql.org</A>.</P>
 
-    <P>Regular developers may want to take advantage of anonymous
+    <P>Regular developers might want to take advantage of anonymous
     access to our source code management system. The source tree is
     currently hosted in CVS. For details of how to obtain the source
     from CVS see <A href=
     <P><B>Basic system testing</B></P>
 
     <P>The easiest way to test your code is to ensure that it builds
-    against the latest verion of the code and that it does not generate
+    against the latest version of the code and that it does not generate
     compiler warnings.</P>
 
     <P>It is worth advised that you pass --enable-cassert to
     directory of the source tree. If any tests failure,
     investigate.</P>
 
-    <P>If you've deliberately changed existing behaviour, this change
-    may cause a regression test failure but not any actual regression.
+    <P>If you've deliberately changed existing behavior, this change
+    might cause a regression test failure but not any actual regression.
     If so, you should also patch the regression test suite.</P>
 
     <P><B>Other run time testing</B></P>
     <P>There have been a number of discussions about other testing
     frameworks and some developers are exploring these ideas.</P>
 
+    <P>Keep in mind the <I>Makefiles</I> do not have the proper
+    dependencies for include files. You have to do a <I>make clean</I>
+    and then another <I>make</I>. If you are using <SMALL>GCC</SMALL>
+    you can use the <I>--enable-depend</I> option of <I>configure</I>
+    to have the compiler compute the dependencies automatically.</P>
+
     <H3><A name="1.9">1.9</A>) What tools are available for
     developers?</H3>
 
     handling. There is a <I>backend/port</I> directory if you need
     special files for your OS.</P>
 
-    <H3><A name="1.13">1.13</A>) Why don't you use threads/raw
-    devices/async-I/O, &lt;insert your favorite wizz-bang feature
+    <H3><A name="1.13">1.13</A>) Why don't you use threadsraw
+    devicesasync-I/O, &lt;insert your favorite wizz-bang feature
     here&gt;?</H3>
 
     <P>There is always a temptation to use the newest operating system
 
       <LI>The initscript;</LI>
 
-      <LI>Any other ancilliary scripts and files;</LI>
+      <LI>Any other ancillary scripts and files;</LI>
 
       <LI>A README.rpm-dist document that tries to adequately document
       both the differences between the RPM build and the WHY of the
     cvs ... checkout pgsql
 </PRE>
 
-    <P>To get a past branch, you cd to whereever you want it and
+    <P>To get a past branch, you cd to wherever you want it and
     say</P>
 <PRE>
     cvs ... checkout -r BRANCHNAME pgsql
     questions about development of new features, on IRC at
     irc.freenode.net in the #postgresql channel.</P>
 
-    <H3><A name="1.18">1.18</A>) How go I get involved in PostgreSQL
+    <H3><A name="1.18">1.18</A>) How do I get involved in PostgreSQL
     web site development?</H3>
 
     <P>PostgreSQL website development is discussed on the
     the source code is available at <A href=
     "http://gborg.postgresql.org/project/pgweb/projdisplay.php">http://gborg.postgresql.org/project/pgweb/projdisplay.php</A>
     , the code for the next version of the website is under the
-    "portal" module. You will al so find code for the "techdocs"
+    "portal" module. You will also find code for the "techdocs"
     website if you would like to contribute to that. A temporary todo
     list for current website development issues is available at <A
     href=
     "http://xzilla.postgresql.org/todo">http://xzilla.postgresql.org/todo</A></P>
 
-    <CENTER>
       <H2>Technical Questions</H2>
-    </CENTER>
 
     <H3><A name="2.1">2.1</A>) How do I efficiently access information
     in tables from the backend code?</H3>
     delete tuples by passing the tuple's <I>t_self</I> to
     <I>heap_destroy().</I> You use <I>t_self</I> for
     <I>heap_update()</I> too. Remember, tuples can be either system
-    cache copies, which may go away after you call
+    cache copies, which might go away after you call
     <I>ReleaseSysCache()</I>, or read directly from disk buffers, which
     go away when you <I>heap_getnext()</I>, <I>heap_endscan</I>, or
     <I>ReleaseBuffer()</I>, in the <I>heap_fetch()</I> case. Or it may
       <DL>
         <DT>lfirst(i), lfirst_int(i), lfirst_oid(i)</DT>
 
-        <DD>return the data (a point, inteter and OID respectively) at
+        <DD>return the data (a point, integer and OID respectively) at
         list element <I>i.</I></DD>
 
         <DT>lnext(i)</DT>
     to create, copy, read, and output those structures (in particular,
     the files <I>copyfuncs.c</I> and <I>equalfuncs.c</I>. Make sure you
     add support for your new field to these files. Find any other
-    places the structure may need code for your new field. <I>mkid</I>
+    places the structure might need code for your new field. <I>mkid</I>
     is helpful with this (see <A href="#1.9">1.9</A>).</P>
 
     <H3><A name="2.5">2.5</A>) Why do we use <I>palloc</I>() and
     modified by previous pieces. <I>CommandCounterIncrement()</I>
     increments the Command Counter, creating a new part of the
     transaction.</P>
+
+    <H3><A name="2.8">2.8</A>) What debugging features are
+    available?</H3>
+
+    <P>First, try running <I>configure</I> with the --enable-cassert
+    option, many <I>assert()</I>s monitor the progress of the backend
+    and halt the program when something unexpected occurs.</P>
+
+    <P>The <I>postmaster</I> has a <I>-d</I> option that allows even more
+    detailed information to be reported. The <I>-d</I> option takes a
+    number that specifies the debug level. Be warned that high debug
+    level values generate large log files.</P>
+
+    <P>If the <I>postmaster</I> is not running, you can actually run the
+    <I>postgres</I> backend from the command line, and type your
+    <SMALL>SQL</SMALL> statement directly. This is recommended
+    <B>only</B> for debugging purposes. If you have compiled with debugging
+    symbols, you can use a debugger to see what is happening. Because
+    the backend was not started from <I>postmaster</I>, it is not
+    running in an identical environment and locking/backend interaction
+    problems might not be duplicated.</P>
+
+    <P>If the <I>postmaster</I> is running, start <I>psql</I> in one
+    window, then find the <SMALL>PID</SMALL> of the <I>postgres</I>
+    process used by <I>psql</I> using <CODE>SELECT pg_backend_pid()</CODE>.
+    Use a debugger to attach to the <I>postgres</I> <SMALL>PID</SMALL>.
+    You can set breakpoints in the debugger and issue queries from
+
+    <I>psql</I>. If you are debugging <I>postgres</I> startup, you can
+    set PGOPTIONS="-W n", then start <I>psql</I>. This will cause startup
+    to delay for <I>n</I> seconds so you can attach to the process with
+    the debugger, set any breakpoints, and continue through the startup
+    sequence.</P>
+
+    <P>You can also compile with profiling to see what functions are
+    taking execution time. The backend profile files will be deposited
+    in the <I>pgsql/data</I> directory. The client profile file will be
+    put in the client's current directory. Linux requires a compile with
+    <I>-DLINUX_PROFILE</I> for proper profiling.</P>
   </BODY>
 </HTML>
 
index 924d20ef4d88fd4a236af28833e1a10f0d87a3b1..e2a6f759f551bc5ed88f09c9554c5246e53e4474 100644 (file)
@@ -14,8 +14,8 @@
 </P>
 
 <P>The most recent version of this document can be viewed at <A href=
-"http://momjian.postgresql.org/main/writings/pgsql/project/win32.html">
-http://momjian.postgresql.org/main/writings/pgsql/project/win32.html</A>.</P>
+"http://www.postgresql.org/docs/faqs.FAQ_MINGW.html">
+http://www.postgresql.org/docs/faqs.FAQ_MINGW.html</A>.</P>
 
 <P>The FAQ for running PostgreSQL on native Win32 is at <A href=
 "http://pginstaller.projects.postgresql.org/FAQ_windows.html">
@@ -71,8 +71,6 @@ The mailing list for discussion is
 <i>pgsql-hackers-win32@postgresql.org</i>. You can subscribe by sending
 an email body containing the word <i>subscribe</i> to <i><a
  href="mailto:pgsql-hackers-win32-request@postgresql.org">pgsql-hackers-win32-request@postgresql.org</a></i>.<br>
-<ul>
-</ul>
 <h2>Resources</h2>
 There are several resources that helped us complete this port:<br>
 <ul>