]> granicus.if.org Git - postgresql/blobdiff - src/test/regress/pg_regress_main.c
Fix initialization of fake LSN for unlogged relations
[postgresql] / src / test / regress / pg_regress_main.c
index f274971be31f6c33fe3490bb7a5e9d06e88254a5..f1df7557fa1e9335aae9a32df036f128414337a9 100644 (file)
@@ -73,11 +73,16 @@ psql_start_test(const char *testname,
                }
        }
 
+       /*
+        * Use HIDE_TABLEAM to hide different AMs to allow to use regression tests
+        * against different AMs without unnecessary differences.
+        */
        offset += snprintf(psql_cmd + offset, sizeof(psql_cmd) - offset,
-                                          "\"%s%spsql\" -X -a -q -d \"%s\" < \"%s\" > \"%s\" 2>&1",
+                                          "\"%s%spsql\" -X -a -q -d \"%s\" -v %s < \"%s\" > \"%s\" 2>&1",
                                           bindir ? bindir : "",
                                           bindir ? "/" : "",
                                           dblist->str,
+                                          "HIDE_TABLEAM=\"on\"",
                                           infile,
                                           outfile);
        if (offset >= sizeof(psql_cmd))