On the list of indexes of a table show which were created as part of the creation of a constraint

The explicit column is true when the index was manually created
In SQL only a comment is given that the index was implicitly created
This commit is contained in:
eelke 2021-04-11 07:56:37 +02:00
parent 60bbb4c445
commit fd5ad9bbf0
6 changed files with 56 additions and 20 deletions

View file

@ -18,6 +18,7 @@ public:
std::vector<PgConstraint> getConstraintsForRelation(Oid relid) const;
std::optional<PgConstraint> getPrimaryForRelation(Oid relid) const;
std::vector<PgConstraint> getReferencedForRelation(Oid relid) const;
std::vector<PgConstraint> getSupportedByIndex(Oid indexrelid) const;
protected:
virtual PgConstraint loadElem(const Pgsql::Row &row) override;
};