Pivotal™ Greenplum Database® Version 4.3
Total Page:16
File Type:pdf, Size:1020Kb
PRODUCT DOCUMENTATION Pivotal™ Greenplum Database® Version 4.3 Reference Guide Rev: A10 © 2015 Pivotal Software, Inc. Copyright Reference 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 July 2015 (4.3.5.3) 2 Contents Reference Guide Contents Chapter 1: Preface.....................................................................................10 About This Guide.............................................................................................................................. 11 About the Greenplum Database Documentation Set........................................................................12 Document Conventions..................................................................................................................... 13 Command Syntax Conventions.............................................................................................. 13 Getting Support................................................................................................................................. 14 Product information and Technical Support........................................................................... 14 Chapter 2: SQL Command Reference..................................................... 15 SQL Syntax Summary.......................................................................................................................18 ABORT...............................................................................................................................................41 ALTER AGGREGATE....................................................................................................................... 42 ALTER CONVERSION......................................................................................................................44 ALTER DATABASE...........................................................................................................................45 ALTER DOMAIN................................................................................................................................47 ALTER EXTERNAL TABLE.............................................................................................................. 49 ALTER FILESPACE.......................................................................................................................... 51 ALTER FUNCTION........................................................................................................................... 52 ALTER GROUP.................................................................................................................................54 ALTER INDEX................................................................................................................................... 55 ALTER LANGUAGE.......................................................................................................................... 57 ALTER OPERATOR..........................................................................................................................58 ALTER OPERATOR CLASS.............................................................................................................59 ALTER PROTOCOL..........................................................................................................................60 ALTER RESOURCE QUEUE............................................................................................................61 ALTER ROLE.................................................................................................................................... 64 ALTER SCHEMA...............................................................................................................................68 ALTER SEQUENCE..........................................................................................................................69 ALTER TABLE...................................................................................................................................71 ALTER TABLESPACE...................................................................................................................... 80 ALTER TYPE.....................................................................................................................................81 ALTER USER.................................................................................................................................... 82 ANALYZE...........................................................................................................................................83 BEGIN................................................................................................................................................86 CHECKPOINT................................................................................................................................... 88 CLOSE...............................................................................................................................................89 CLUSTER.......................................................................................................................................... 90 COMMENT........................................................................................................................................ 92 COMMIT............................................................................................................................................ 94 COPY.................................................................................................................................................95 CREATE AGGREGATE.................................................................................................................. 103 CREATE CAST............................................................................................................................... 107 CREATE CONVERSION.................................................................................................................110 CREATE DATABASE......................................................................................................................112 CREATE DOMAIN...........................................................................................................................114 CREATE EXTERNAL TABLE......................................................................................................... 116 CREATE FUNCTION...................................................................................................................... 124 CREATE GROUP............................................................................................................................129 3 Contents Reference Guide CREATE INDEX.............................................................................................................................. 130 CREATE LANGUAGE..................................................................................................................... 133 CREATE OPERATOR.....................................................................................................................136 CREATE OPERATOR CLASS........................................................................................................140 CREATE RESOURCE QUEUE.......................................................................................................144 CREATE ROLE............................................................................................................................... 148 CREATE RULE............................................................................................................................... 152 CREATE SCHEMA..........................................................................................................................154 CREATE SEQUENCE.....................................................................................................................156 CREATE TABLE..............................................................................................................................159 CREATE TABLE AS....................................................................................................................... 170 CREATE TABLESPACE..................................................................................................................174 CREATE TYPE................................................................................................................................176 CREATE USER............................................................................................................................... 181 CREATE VIEW................................................................................................................................182 DEALLOCATE................................................................................................................................