]> granicus.if.org Git - postgresql/commitdiff
Change test tables in copy2 regression test to be temporary tables.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 14 Jun 2009 00:00:24 +0000 (00:00 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 14 Jun 2009 00:00:24 +0000 (00:00 +0000)
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.

src/test/regress/expected/copy2.out
src/test/regress/sql/copy2.sql

index 7759a411cd84697022ed40af682398490d2e5cb4..7f374ac1a6f79e41dc530501ed85254d0db9864d 100644 (file)
@@ -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
 );
index b193388ab8cdda767c236627bbb96cd7aeec8693..7c23ba253c4e28a47af195963ffd3d8094b829da 100644 (file)
@@ -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
 );