clause fragment:
...
SUBPARTITION TEMPLATE
( SUBPARTITION "at" VALUES ('usa'),
...
gpbackup backs up the partitioned table, but gprestore returns an error when attempting to
restore the table.
Before performing a backup with gpbackup, you must ensure that partitioned tables do not
use any of these non-reserved keywords as a partition name:
ADD, ALTER, ALWAYS, AT, ATTRIBUTE, CATALOG, COMMENTS, CONFIGURATION,
CONFLICT, CONTINUE, CURRENT, DATA, DAY, DENY, DEPENDS, DICTIONARY,
DISCARD, DOCUMENT, DXL, EVENT, EXTENSION, FAMILY, FILESPACE, FILTER,
FULLSCAN, FUNCTIONS, HOUR, IDENTITY, IGNORE, IMPORT, INITPLAN, INLINE, LABEL,
LEAKPROOF, LOCKED, LOGGED, MAPPING, MATERIALIZED, METHOD, MINUTE,
MONTH, NOCREATEEXTTABLE, OFF, ORDERED, ORDINALITY, OVER, PARALLEL,
PARSER, PASSING, PLANS, POLICY, PROGRAM, RANDOMLY, READABLE, READS,
RECURSIVE, REF, REFRESH, REJECT, REPLICATED, ROOTPARTITION, SECOND,
SEQUENCES, SERVER, SKIP, SNAPSHOT, SQL, STANDALONE, STRIP, TABLES, TEXT,
TRANSFORM, TYPES, UNLOGGED, VALIDATION, VARYING, VIEWS, WEB,
WHITESPACE, WITHIN, WITHOUT, WRAPPER, WRITABLE, XML, YEAR, YES
A gprestore operation using the --redirect-schema option fails if gprestore attempts to
restore an index in a schema and the name of the index is the name of the schema followed
by a '.' (period). For example, this CREATE INDEX command creates the index named test.
on a table in the schema test. The index is in the schema test.
CREATE INDEX "test." ON test.mytbl USING btree (i);
If the index and table are backed up with gpbackup, restoring the backup with this gprestore
command fails because gprestore fails to restore the test. index.
gprestore --timestamp <timestamp> --redirect-schema foo2
Beginning with versions 4.3.33 and 5.19, Greenplum Database checks that the distribution
key for a table is a prefix of any unique index key. This policy is not in place for Greenplum
Database versions before 4.3.33 or 5.19, and it is possible to create a backup of a database
from one of these earlier versions with unique indexes that do not comply with the policy.
When you restore such a backup to a Greenplum Database version that does enforce the
policy:
If the unique index is for a primary key constraint, Greenplum Database automatically
modifies the table's distribution policy if the table has no data.
In other cases, creating a unique index with a key that does not begin with the table's
distribution key fails. This issue affects restoring backups made from Greenplum
Database 4.3.32.0, 5.18.0, or earlier to a Greenplum Database version 4.3.33.0,
5.19.0, 6.0, or later system. The issue affects the gprestore, gpdbrestore, and
pg_restore utilities.