forked from huawei/openGauss-server
: Do not displaye the partition LOCAL index when \d+(\d+ \dS) a table.
Offering: openGaussDev More detail: Do not displaye the partition LOCAL index when \d+(\d+ \dS) a table. Match-id-c339646cb2c3610ae13ce1391c5e4ec9e997a929
This commit is contained in:
parent
90e7a6b7f6
commit
5e577476a4
|
|
@ -232,9 +232,9 @@ static char* pg_get_triggerdef_worker(Oid trigid, bool pretty);
|
|||
static void decompile_column_index_array(Datum column_index_array, Oid relId, StringInfo buf);
|
||||
static char* pg_get_ruledef_worker(Oid ruleoid, int prettyFlags);
|
||||
static char *pg_get_indexdef_worker(Oid indexrelid, int colno, const Oid *excludeOps, bool attrsOnly, bool showTblSpc,
|
||||
int prettyFlags, bool dumpSchemaOnly = false, bool showSubpartitionLocal = true);
|
||||
int prettyFlags, bool dumpSchemaOnly = false, bool showPartitionLocal = true, bool showSubpartitionLocal = true);
|
||||
static void pg_get_indexdef_partitions(Oid indexrelid, Form_pg_index idxrec, bool showTblSpc, StringInfoData *buf,
|
||||
bool dumpSchemaOnly, bool showSubpartitionLocal);
|
||||
bool dumpSchemaOnly, bool showPartitionLocal, bool showSubpartitionLocal);
|
||||
static char* pg_get_constraintdef_worker(Oid constraintId, bool fullCommand, int prettyFlags);
|
||||
static text* pg_get_expr_worker(text* expr, Oid relid, const char* relname, int prettyFlags);
|
||||
static int print_function_arguments(StringInfo buf, HeapTuple proctup, bool print_table_args, bool print_defaults);
|
||||
|
|
@ -2960,7 +2960,7 @@ Datum pg_get_indexdef_for_dump(PG_FUNCTION_ARGS)
|
|||
bool dumpSchemaOnly = PG_GETARG_BOOL(1);
|
||||
|
||||
PG_RETURN_TEXT_P(string_to_text(pg_get_indexdef_worker(indexrelid, 0, NULL, false, true, 0, dumpSchemaOnly,
|
||||
false)));
|
||||
true, false)));
|
||||
}
|
||||
|
||||
Datum pg_get_indexdef_ext(PG_FUNCTION_ARGS)
|
||||
|
|
@ -2972,7 +2972,7 @@ Datum pg_get_indexdef_ext(PG_FUNCTION_ARGS)
|
|||
|
||||
prettyFlags = pretty ? (PRETTYFLAG_PAREN | PRETTYFLAG_INDENT) : 0;
|
||||
PG_RETURN_TEXT_P(string_to_text(pg_get_indexdef_worker(indexrelid, colno, NULL, colno != 0, true, prettyFlags,
|
||||
false, false)));
|
||||
false, false, false)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -3051,7 +3051,7 @@ static void GetIndexdefForIntervalPartTabDumpSchemaOnly(Oid indexrelid, RangePar
|
|||
}
|
||||
|
||||
static void pg_get_indexdef_partitions(Oid indexrelid, Form_pg_index idxrec, bool showTblSpc, StringInfoData *buf,
|
||||
bool dumpSchemaOnly, bool showSubpartitionLocal)
|
||||
bool dumpSchemaOnly, bool showPartitionLocal, bool showSubpartitionLocal)
|
||||
{
|
||||
Oid relid = idxrec->indrelid;
|
||||
/*
|
||||
|
|
@ -3067,12 +3067,12 @@ static void pg_get_indexdef_partitions(Oid indexrelid, Form_pg_index idxrec, boo
|
|||
|
||||
appendStringInfo(buf, " LOCAL");
|
||||
/*
|
||||
* The LOCAL index information of the subpartition table is more.
|
||||
* The LOCAL index information of the partition and subpartition table is more.
|
||||
* And the meta-statements (e.g. \d \d+ \dS) are used more.
|
||||
* Therefore, when the meta-statement is called, the subpartition LOCAL index information is not displayed.
|
||||
* Therefore, when the meta-statement is called, the LOCAL index information is not displayed.
|
||||
*/
|
||||
bool isSub = RelationIsSubPartitioned(rel);
|
||||
if (isSub && !showSubpartitionLocal) {
|
||||
if ((!isSub && !showPartitionLocal) || (isSub && !showSubpartitionLocal)) {
|
||||
heap_close(rel, NoLock);
|
||||
return;
|
||||
}
|
||||
|
|
@ -3112,7 +3112,7 @@ static void pg_get_indexdef_partitions(Oid indexrelid, Form_pg_index idxrec, boo
|
|||
* NULL then it points to an array of exclusion operator OIDs.
|
||||
*/
|
||||
static char *pg_get_indexdef_worker(Oid indexrelid, int colno, const Oid *excludeOps, bool attrsOnly, bool showTblSpc,
|
||||
int prettyFlags, bool dumpSchemaOnly, bool showSubpartitionLocal)
|
||||
int prettyFlags, bool dumpSchemaOnly, bool showPartitionLocal, bool showSubpartitionLocal)
|
||||
{
|
||||
/* might want a separate isConstraint parameter later */
|
||||
bool isConstraint = (excludeOps != NULL);
|
||||
|
|
@ -3316,7 +3316,8 @@ static char *pg_get_indexdef_worker(Oid indexrelid, int colno, const Oid *exclud
|
|||
|
||||
if (idxrelrec->parttype == PARTTYPE_PARTITIONED_RELATION &&
|
||||
idxrelrec->relkind != RELKIND_GLOBAL_INDEX) {
|
||||
pg_get_indexdef_partitions(indexrelid, idxrec, showTblSpc, &buf, dumpSchemaOnly, showSubpartitionLocal);
|
||||
pg_get_indexdef_partitions(indexrelid, idxrec, showTblSpc, &buf, dumpSchemaOnly,
|
||||
showPartitionLocal, showSubpartitionLocal);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -105,8 +105,8 @@ create unique index on part_t1 using cbtree (a, c) local;
|
|||
c | integer |
|
||||
d | integer |
|
||||
Indexes:
|
||||
"part_t1_pkey" PRIMARY KEY, cbtree (a, b) LOCAL(PARTITION p1_a_b_idx, PARTITION p2_a_b_idx, PARTITION p3_a_b_idx, PARTITION p4_a_b_idx) TABLESPACE pg_default
|
||||
"part_t1_a_c_idx" UNIQUE, cbtree (a, c) LOCAL(PARTITION p1_a_c_idx, PARTITION p2_a_c_idx, PARTITION p3_a_c_idx, PARTITION p4_a_c_idx) TABLESPACE pg_default
|
||||
"part_t1_pkey" PRIMARY KEY, cbtree (a, b) LOCAL TABLESPACE pg_default
|
||||
"part_t1_a_c_idx" UNIQUE, cbtree (a, c) LOCAL TABLESPACE pg_default
|
||||
Partition By RANGE(a)
|
||||
Number of partitions: 4 (View pg_partition to check each partition range.)
|
||||
|
||||
|
|
|
|||
|
|
@ -51,8 +51,8 @@ create index global_inventory_table_index2 on inventory_table(INV_ITEM_SK) globa
|
|||
Indexes:
|
||||
"global_inventory_table_index1" btree (inv_item_sk) TABLESPACE pg_default
|
||||
"global_inventory_table_index2" btree (inv_item_sk) TABLESPACE pg_default
|
||||
"inventory_table_index1" btree (inv_date_sk) LOCAL(PARTITION p1_inv_date_sk_idx, PARTITION p2_inv_date_sk_idx, PARTITION p3_inv_date_sk_idx, PARTITION p4_inv_date_sk_idx, PARTITION p5_inv_date_sk_idx, PARTITION p6_inv_date_sk_idx, PARTITION p7_inv_date_sk_idx) TABLESPACE pg_default
|
||||
"inventory_table_index2" btree (inv_date_sk) LOCAL(PARTITION p1_inv_date_sk_idx, PARTITION p2_inv_date_sk_idx, PARTITION p3_inv_date_sk_idx, PARTITION p4_inv_date_sk_idx, PARTITION p5_inv_date_sk_idx, PARTITION p6_inv_date_sk_idx, PARTITION p7_inv_date_sk_idx) TABLESPACE pg_default
|
||||
"inventory_table_index1" btree (inv_date_sk) LOCAL TABLESPACE pg_default
|
||||
"inventory_table_index2" btree (inv_date_sk) LOCAL TABLESPACE pg_default
|
||||
Partition By RANGE(inv_date_sk)
|
||||
Number of partitions: 7 (View pg_partition to check each partition range.)
|
||||
Has OIDs: no
|
||||
|
|
@ -70,8 +70,8 @@ cluster inventory_table using global_inventory_table_index1;
|
|||
Indexes:
|
||||
"global_inventory_table_index1" btree (inv_item_sk) TABLESPACE pg_default CLUSTER
|
||||
"global_inventory_table_index2" btree (inv_item_sk) TABLESPACE pg_default
|
||||
"inventory_table_index1" btree (inv_date_sk) LOCAL(PARTITION p1_inv_date_sk_idx, PARTITION p2_inv_date_sk_idx, PARTITION p3_inv_date_sk_idx, PARTITION p4_inv_date_sk_idx, PARTITION p5_inv_date_sk_idx, PARTITION p6_inv_date_sk_idx, PARTITION p7_inv_date_sk_idx) TABLESPACE pg_default
|
||||
"inventory_table_index2" btree (inv_date_sk) LOCAL(PARTITION p1_inv_date_sk_idx, PARTITION p2_inv_date_sk_idx, PARTITION p3_inv_date_sk_idx, PARTITION p4_inv_date_sk_idx, PARTITION p5_inv_date_sk_idx, PARTITION p6_inv_date_sk_idx, PARTITION p7_inv_date_sk_idx) TABLESPACE pg_default
|
||||
"inventory_table_index1" btree (inv_date_sk) LOCAL TABLESPACE pg_default
|
||||
"inventory_table_index2" btree (inv_date_sk) LOCAL TABLESPACE pg_default
|
||||
Partition By RANGE(inv_date_sk)
|
||||
Number of partitions: 7 (View pg_partition to check each partition range.)
|
||||
Has OIDs: no
|
||||
|
|
@ -89,8 +89,8 @@ cluster inventory_table PARTITION(P3) USING inventory_table_index1;
|
|||
Indexes:
|
||||
"global_inventory_table_index1" btree (inv_item_sk) TABLESPACE pg_default
|
||||
"global_inventory_table_index2" btree (inv_item_sk) TABLESPACE pg_default
|
||||
"inventory_table_index1" btree (inv_date_sk) LOCAL(PARTITION p1_inv_date_sk_idx, PARTITION p2_inv_date_sk_idx, PARTITION p3_inv_date_sk_idx, PARTITION p4_inv_date_sk_idx, PARTITION p5_inv_date_sk_idx, PARTITION p6_inv_date_sk_idx, PARTITION p7_inv_date_sk_idx) TABLESPACE pg_default CLUSTER
|
||||
"inventory_table_index2" btree (inv_date_sk) LOCAL(PARTITION p1_inv_date_sk_idx, PARTITION p2_inv_date_sk_idx, PARTITION p3_inv_date_sk_idx, PARTITION p4_inv_date_sk_idx, PARTITION p5_inv_date_sk_idx, PARTITION p6_inv_date_sk_idx, PARTITION p7_inv_date_sk_idx) TABLESPACE pg_default
|
||||
"inventory_table_index1" btree (inv_date_sk) LOCAL TABLESPACE pg_default CLUSTER
|
||||
"inventory_table_index2" btree (inv_date_sk) LOCAL TABLESPACE pg_default
|
||||
Partition By RANGE(inv_date_sk)
|
||||
Number of partitions: 7 (View pg_partition to check each partition range.)
|
||||
Has OIDs: no
|
||||
|
|
@ -108,8 +108,8 @@ cluster inventory_table using global_inventory_table_index1;
|
|||
Indexes:
|
||||
"global_inventory_table_index1" btree (inv_item_sk) TABLESPACE pg_default CLUSTER
|
||||
"global_inventory_table_index2" btree (inv_item_sk) TABLESPACE pg_default
|
||||
"inventory_table_index1" btree (inv_date_sk) LOCAL(PARTITION p1_inv_date_sk_idx, PARTITION p2_inv_date_sk_idx, PARTITION p3_inv_date_sk_idx, PARTITION p4_inv_date_sk_idx, PARTITION p5_inv_date_sk_idx, PARTITION p6_inv_date_sk_idx, PARTITION p7_inv_date_sk_idx) TABLESPACE pg_default
|
||||
"inventory_table_index2" btree (inv_date_sk) LOCAL(PARTITION p1_inv_date_sk_idx, PARTITION p2_inv_date_sk_idx, PARTITION p3_inv_date_sk_idx, PARTITION p4_inv_date_sk_idx, PARTITION p5_inv_date_sk_idx, PARTITION p6_inv_date_sk_idx, PARTITION p7_inv_date_sk_idx) TABLESPACE pg_default
|
||||
"inventory_table_index1" btree (inv_date_sk) LOCAL TABLESPACE pg_default
|
||||
"inventory_table_index2" btree (inv_date_sk) LOCAL TABLESPACE pg_default
|
||||
Partition By RANGE(inv_date_sk)
|
||||
Number of partitions: 7 (View pg_partition to check each partition range.)
|
||||
Has OIDs: no
|
||||
|
|
@ -127,8 +127,8 @@ alter table inventory_table cluster on inventory_table_index1;
|
|||
Indexes:
|
||||
"global_inventory_table_index1" btree (inv_item_sk) TABLESPACE pg_default
|
||||
"global_inventory_table_index2" btree (inv_item_sk) TABLESPACE pg_default
|
||||
"inventory_table_index1" btree (inv_date_sk) LOCAL(PARTITION p1_inv_date_sk_idx, PARTITION p2_inv_date_sk_idx, PARTITION p3_inv_date_sk_idx, PARTITION p4_inv_date_sk_idx, PARTITION p5_inv_date_sk_idx, PARTITION p6_inv_date_sk_idx, PARTITION p7_inv_date_sk_idx) TABLESPACE pg_default CLUSTER
|
||||
"inventory_table_index2" btree (inv_date_sk) LOCAL(PARTITION p1_inv_date_sk_idx, PARTITION p2_inv_date_sk_idx, PARTITION p3_inv_date_sk_idx, PARTITION p4_inv_date_sk_idx, PARTITION p5_inv_date_sk_idx, PARTITION p6_inv_date_sk_idx, PARTITION p7_inv_date_sk_idx) TABLESPACE pg_default
|
||||
"inventory_table_index1" btree (inv_date_sk) LOCAL TABLESPACE pg_default CLUSTER
|
||||
"inventory_table_index2" btree (inv_date_sk) LOCAL TABLESPACE pg_default
|
||||
Partition By RANGE(inv_date_sk)
|
||||
Number of partitions: 7 (View pg_partition to check each partition range.)
|
||||
Has OIDs: no
|
||||
|
|
@ -146,8 +146,8 @@ alter table inventory_table cluster on global_inventory_table_index1;
|
|||
Indexes:
|
||||
"global_inventory_table_index1" btree (inv_item_sk) TABLESPACE pg_default CLUSTER
|
||||
"global_inventory_table_index2" btree (inv_item_sk) TABLESPACE pg_default
|
||||
"inventory_table_index1" btree (inv_date_sk) LOCAL(PARTITION p1_inv_date_sk_idx, PARTITION p2_inv_date_sk_idx, PARTITION p3_inv_date_sk_idx, PARTITION p4_inv_date_sk_idx, PARTITION p5_inv_date_sk_idx, PARTITION p6_inv_date_sk_idx, PARTITION p7_inv_date_sk_idx) TABLESPACE pg_default
|
||||
"inventory_table_index2" btree (inv_date_sk) LOCAL(PARTITION p1_inv_date_sk_idx, PARTITION p2_inv_date_sk_idx, PARTITION p3_inv_date_sk_idx, PARTITION p4_inv_date_sk_idx, PARTITION p5_inv_date_sk_idx, PARTITION p6_inv_date_sk_idx, PARTITION p7_inv_date_sk_idx) TABLESPACE pg_default
|
||||
"inventory_table_index1" btree (inv_date_sk) LOCAL TABLESPACE pg_default
|
||||
"inventory_table_index2" btree (inv_date_sk) LOCAL TABLESPACE pg_default
|
||||
Partition By RANGE(inv_date_sk)
|
||||
Number of partitions: 7 (View pg_partition to check each partition range.)
|
||||
Has OIDs: no
|
||||
|
|
@ -165,8 +165,8 @@ alter table inventory_table cluster on global_inventory_table_index2;
|
|||
Indexes:
|
||||
"global_inventory_table_index1" btree (inv_item_sk) TABLESPACE pg_default
|
||||
"global_inventory_table_index2" btree (inv_item_sk) TABLESPACE pg_default CLUSTER
|
||||
"inventory_table_index1" btree (inv_date_sk) LOCAL(PARTITION p1_inv_date_sk_idx, PARTITION p2_inv_date_sk_idx, PARTITION p3_inv_date_sk_idx, PARTITION p4_inv_date_sk_idx, PARTITION p5_inv_date_sk_idx, PARTITION p6_inv_date_sk_idx, PARTITION p7_inv_date_sk_idx) TABLESPACE pg_default
|
||||
"inventory_table_index2" btree (inv_date_sk) LOCAL(PARTITION p1_inv_date_sk_idx, PARTITION p2_inv_date_sk_idx, PARTITION p3_inv_date_sk_idx, PARTITION p4_inv_date_sk_idx, PARTITION p5_inv_date_sk_idx, PARTITION p6_inv_date_sk_idx, PARTITION p7_inv_date_sk_idx) TABLESPACE pg_default
|
||||
"inventory_table_index1" btree (inv_date_sk) LOCAL TABLESPACE pg_default
|
||||
"inventory_table_index2" btree (inv_date_sk) LOCAL TABLESPACE pg_default
|
||||
Partition By RANGE(inv_date_sk)
|
||||
Number of partitions: 7 (View pg_partition to check each partition range.)
|
||||
Has OIDs: no
|
||||
|
|
@ -184,8 +184,8 @@ cluster inventory_table;
|
|||
Indexes:
|
||||
"global_inventory_table_index1" btree (inv_item_sk) TABLESPACE pg_default
|
||||
"global_inventory_table_index2" btree (inv_item_sk) TABLESPACE pg_default CLUSTER
|
||||
"inventory_table_index1" btree (inv_date_sk) LOCAL(PARTITION p1_inv_date_sk_idx, PARTITION p2_inv_date_sk_idx, PARTITION p3_inv_date_sk_idx, PARTITION p4_inv_date_sk_idx, PARTITION p5_inv_date_sk_idx, PARTITION p6_inv_date_sk_idx, PARTITION p7_inv_date_sk_idx) TABLESPACE pg_default
|
||||
"inventory_table_index2" btree (inv_date_sk) LOCAL(PARTITION p1_inv_date_sk_idx, PARTITION p2_inv_date_sk_idx, PARTITION p3_inv_date_sk_idx, PARTITION p4_inv_date_sk_idx, PARTITION p5_inv_date_sk_idx, PARTITION p6_inv_date_sk_idx, PARTITION p7_inv_date_sk_idx) TABLESPACE pg_default
|
||||
"inventory_table_index1" btree (inv_date_sk) LOCAL TABLESPACE pg_default
|
||||
"inventory_table_index2" btree (inv_date_sk) LOCAL TABLESPACE pg_default
|
||||
Partition By RANGE(inv_date_sk)
|
||||
Number of partitions: 7 (View pg_partition to check each partition range.)
|
||||
Has OIDs: no
|
||||
|
|
@ -203,8 +203,8 @@ cluster inventory_table using global_inventory_table_index1;
|
|||
Indexes:
|
||||
"global_inventory_table_index1" btree (inv_item_sk) TABLESPACE pg_default CLUSTER
|
||||
"global_inventory_table_index2" btree (inv_item_sk) TABLESPACE pg_default
|
||||
"inventory_table_index1" btree (inv_date_sk) LOCAL(PARTITION p1_inv_date_sk_idx, PARTITION p2_inv_date_sk_idx, PARTITION p3_inv_date_sk_idx, PARTITION p4_inv_date_sk_idx, PARTITION p5_inv_date_sk_idx, PARTITION p6_inv_date_sk_idx, PARTITION p7_inv_date_sk_idx) TABLESPACE pg_default
|
||||
"inventory_table_index2" btree (inv_date_sk) LOCAL(PARTITION p1_inv_date_sk_idx, PARTITION p2_inv_date_sk_idx, PARTITION p3_inv_date_sk_idx, PARTITION p4_inv_date_sk_idx, PARTITION p5_inv_date_sk_idx, PARTITION p6_inv_date_sk_idx, PARTITION p7_inv_date_sk_idx) TABLESPACE pg_default
|
||||
"inventory_table_index1" btree (inv_date_sk) LOCAL TABLESPACE pg_default
|
||||
"inventory_table_index2" btree (inv_date_sk) LOCAL TABLESPACE pg_default
|
||||
Partition By RANGE(inv_date_sk)
|
||||
Number of partitions: 7 (View pg_partition to check each partition range.)
|
||||
Has OIDs: no
|
||||
|
|
@ -222,8 +222,8 @@ cluster inventory_table;
|
|||
Indexes:
|
||||
"global_inventory_table_index1" btree (inv_item_sk) TABLESPACE pg_default CLUSTER
|
||||
"global_inventory_table_index2" btree (inv_item_sk) TABLESPACE pg_default
|
||||
"inventory_table_index1" btree (inv_date_sk) LOCAL(PARTITION p1_inv_date_sk_idx, PARTITION p2_inv_date_sk_idx, PARTITION p3_inv_date_sk_idx, PARTITION p4_inv_date_sk_idx, PARTITION p5_inv_date_sk_idx, PARTITION p6_inv_date_sk_idx, PARTITION p7_inv_date_sk_idx) TABLESPACE pg_default
|
||||
"inventory_table_index2" btree (inv_date_sk) LOCAL(PARTITION p1_inv_date_sk_idx, PARTITION p2_inv_date_sk_idx, PARTITION p3_inv_date_sk_idx, PARTITION p4_inv_date_sk_idx, PARTITION p5_inv_date_sk_idx, PARTITION p6_inv_date_sk_idx, PARTITION p7_inv_date_sk_idx) TABLESPACE pg_default
|
||||
"inventory_table_index1" btree (inv_date_sk) LOCAL TABLESPACE pg_default
|
||||
"inventory_table_index2" btree (inv_date_sk) LOCAL TABLESPACE pg_default
|
||||
Partition By RANGE(inv_date_sk)
|
||||
Number of partitions: 7 (View pg_partition to check each partition range.)
|
||||
Has OIDs: no
|
||||
|
|
|
|||
|
|
@ -56,9 +56,9 @@ Indexes:
|
|||
"gpi_table1_c1_tableoid_idx" btree (c1) TABLESPACE pg_default
|
||||
"idx10_gpi_table1" btree (c1) TABLESPACE pg_default
|
||||
"idx1_gpi_table1" btree (c1) TABLESPACE pg_default
|
||||
"idx3_gpi_table1" btree (c2) LOCAL(PARTITION p0_gpi_table1_c2_idx, PARTITION p1_gpi_table1_c2_idx, PARTITION p2_gpi_table1_c2_idx, PARTITION p3_gpi_table1_c2_idx) TABLESPACE pg_default
|
||||
"idx4_gpi_table1" btree ((c1 + 10)) LOCAL(PARTITION p0_gpi_table1_expr_idx, PARTITION p1_gpi_table1_expr_idx, PARTITION p2_gpi_table1_expr_idx, PARTITION p3_gpi_table1_expr_idx) TABLESPACE pg_default
|
||||
"idx5_gpi_table1" btree (c1, c2) LOCAL(PARTITION p0_gpi_table1_c1_c2_idx, PARTITION p1_gpi_table1_c1_c2_idx, PARTITION p2_gpi_table1_c1_c2_idx, PARTITION p3_gpi_table1_c1_c2_idx) TABLESPACE pg_default
|
||||
"idx3_gpi_table1" btree (c2) LOCAL TABLESPACE pg_default
|
||||
"idx4_gpi_table1" btree ((c1 + 10)) LOCAL TABLESPACE pg_default
|
||||
"idx5_gpi_table1" btree (c1, c2) LOCAL TABLESPACE pg_default
|
||||
Partition By RANGE(c1)
|
||||
Number of partitions: 4 (View pg_partition to check each partition range.)
|
||||
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ SELECT p1.relname, p1.parttype, p1.partstrategy, p1.relfilenode!=0 hasfilenode,
|
|||
amount_sold | numeric(10,2) | | main | |
|
||||
Indexes:
|
||||
"range_sales_pkey" PRIMARY KEY, btree (customer_id) TABLESPACE pg_default
|
||||
"range_sales_idx" btree (product_id) LOCAL(PARTITION time_2008_product_id_idx, PARTITION time_2009_product_id_idx, PARTITION time_2010_product_id_idx, PARTITION time_2011_product_id_idx, PARTITION time_2012_product_id_idx, PARTITION time_end_product_id_idx) TABLESPACE pg_default
|
||||
"range_sales_idx" btree (product_id) LOCAL TABLESPACE pg_default
|
||||
Partition By RANGE(time_id)
|
||||
Number of partitions: 6 (View pg_partition to check each partition range.)
|
||||
Has OIDs: no
|
||||
|
|
@ -177,7 +177,7 @@ SELECT p1.relname, p1.parttype, p1.partstrategy, p1.relfilenode!=0 hasfilenode,
|
|||
amount_sold | numeric(10,2) | | main | |
|
||||
Indexes:
|
||||
"range_sales_pkey" PRIMARY KEY, btree (customer_id) TABLESPACE pg_default UNUSABLE
|
||||
"range_sales_idx" btree (product_id) LOCAL(PARTITION time_2008_product_id_idx, PARTITION time_2010_product_id_idx, PARTITION time_end_product_id_idx) TABLESPACE pg_default
|
||||
"range_sales_idx" btree (product_id) LOCAL TABLESPACE pg_default
|
||||
Partition By RANGE(time_id)
|
||||
Number of partitions: 3 (View pg_partition to check each partition range.)
|
||||
Has OIDs: no
|
||||
|
|
@ -286,7 +286,7 @@ SELECT p1.relname, p1.parttype, p1.partstrategy, p1.relfilenode!=0 hasfilenode,
|
|||
amount_sold | numeric(10,2) | | main | |
|
||||
Indexes:
|
||||
"range2_sales_pkey" PRIMARY KEY, btree (customer_id) TABLESPACE pg_default
|
||||
"range2_sales_idx" btree (product_id) LOCAL(PARTITION time_2008_product_id_idx, PARTITION time_2009_product_id_idx, PARTITION time_2010_product_id_idx, PARTITION time_2011_product_id_idx, PARTITION time_2012_product_id_idx, PARTITION time_end_product_id_idx) TABLESPACE pg_default
|
||||
"range2_sales_idx" btree (product_id) LOCAL TABLESPACE pg_default
|
||||
Partition By RANGE(time_id, product_id)
|
||||
Number of partitions: 6 (View pg_partition to check each partition range.)
|
||||
Has OIDs: no
|
||||
|
|
@ -358,7 +358,7 @@ SELECT p1.relname, p1.parttype, p1.partstrategy, p1.relfilenode!=0 hasfilenode,
|
|||
amount_sold | numeric(10,2) | | main | |
|
||||
Indexes:
|
||||
"range2_sales_pkey" PRIMARY KEY, btree (customer_id) TABLESPACE pg_default UNUSABLE
|
||||
"range2_sales_idx" btree (product_id) LOCAL(PARTITION time_2008_product_id_idx, PARTITION time_2010_product_id_idx, PARTITION time_end_product_id_idx) TABLESPACE pg_default
|
||||
"range2_sales_idx" btree (product_id) LOCAL TABLESPACE pg_default
|
||||
Partition By RANGE(time_id, product_id)
|
||||
Number of partitions: 3 (View pg_partition to check each partition range.)
|
||||
Has OIDs: no
|
||||
|
|
@ -451,7 +451,7 @@ SELECT p1.relname, p1.parttype, p1.partstrategy, p1.relfilenode!=0 hasfilenode,
|
|||
amount_sold | numeric(10,2) | | main | |
|
||||
Indexes:
|
||||
"interval_sales_pkey" PRIMARY KEY, btree (customer_id) TABLESPACE pg_default
|
||||
"interval_sales_idx" btree (product_id) LOCAL(PARTITION time_2008_product_id_idx, PARTITION time_2009_product_id_idx, PARTITION time_2010_product_id_idx, PARTITION sys_p1_product_id_idx) TABLESPACE pg_default
|
||||
"interval_sales_idx" btree (product_id) LOCAL TABLESPACE pg_default
|
||||
Partition By RANGE(time_id) INTERVAL('1 year')
|
||||
Number of partitions: 4 (View pg_partition to check each partition range.)
|
||||
Has OIDs: no
|
||||
|
|
@ -513,7 +513,7 @@ SELECT p1.relname, p1.parttype, p1.partstrategy, p1.relfilenode!=0 hasfilenode,
|
|||
amount_sold | numeric(10,2) | | main | |
|
||||
Indexes:
|
||||
"interval_sales_pkey" PRIMARY KEY, btree (customer_id) TABLESPACE pg_default UNUSABLE
|
||||
"interval_sales_idx" btree (product_id) LOCAL(PARTITION time_2008_product_id_idx, PARTITION time_2010_product_id_idx) TABLESPACE pg_default
|
||||
"interval_sales_idx" btree (product_id) LOCAL TABLESPACE pg_default
|
||||
Partition By RANGE(time_id) INTERVAL('1 year')
|
||||
Number of partitions: 2 (View pg_partition to check each partition range.)
|
||||
Has OIDs: no
|
||||
|
|
@ -625,7 +625,7 @@ SELECT p1.relname, p1.parttype, p1.partstrategy, p1.relfilenode!=0 hasfilenode,
|
|||
amount_sold | numeric(10,2) | | main | |
|
||||
Indexes:
|
||||
"list_sales_pkey" PRIMARY KEY, btree (customer_id) TABLESPACE pg_default
|
||||
"list_sales_idx" btree (product_id) LOCAL(PARTITION channel_default_product_id_idx, PARTITION channel5_product_id_idx, PARTITION channel4_product_id_idx, PARTITION channel3_product_id_idx, PARTITION channel2_product_id_idx, PARTITION channel1_product_id_idx) TABLESPACE pg_default
|
||||
"list_sales_idx" btree (product_id) LOCAL TABLESPACE pg_default
|
||||
Partition By LIST(channel_id)
|
||||
Number of partitions: 6 (View pg_partition to check each partition range.)
|
||||
Has OIDs: no
|
||||
|
|
@ -697,7 +697,7 @@ SELECT p1.relname, p1.parttype, p1.partstrategy, p1.relfilenode!=0 hasfilenode,
|
|||
amount_sold | numeric(10,2) | | main | |
|
||||
Indexes:
|
||||
"list_sales_pkey" PRIMARY KEY, btree (customer_id) TABLESPACE pg_default UNUSABLE
|
||||
"list_sales_idx" btree (product_id) LOCAL(PARTITION channel5_product_id_idx, PARTITION channel4_product_id_idx, PARTITION channel1_product_id_idx) TABLESPACE pg_default
|
||||
"list_sales_idx" btree (product_id) LOCAL TABLESPACE pg_default
|
||||
Partition By LIST(channel_id)
|
||||
Number of partitions: 3 (View pg_partition to check each partition range.)
|
||||
Has OIDs: no
|
||||
|
|
@ -798,7 +798,7 @@ SELECT p1.relname, p1.parttype, p1.partstrategy, p1.relfilenode!=0 hasfilenode,
|
|||
amount_sold | numeric(10,2) | | main | |
|
||||
Indexes:
|
||||
"hash_sales_pkey" PRIMARY KEY, btree (customer_id) TABLESPACE pg_default
|
||||
"hash_sales_idx" btree (product_id) LOCAL(PARTITION product4_product_id_idx, PARTITION product3_product_id_idx, PARTITION product2_product_id_idx, PARTITION product1_product_id_idx) TABLESPACE pg_default
|
||||
"hash_sales_idx" btree (product_id) LOCAL TABLESPACE pg_default
|
||||
Partition By HASH(product_id)
|
||||
Number of partitions: 4 (View pg_partition to check each partition range.)
|
||||
Has OIDs: no
|
||||
|
|
@ -873,7 +873,7 @@ SELECT p1.relname, p1.parttype, p1.partstrategy, p1.relfilenode!=0 hasfilenode,
|
|||
amount_sold | numeric(10,2) | | main | |
|
||||
Indexes:
|
||||
"hash_sales_pkey" PRIMARY KEY, btree (customer_id) TABLESPACE pg_default
|
||||
"hash_sales_idx" btree (product_id) LOCAL(PARTITION product4_product_id_idx, PARTITION product3_product_id_idx, PARTITION product2_product_id_idx, PARTITION product1_product_id_idx) TABLESPACE pg_default
|
||||
"hash_sales_idx" btree (product_id) LOCAL TABLESPACE pg_default
|
||||
Partition By HASH(product_id)
|
||||
Number of partitions: 4 (View pg_partition to check each partition range.)
|
||||
Has OIDs: no
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue