diff --git a/.gitignore b/.gitignore
index 681af08c5cf848204b1fc0f7304f984f92ceefa5..715f81795451cbdf9a1fe7ca34dec03fb6450350 100644
--- a/.gitignore
+++ b/.gitignore
@@ -28,6 +28,7 @@ lib*.pc
 
 # Local excludes in root directory
 /GNUmakefile
+/config.cache
 /config.log
 /config.status
 /pgsql.sln
diff --git a/src/test/regress/.gitignore b/src/test/regress/.gitignore
index 7573addc94dbecf4b2b2233c55463b0dc747b251..173f995d240f0c195aa1fa47cb4230a21c010c0c 100644
--- a/src/test/regress/.gitignore
+++ b/src/test/regress/.gitignore
@@ -5,3 +5,7 @@
 /tmp_check/
 /results/
 /log/
+
+# Note: regreesion.* are only left behind on a failure; that's why they're not ignored
+#/regression.diffs
+#/regression.out