Pivotal™ Greenplum Database® Version 4.3
Total Page:16
File Type:pdf, Size:1020Kb
PRODUCT DOCUMENTATION Pivotal™ Greenplum Database® Version 4.3 Administrator Guide Rev: A06 © 2015 Pivotal Software, Inc. Copyright Administrator Guide Notice Copyright Copyright © 2015 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 January 2015 (4.3.4.1) 2 Contents Administrator Guide Contents Preface: About This Guide...................................................................... viii About the Greenplum Database Documentation Set......................................................................... ix Document Conventions....................................................................................................................... x Text Conventions...................................................................................................................... x Command Syntax Conventions............................................................................................... xi Getting Support.................................................................................................................................. xii Product information and Technical Support............................................................................xii Part I: Greenplum Database Concepts....................................................13 Chapter 1: About the Greenplum Architecture............................... 14 About the Greenplum Master................................................................................................. 15 About the Greenplum Segments............................................................................................15 About the Greenplum Interconnect........................................................................................ 16 About Management and Monitoring Utilities.......................................................................... 17 About Parallel Data Loading.................................................................................................. 19 About Redundancy and Failover in Greenplum Database.....................................................20 Part II: Managing a Greenplum System.................................................. 22 Chapter 2: Starting and Stopping Greenplum Database................23 Starting Greenplum Database................................................................................................ 23 Restarting Greenplum Database............................................................................................ 23 Uploading Configuration File Changes Only.......................................................................... 23 Starting the Master in Maintenance Mode............................................................................. 24 Stopping Greenplum Database.............................................................................................. 24 Chapter 3: Accessing the Database................................................ 25 Establishing a Database Session...........................................................................................26 Supported Client Applications................................................................................................ 27 Greenplum Database Client Applications...............................................................................28 Connecting with psql.............................................................................................................. 29 pgAdmin III for Greenplum Database.................................................................................... 30 Installing pgAdmin III for Greenplum Database...........................................................31 Documentation for pgAdmin III for Greenplum Database............................................31 Performing Administrative Tasks with pgAdmin III...................................................... 31 Database Application Interfaces.............................................................................................33 Third-Party Client Tools..........................................................................................................34 Troubleshooting Connection Problems...................................................................................35 Chapter 4: Configuring the Greenplum System............................. 36 About Greenplum Master and Local Parameters...................................................................37 Setting Configuration Parameters.......................................................................................... 38 3 Contents Administrator Guide Setting a Local Configuration Parameter.................................................................... 38 Setting a Master Configuration Parameter.................................................................. 38 Viewing Server Configuration Parameter Settings................................................................. 40 Configuration Parameter Categories...................................................................................... 41 Runtime Statistics Collection Parameters....................................................................41 Automatic Statistics Collection Parameters.................................................................41 Lock Management Parameters....................................................................................41 Workload Management Parameters............................................................................ 42 External Table Parameters.......................................................................................... 42 Database Table Parameters........................................................................................42 Database and Tablespace/Filespace Parameters.......................................................42 Past PostgreSQL Version Compatibility Parameters...................................................43 Greenplum Master Mirroring Parameters.................................................................... 43 Greenplum Database Extension Parameters.............................................................. 43 Connection and Authentication Parameters................................................................ 43 System Resource Consumption Parameters...............................................................44 Query Tuning Parameters........................................................................................... 45 Error Reporting and Logging Parameters................................................................... 46 System Monitoring Parameters................................................................................... 47 Client Connection Default Parameters........................................................................ 47 Greenplum Array Configuration Parameters............................................................... 48 Chapter 5: Enabling High Availability Features..............................50 Overview of Greenplum Database High Availability...............................................................51 Overview of Segment Mirroring...................................................................................53 Overview of Master Mirroring...................................................................................... 54 Overview of Fault Detection and Recovery.................................................................54 Enabling Mirroring in Greenplum Database........................................................................... 56 Enabling Segment Mirroring........................................................................................ 56 Enabling Master Mirroring............................................................................................57 Detecting a Failed Segment...................................................................................................58 Enabling Alerts and Notifications.................................................................................59 Checking for Failed Segments.................................................................................... 59 Checking the Log Files................................................................................................60 Recovering a Failed Segment................................................................................................61 Recovering From Segment Failures............................................................................62 Recovering a Failed Master................................................................................................... 65 Restoring Master Mirroring After a Recovery..............................................................65 Chapter 6: Backing Up and Restoring Databases.......................... 67 Backup and Restore Operations...........................................................................................