summaryrefslogtreecommitdiff
path: root/src/test/regress/sql/copy2.sql
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2009-06-14 00:00:24 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2009-06-14 00:00:24 +0000
commitf51c9a66651dd3d5130c7731bcc10248517fbfbd (patch)
tree8c1c115a1a7fe08fb0345ba8062b594be92900a3 /src/test/regress/sql/copy2.sql
parent5f6a14077b7f0ac8a33568f3631f6afe0ffe3588 (diff)
downloadpostgresql-f51c9a66651dd3d5130c7731bcc10248517fbfbd.tar.gz
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/test/regress/sql/copy2.sql')
-rw-r--r--src/test/regress/sql/copy2.sql4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/regress/sql/copy2.sql b/src/test/regress/sql/copy2.sql
index b193388ab8..7c23ba253c 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
);