Change hypoTable struct to have its number of tuples

This commit is contained in:
yuzupy 2018-11-06 10:20:23 +09:00
parent e9cbdb0645
commit be61dc423f
2 changed files with 4 additions and 0 deletions

View file

@ -1478,6 +1478,8 @@ hypo_newTable(Oid parentid)
entry = (hypoTable *) palloc0(sizeof(hypoTable));
entry->tablename = palloc0(NAMEDATALEN);
entry->set_tuples = false; /* wil be generated later if needed */
entry->tuples = 0; /* wil be generated later if needed */
entry->boundspec = NULL; /* wil be generated later if needed */
entry->partkey = NULL; /* wil be generated later if needed */

View file

@ -40,6 +40,8 @@ typedef struct hypoTable
char *tablename; /* hypothetical partition name, or original
table name for root parititon */
Oid namespace; /* Oid of the hypothetical table's schema */
bool set_tuples; /* tuples are already set or not */
int tuples; /* number of tuples of this table */
/* added for internal use */
PartitionBoundSpec *boundspec; /* Needed to generate the PartitionDesc and