Drop unlogged table after test is done
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 25 Apr 2022 13:48:13 +0000 (15:48 +0200)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 25 Apr 2022 13:48:13 +0000 (15:48 +0200)
Another test is constructed on top of regression tests, which does not
work correctly with unlogged tables.  For now, cope with that by making
sure no unlogged table is left behind.

Per buildfarm pink after 4fb5c794e586.

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

index 51bb9a95c5cc9c75c1b6490267a6ca3c6e561f58..f07b6f0145e4b86210a65b5fb58d6d30c0faa799 100644 (file)
@@ -41,6 +41,7 @@ select count(*)
      3
 (1 row)
 
+drop table spgist_box_tbl;
 -- The point opclass's choose method only uses the spgMatchNode action,
 -- so the other actions are not tested by the above. Create an index using
 -- text opclass, which uses the others actions.
index f375025dcb1acd73d08701e5b94fc13f0a4c4bc1..d56b80a51b6d36f422858cb9cf098574737277f3 100644 (file)
@@ -45,6 +45,7 @@ create index spgist_box_idx on spgist_box_tbl using spgist (b);
 select count(*)
   from (values (point(5,5)),(point(8,8)),(point(12,12))) v(p)
  where exists(select * from spgist_box_tbl b where b.b && box(v.p,v.p));
+drop table spgist_box_tbl;
 
 -- The point opclass's choose method only uses the spgMatchNode action,
 -- so the other actions are not tested by the above. Create an index using