Administrator Guide
Total Page:16
File Type:pdf, Size:1020Kb
PRODUCT DOCUMENTATION Pivotal™ Greenplum Database® Version 4.3 Administrator Guide Rev: A31 © 2017 Pivotal Software, Inc. Copyright Administrator Guide Notice Copyright Privacy Policy | Terms of Use Copyright © 2017 Pivotal Software, Inc. All rights reserved. Pivotal Software, Inc. believes the information in this publication is accurate as of its publication date. The information is subject to change without notice. THE INFORMATION IN THIS PUBLICATION IS PROVIDED "AS IS." PIVOTAL SOFTWARE, INC. ("Pivotal") MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WITH RESPECT TO THE INFORMATION IN THIS PUBLICATION, AND SPECIFICALLY DISCLAIMS IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Use, copying, and distribution of any Pivotal software described in this publication requires an applicable software license. All trademarks used herein are the property of Pivotal or their respective owners. Revised August 2017 (4.3.16.1) 2 Contents Administrator Guide Contents Preface: About This Guide......................................................................... x About the Greenplum Database Documentation Set......................................................................... xi Document Conventions......................................................................................................................xii Text Conventions.................................................................................................................... xii Command Syntax Conventions..............................................................................................xiii Getting Support................................................................................................................................. xiv Part I: Greenplum Database Concepts....................................................15 Chapter 1: About the Greenplum Architecture............................... 16 About the Greenplum Master................................................................................................. 17 About the Greenplum Segments............................................................................................17 About the Greenplum Interconnect........................................................................................ 18 Chapter 2: About Management and Monitoring Utilities................19 Chapter 3: About Concurrency Control in Greenplum Database..........................................................................................21 Example of Managing Transaction IDs.................................................................................. 25 Chapter 4: About Parallel Data Loading..........................................29 Chapter 5: About Redundancy and Failover in Greenplum Database..........................................................................................30 Chapter 6: About Database Statistics in Greenplum Database.... 33 System Statistics.................................................................................................................... 33 Configuring Statistics.............................................................................................................. 37 Part II: Managing a Greenplum System.................................................. 40 Chapter 7: Starting and Stopping Greenplum Database................41 Starting Greenplum Database................................................................................................ 41 Restarting Greenplum Database............................................................................................ 41 Reloading Configuration File Changes Only.......................................................................... 41 Starting the Master in Maintenance Mode............................................................................. 42 Stopping Greenplum Database.............................................................................................. 42 3 Contents Administrator Guide Chapter 8: Accessing the Database................................................ 43 Establishing a Database Session...........................................................................................44 Supported Client Applications................................................................................................ 45 Greenplum Database Client Applications...............................................................................46 Connecting with psql.............................................................................................................. 47 pgAdmin III for Greenplum Database.................................................................................... 48 Installing pgAdmin III for Greenplum Database...........................................................49 Documentation for pgAdmin III for Greenplum Database............................................49 Performing Administrative Tasks with pgAdmin III...................................................... 49 Using the PgBouncer Connection Pooler...............................................................................51 Database Application Interfaces.............................................................................................57 Third-Party Client Tools..........................................................................................................58 Troubleshooting Connection Problems...................................................................................59 Chapter 9: Configuring the Greenplum Database System.............60 About Greenplum Database Master and Local Parameters.................................................. 61 Setting Configuration Parameters.......................................................................................... 62 Setting a Local Configuration Parameter.................................................................... 62 Setting a Master Configuration Parameter.................................................................. 62 Viewing Server Configuration Parameter Settings................................................................. 64 Configuration Parameter Categories...................................................................................... 65 Connection and Authentication Parameters................................................................ 65 System Resource Consumption Parameters...............................................................65 Query Tuning Parameters........................................................................................... 66 Error Reporting and Logging Parameters................................................................... 68 System Monitoring Parameters................................................................................... 69 Runtime Statistics Collection Parameters....................................................................69 Automatic Statistics Collection Parameters.................................................................69 Client Connection Default Parameters........................................................................ 70 Lock Management Parameters....................................................................................70 Workload Management Parameters............................................................................ 70 External Table Parameters.......................................................................................... 71 Database Table Parameters........................................................................................71 Database and Tablespace/Filespace Parameters.......................................................71 Past PostgreSQL Version Compatibility Parameters...................................................71 Greenplum Array Configuration Parameters............................................................... 72 Greenplum Master and Segment Mirroring Parameters..............................................73 Greenplum Database Extension Parameters.............................................................. 73 Chapter 10: Enabling High Availability Features............................74 Overview of Greenplum Database High Availability...............................................................75 Overview of Segment Mirroring...................................................................................77 Overview of Master Mirroring...................................................................................... 79 Overview of Fault Detection and Recovery.................................................................80 Enabling Mirroring in Greenplum Database........................................................................... 81 Enabling Segment Mirroring........................................................................................ 81 Enabling Master Mirroring............................................................................................82 Detecting a Failed Segment...................................................................................................83 Enabling Alerts and Notifications.................................................................................84 Checking for Failed Segments.................................................................................... 84 Checking the Log Files for Failed Segments.............................................................. 85 Recovering a Failed Segment................................................................................................86