go-gorm / postgres

GORM PostgreSQL driver
MIT License
234 stars 123 forks source link

Index functions (GetIndexes, DropIndex, RenameIndex) doesn't use current table schema #226

Open itsofirblink opened 11 months ago

itsofirblink commented 11 months ago

Description

I have few schemas under my database, And i want to be able to search for indexes, and drop them if needed. The issue is that both functions GetIndexes, DropIndex, RenameIndex doesn't work with the current schema when HasIndex works with the m.CurrentSchema(stmt, stmt.Table) and CreateIndex works with m.CurrentTable(stmt)