Skip to content

How to Get Partition Table DDL #1556

@adnanhamdussalam

Description

@adnanhamdussalam

Hi,

I can get the table DDL using below command but unable to see the create partition DDL in it.
Need your support in this regard.

pg_dump -d gpafiniti -t test.table1 --schema-only > 123.sql

OutPut:

CREATE TABLE test.table1 (
combinedbtn character varying(200) NOT NULL,
startdate date NOT NULL,

)
PARTITION BY RANGE (startdate) DISTRIBUTED BY (combinedbtn);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions