summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2009-06-14 00:00:30 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2009-06-14 00:00:30 +0000
commit5b2e5fed503fd07f3ab7f1ebf8d93ef39b9fd83b (patch)
treea756b8129155c85f2e0029c89b62ea814a088835 /src
parentaebb4edd792f4c1073d75295e7ba101d307fe03c (diff)
Change test tables in copy2 regression test to be temporary tables.
This prevents autovacuum from reclaiming free space in them and causing the test's output row order to change, which is causing intermittent bogus failure reports in the buildfarm. Backpatch to 8.3. The issue exists further back, but since autovacuum was not on by default before 8.3, it's not a problem for buildfarm testing.
Diffstat (limited to 'src')
-rw-r--r--src/test/regress/expected/copy2.out4
-rw-r--r--src/test/regress/sql/copy2.sql4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/test/regress/expected/copy2.out b/src/test/regress/expected/copy2.out
index 7759a411cd8..7f374ac1a6f 100644
--- a/src/test/regress/expected/copy2.out
+++ b/src/test/regress/expected/copy2.out
@@ -1,4 +1,4 @@
-CREATE TABLE x (
+CREATE TEMP TABLE x (
a serial,
b int,
c text not null default 'stuff',
@@ -172,7 +172,7 @@ I'm null before trigger fired
3 after trigger fired
4 after trigger fired
5 after trigger fired
-CREATE TABLE y (
+CREATE TEMP TABLE y (
col1 text,
col2 text
);
diff --git a/src/test/regress/sql/copy2.sql b/src/test/regress/sql/copy2.sql
index b193388ab8c..7c23ba253c4 100644
--- a/src/test/regress/sql/copy2.sql
+++ b/src/test/regress/sql/copy2.sql
@@ -1,4 +1,4 @@
-CREATE TABLE x (
+CREATE TEMP TABLE x (
a serial,
b int,
c text not null default 'stuff',
@@ -116,7 +116,7 @@ COPY x TO stdout;
COPY x (c, e) TO stdout;
COPY x (b, e) TO stdout WITH NULL 'I''m null';
-CREATE TABLE y (
+CREATE TEMP TABLE y (
col1 text,
col2 text
);