diff -r 14cd7137a3a8 -r 8f5c556120a5 src/server/plugins/postgresql/pgtest.c --- a/src/server/plugins/postgresql/pgtest.c Mon Apr 18 17:31:45 2022 +0200 +++ b/src/server/plugins/postgresql/pgtest.c Tue Apr 19 12:32:22 2022 +0200 @@ -274,8 +274,12 @@ f1 = vfs_open(vfs, "/test_unlink1", O_RDONLY); UCX_TEST_ASSERT(f1 == NULL, "test file not deleted"); - //int pgfd = lo_open(test_connection, oid, INV_READ); - //UCX_TEST_ASSERT(pgfd < 0, "large object not deleted"); + PGresult *result = PQexec(test_connection, "savepoint sp;"); + PQclear(result); + int pgfd = lo_open(test_connection, oid, INV_READ); + UCX_TEST_ASSERT(pgfd < 0, "large object not deleted"); + result = PQexec(test_connection, "rollback to savepoint sp;"); + PQclear(result); r = vfs_unlink(vfs, "/test_unlink1"); UCX_TEST_ASSERT(r, "unlink should fail");