Fix reading from catalog so that information about declarative partitioning is read correctly
(View and SQL generation still need fixes)
This commit is contained in:
parent
0cd019db92
commit
33319e3461
4 changed files with 43 additions and 12 deletions
|
|
@ -16,6 +16,8 @@ std::string PgClassContainer::getLoadQuery() const
|
|||
|
||||
if (lessThenVersion(120000))
|
||||
q += ", relhasoids ";
|
||||
if (minimumVersion(100000))
|
||||
q += ", pg_get_expr(relpartbound, oid)"; // partition specification
|
||||
|
||||
q +=
|
||||
"\nFROM pg_catalog.pg_class \n"
|
||||
|
|
@ -53,5 +55,8 @@ PgClass PgClassContainer::loadElem(const Pgsql::Row &row)
|
|||
if (lessThenVersion(120000))
|
||||
col >> v.hasoids;
|
||||
|
||||
return v;
|
||||
if (minimumVersion(100000))
|
||||
col >> v.partitionBoundaries;
|
||||
|
||||
return v;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue