Skip to content

Commit e2106d8

Browse files
committed
postgresql: Move contrib code to a package
Replace the old hand-written pg_catalog.go with the generated one
1 parent 796b280 commit e2106d8

File tree

7 files changed

+26522
-28077
lines changed

7 files changed

+26522
-28077
lines changed

internal/engine/postgresql/catalog.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,3 @@ func newTestCatalog() *catalog.Catalog {
1919
c.LoadExtension = loadExtension
2020
return c
2121
}
22-
23-
func loadExtension(name string) *catalog.Schema {
24-
switch name {
25-
case "citext":
26-
return genCIText()
27-
case "pg_trgm":
28-
return genPGTrigram()
29-
case "pgcrypto":
30-
return genPGCrypto()
31-
case "uuid-ossp":
32-
return genUUIDOSSP()
33-
}
34-
return nil
35-
}

0 commit comments

Comments
 (0)