*** /home/packages/stuff/expected/largeobject.out Tue Jan  5 07:56:58 2016
--- /home/packages/stuff/results/largeobject.out Tue Jan  5 07:57:21 2016
***************
*** 388,405 ****
  (1 row)

  \lo_import 'results/lotest.txt'
  \set newloid :LASTOID
  -- just make sure \lo_export does not barf
  \lo_export :newloid 'results/lotest2.txt'
  -- This is a hack to test that export/import are reversible
  -- This uses knowledge about the inner workings of large object mechanism
  -- which should not be used outside it.  This makes it a HACK
  SELECT pageno, data FROM pg_largeobject WHERE loid = (SELECT loid
