Table of Contents iv
Greenplum Database DBA Guide 4.2 - Contents
Viewing Existing Tablespaces and Filespaces ............................ 33
Dropping Tablespaces and Filespaces........................................ 33
Creating and Managing Schemas.................................................... 34
The Default “Public” Schema..................................................... 34
Creating a Schema ................................................................... 34
Schema Search Paths ............................................................... 34
Dropping a Schema .................................................................. 35
System Schemas ...................................................................... 35
Creating and Managing Tables........................................................ 35
Creating a Table ....................................................................... 35
Choosing the Table Storage Model.................................................. 39
Heap Storage............................................................................ 39
Append-Only Storage................................................................ 39
Choosing Row or Column-Oriented Storage .............................. 40
Using Compression (Append-Only Tables Only) ........................ 41
Checking the Compression and Distribution of an Append-Only Table
42
Support for Run-length Encoding .............................................. 43
Adding Column-level Compression ............................................ 43
Altering a Table ........................................................................ 48
Dropping a Table ...................................................................... 49
Partitioning Large Tables ................................................................ 50
Table Partitioning in Greenplum Database ................................ 51
Deciding on a Table Partitioning Strategy ................................. 51
Creating Partitioned Tables ....................................................... 52
Loading Partitioned Tables ........................................................ 55
Verifying Your Partition Strategy............................................... 56
Viewing Your Partition Design ................................................... 56
Maintaining Partitioned Tables .................................................. 57
Creating and Using Sequences ....................................................... 60
Creating a Sequence................................................................. 61
Using a Sequence ..................................................................... 61
Altering a Sequence.................................................................. 61
Dropping a Sequence................................................................ 61
Using Indexes in Greenplum Database ........................................... 61
Index Types.............................................................................. 63
Creating an Index ..................................................................... 64
Examining Index Usage ............................................................ 65
Managing Indexes..................................................................... 65
Dropping an Index .................................................................... 66
Creating and Managing Views......................................................... 66
Creating Views.......................................................................... 66
Dropping Views......................................................................... 66
Chapter 6: Managing Data .......................................................... 67
About Concurrency Control in Greenplum Database ....................... 67
Inserting Rows ............................................................................... 68
Updating Existing Rows .................................................................. 69
Deleting Rows ................................................................................ 69
Truncating a Table .................................................................... 69