File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
internal/engine/postgresql Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -9,3 +9,11 @@ func NewCatalog() *catalog.Catalog {
9
9
c .SearchPath = []string {"pg_catalog" }
10
10
return c
11
11
}
12
+
13
+ // The generated pg_catalog is very slow to compare because it has so
14
+ // many entries. For testing, don't include it.
15
+ func newTestCatalog () * catalog.Catalog {
16
+ c := catalog .New ("public" )
17
+ c .Schemas = append (c .Schemas , pgTemp ())
18
+ return c
19
+ }
Original file line number Diff line number Diff line change @@ -564,13 +564,13 @@ func TestUpdate(t *testing.T) {
564
564
t .Fatal (err )
565
565
}
566
566
567
- c := NewCatalog ()
567
+ c := newTestCatalog ()
568
568
if err := c .Build (stmts ); err != nil {
569
569
t .Log (test .stmt )
570
570
t .Fatal (err )
571
571
}
572
572
573
- e := NewCatalog ()
573
+ e := newTestCatalog ()
574
574
if test .s != nil {
575
575
var replaced bool
576
576
for i := range e .Schemas {
You can’t perform that action at this time.
0 commit comments