Skip to content

Commit 1a3ec19

Browse files
committed
Merge large_object.sql test into largeobject.source.
It seems pretty confusing to have tests named both largeobject and large_object. The latter is of very recent vintage (commit ff992c0), so get rid of it in favor of merging into the former. Also, enable the LO comment test that was added by commit 70ad7ed, since the later commit added the then-missing pg_upgrade functionality. The large_object.sql test case is almost completely redundant with that, but not quite: it seems like creating a user-defined LO with an OID in the system range might be an interesting case for pg_upgrade, so let's keep it. Like the earlier patch, back-patch to all supported branches. Discussion: https://postgr.es/m/18665.1500306372@sss.pgh.pa.us
1 parent f363368 commit 1a3ec19

File tree

7 files changed

+32
-27
lines changed

7 files changed

+32
-27
lines changed

src/test/regress/expected/large_object.out

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/test/regress/input/largeobject.source

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,5 +211,13 @@ SELECT pageno, data FROM pg_largeobject WHERE loid = :newloid;
211211
SELECT lo_unlink(loid) FROM lotest_stash_values;
212212
\lo_unlink :newloid
213213

214-
TRUNCATE lotest_stash_values;
214+
-- Create one more object that we leave behind for testing pg_dump/pg_upgrade;
215+
-- this one intentionally has an OID in the system range
216+
SELECT lo_create(3001);
217+
218+
COMMENT ON LARGE OBJECT 3001 IS 'testing comments';
219+
220+
-- Clean up
221+
DROP TABLE lotest_stash_values;
222+
215223
DROP ROLE regresslo;

src/test/regress/output/largeobject.source

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,5 +399,15 @@ SELECT lo_unlink(loid) FROM lotest_stash_values;
399399
(1 row)
400400

401401
\lo_unlink :newloid
402-
TRUNCATE lotest_stash_values;
402+
-- Create one more object that we leave behind for testing pg_dump/pg_upgrade;
403+
-- this one intentionally has an OID in the system range
404+
SELECT lo_create(3001);
405+
lo_create
406+
-----------
407+
3001
408+
(1 row)
409+
410+
COMMENT ON LARGE OBJECT 3001 IS 'testing comments';
411+
-- Clean up
412+
DROP TABLE lotest_stash_values;
403413
DROP ROLE regresslo;

src/test/regress/output/largeobject_1.source

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,5 +399,15 @@ SELECT lo_unlink(loid) FROM lotest_stash_values;
399399
(1 row)
400400

401401
\lo_unlink :newloid
402-
TRUNCATE lotest_stash_values;
402+
-- Create one more object that we leave behind for testing pg_dump/pg_upgrade;
403+
-- this one intentionally has an OID in the system range
404+
SELECT lo_create(3001);
405+
lo_create
406+
-----------
407+
3001
408+
(1 row)
409+
410+
COMMENT ON LARGE OBJECT 3001 IS 'testing comments';
411+
-- Clean up
412+
DROP TABLE lotest_stash_values;
403413
DROP ROLE regresslo;

src/test/regress/parallel_schedule

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ test: select_into select_distinct select_distinct_on select_implicit select_havi
8383
# ----------
8484
# Another group of parallel tests
8585
# ----------
86-
test: privileges security_label collate matview large_object
86+
test: privileges security_label collate matview
8787

8888
# ----------
8989
# Another group of parallel tests

src/test/regress/serial_schedule

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ test: privileges
9696
test: security_label
9797
test: collate
9898
test: matview
99-
test: large_object
10099
test: alter_generic
101100
test: misc
102101
test: psql

src/test/regress/sql/large_object.sql

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)