Common Greenplum Queries and Commands

Data Export and Import Greenplum provides several ways to export and import data using standard PostgreSQL tools like pg_dump and psql. Here are some common commands: Export only table structure:``` pg_dump -U gpadmin -d datawarehouse -w -s > /tmp/tab.sql Export specific table structure:``` pg_dump -U postgres -d postgres -w -s -t test_ta ...

Posted on Thu, 11 Jun 2026 18:47:47 +0000 by jandrews

Greenplum Automatic Partition Management: A Comprehensive Guide

Greenplum 6 provides robust partitioning capabilities that allow for efficient data management. This guide presents an enhanced automatic partitioning solution that supports daily, monthly, and yearly partitioning strategies with dynamic future partition creation. Partition Management Function The following function automates partition creatio ...

Posted on Wed, 10 Jun 2026 16:14:27 +0000 by leetee

Loading the tablefunc Extension for Pivot Operations in Greenplum

Overview The tablefunc extension provides pivot (row-to-column) capabilities in PostgreSQL-based systems like Greenplum. Note that this extension has only been validated in test environments—use in production at your own risk. Step 1: Download Matching PostgreSQL Source Identify the exact PostgreSQL kernel vertion used by your Greenplum install ...

Posted on Sat, 30 May 2026 22:21:51 +0000 by csousley

Understanding Greenplum EXPLAIN ANALYZE Output and Detailed Analysis Parameters

Understanding Greenplum EXPLAIN ANALYZE Output and Detailed Analysis Parameters Greenplum's EXPLAIN ANALYZE provides valuable insights into query execution performance. This article explores how to interpret EXPLAIN ANALYZE output and introduces two parameters that offer more detailed information about query execution. Background When analyzing ...

Posted on Fri, 15 May 2026 11:21:45 +0000 by stuffradio

Greenplum Database Resource Queue Configuration and Performance Tuning

Overview Resource queues in Greenplum Database provide workload management by controlling resource allocation for non-superuser roles. Superusers bypass these restrictions entirely, executing queries without queue limitations. Resource Queue Creation Syntax CREATE RESOURCE QUEUE queue_name WITH (attribute=value [, ...]) Supported attributes: ...

Posted on Thu, 14 May 2026 05:21:04 +0000 by fragger