mirror of
https://github.com/HypoPG/hypopg
synced 2026-05-24 09:38:21 +00:00
Change hypoTable struct to have its number of tuples
This commit is contained in:
parent
e9cbdb0645
commit
be61dc423f
2 changed files with 4 additions and 0 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue