Postgresql 7.1 Administrator's Guide
Total Page:16
File Type:pdf, Size:1020Kb
PostgreSQL 7.1 Administrator's Guide The PostgreSQL Global Development Group PostgreSQL 7.1 Administrator's Guide by The PostgreSQL Global Development Group Copyright © 1996-2001 by PostgreSQL Global Development Group Legal Notice PostgreSQL is Copyright © 1996-2001 by the PostgreSQL Global Development Group and is distributed under the terms of the license of the University of California below. Postgres95 is Copyright © 1994-5 by the 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 MAINTAINANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. Table of Contents Table of Contents . i List of Tables . v List of Examples . vi Preface . vii 1. What is PostgreSQL? . vii 2. A Short History of Postgres . vii 2.1. The Berkeley Postgres Project . viii 2.2. Postgres95 . viii 2.3. PostgreSQL . ix 3. Documentation Resources. ix 4. Terminology and Notation . xi 5. Bug Reporting Guidelines. xi 5.1. Identifying Bugs. xii 5.2. What to report . xii 5.3. Where to report bugs . xiv 6. Y2K Statement. xiv Chapter 1. Installation Instructions. 1 1.1. Short Version . 1 1.2. Requirements . 1 1.3. Getting The Source . 2 1.4. If You Are Upgrading. 2 1.5. Installation Procedure . 3 1.6. Post-Installation Setup . 9 1.6.1. Shared Libraries. 9 1.6.2. Environment Variables . 10 1.7. Supported Platforms. 11 Chapter 2. Installation on Windows . 14 Chapter 3. Server Runtime Environment. 15 3.1. The Postgres user account . 15 3.2. Creating a database cluster . 15 3.3. Starting the database server . 16 3.3.1. Server Start-up Failures . 18 3.3.2. Client Connection Problems . 19 3.4. Run-time configuration . 19 3.4.1. Planner and Optimizer Tuning . 20 3.4.2. Logging and Debugging . 22 3.4.3. General operation. 24 3.4.4. WAL . 26 3.4.5. Short options. 27 3.5. Managing Kernel Resources . 28 3.5.1. Shared Memory and Semaphores. 28 3.5.2. Resource Limits . 33 3.6. Shutting down the server . 34 3.7. Secure TCP/IP Connections with SSL . 34 3.8. Secure TCP/IP Connections with SSH tunnels . 35 Chapter 4. Client Authentication. 37 4.1. The pg_hba.conf file . 37 4.2. Authentication methods . 40 i 4.2.1. Password authentication . 40 4.2.2. Kerberos authentication . 41 4.2.3. Ident-based authentication . 42 4.3. Authentication problems . 43 Chapter 5. Localization. 44 5.1. Locale Support . 44 5.1.1. Overview . 44 5.1.2. Benefits . 45 5.1.3. Problems . ..