diff options
| author | Robert Haas | 2016-12-13 15:54:52 +0000 |
|---|---|---|
| committer | Robert Haas | 2016-12-13 15:59:14 +0000 |
| commit | 4b9a98e154cec81849af24091443747a6057c968 (patch) | |
| tree | 10523af2176f83d4e4c25c62bce502bb018652db /src/include | |
| parent | acddbe221b084956a0efd6e4b6c6586e8fd994d7 (diff) | |
Clean up code, comments, and formatting for table partitioning.
Amit Langote, plus pgindent-ing by me. Inspired in part by review
comments from Tomas Vondra.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/catalog/pg_partitioned_table.h | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/src/include/catalog/pg_partitioned_table.h b/src/include/catalog/pg_partitioned_table.h index cec54ae62e5..c986428a65a 100644 --- a/src/include/catalog/pg_partitioned_table.h +++ b/src/include/catalog/pg_partitioned_table.h @@ -7,7 +7,7 @@ * * Portions Copyright (c) 1996-2016, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/include/catalog/pg_partitioned_table.h $ + * src/include/catalog/pg_partitioned_table.h * * NOTES * the genbki.sh script reads this file and generates .bki @@ -29,9 +29,9 @@ CATALOG(pg_partitioned_table,3350) BKI_WITHOUT_OIDS { - Oid partrelid; /* partitioned table oid */ - char partstrat; /* partitioning strategy */ - int16 partnatts; /* number of partition key columns */ + Oid partrelid; /* partitioned table oid */ + char partstrat; /* partitioning strategy */ + int16 partnatts; /* number of partition key columns */ /* * variable-length fields start here, but we allow direct access to @@ -39,29 +39,27 @@ CATALOG(pg_partitioned_table,3350) BKI_WITHOUT_OIDS * field of a heap tuple can be reliably accessed using its C struct * offset, as previous fields are all non-nullable fixed-length fields. */ - int2vector partattrs; /* each member of the array is the - * attribute number of a partition key - * column, or 0 if the column is actually - * an expression */ + int2vector partattrs; /* each member of the array is the attribute + * number of a partition key column, or 0 if + * the column is actually an expression */ #ifdef CATALOG_VARLEN - oidvector partclass; /* operator class to compare keys */ - oidvector partcollation; /* user-specified collation for keys */ - pg_node_tree partexprs; /* list of expressions in the partitioning - * key; one item for each zero entry in - * partattrs[] */ + oidvector partclass; /* operator class to compare keys */ + oidvector partcollation; /* user-specified collation for keys */ + pg_node_tree partexprs; /* list of expressions in the partition key; + * one item for each zero entry in partattrs[] */ #endif } FormData_pg_partitioned_table; /* ---------------- - * Form_pg_partitioned_table corresponds to a pointer to a tuple with - * the format of pg_partitioned_table relation. + * Form_pg_partitioned_table corresponds to a pointer to a tuple with + * the format of pg_partitioned_table relation. * ---------------- */ typedef FormData_pg_partitioned_table *Form_pg_partitioned_table; /* ---------------- - * compiler constants for pg_partitioned_table + * compiler constants for pg_partitioned_table * ---------------- */ #define Natts_pg_partitioned_table 7 @@ -70,7 +68,7 @@ typedef FormData_pg_partitioned_table *Form_pg_partitioned_table; #define Anum_pg_partitioned_table_partnatts 3 #define Anum_pg_partitioned_table_partattrs 4 #define Anum_pg_partitioned_table_partclass 5 -#define Anum_pg_partitioned_table_partcollation 6 +#define Anum_pg_partitioned_table_partcollation 6 #define Anum_pg_partitioned_table_partexprs 7 #endif /* PG_PARTITIONED_TABLE_H */ |
