Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions sql/information_schema/information_schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -2140,6 +2140,10 @@ func emptyRowIter(ctx *Context, c Catalog) (RowIter, error) {
return RowsToRowIter(), nil
}

// NewInformationSchemaTablesToAdd is used by Doltgres to inject Postgres-specific
// tables and views. In Dolt, this just returns empty map.
var NewInformationSchemaTablesToAdd = map[string]Table{}

func GetInformationSchemaTables() map[string]Table {
return map[string]Table{
AdministrableRoleAuthorizationsTableName: &InformationSchemaTable{
Expand Down Expand Up @@ -2528,6 +2532,12 @@ func NewInformationSchemaDatabase() Database {

isDb.tables[StatisticsTableName] = NewDefaultStats()

// It's for Doltgres-only tables.
// It should be empty map for Dolt.
for tn, tbl := range NewInformationSchemaTablesToAdd {
isDb.tables[tn] = tbl
}

return isDb
}

Expand Down
Loading