mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Remove inadvertent copyright violation in largeobject regression test.
Robert Frost is no longer with us, but his copyrights still are, so let's stop using "Stopping by Woods on a Snowy Evening" as test data before somebody decides to sue us. Wordsworth is more safely dead.
This commit is contained in:
		@@ -27,27 +27,35 @@ UPDATE lotest_stash_values SET fd = lo_open(loid, CAST(x'20000' | x'40000' AS in
 | 
				
			|||||||
-- lowrite(fd integer, data bytea) returns integer
 | 
					-- lowrite(fd integer, data bytea) returns integer
 | 
				
			||||||
-- the integer is the number of bytes written
 | 
					-- the integer is the number of bytes written
 | 
				
			||||||
SELECT lowrite(fd, '
 | 
					SELECT lowrite(fd, '
 | 
				
			||||||
Whose woods these are I think I know,
 | 
					I wandered lonely as a cloud
 | 
				
			||||||
His house is in the village though.
 | 
					That floats on high o''er vales and hills,
 | 
				
			||||||
He will not see me stopping here,
 | 
					When all at once I saw a crowd,
 | 
				
			||||||
To watch his woods fill up with snow.
 | 
					A host, of golden daffodils;
 | 
				
			||||||
 | 
					Beside the lake, beneath the trees,
 | 
				
			||||||
 | 
					Fluttering and dancing in the breeze.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
My little horse must think it queer,
 | 
					Continuous as the stars that shine
 | 
				
			||||||
To stop without a farmhouse near,
 | 
					And twinkle on the milky way,
 | 
				
			||||||
Between the woods and frozen lake,
 | 
					They stretched in never-ending line
 | 
				
			||||||
The darkest evening of the year.
 | 
					Along the margin of a bay:
 | 
				
			||||||
 | 
					Ten thousand saw I at a glance,
 | 
				
			||||||
 | 
					Tossing their heads in sprightly dance.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
He gives his harness bells a shake,
 | 
					The waves beside them danced; but they
 | 
				
			||||||
To ask if there is some mistake.
 | 
					Out-did the sparkling waves in glee:
 | 
				
			||||||
The only other sound''s the sweep,
 | 
					A poet could not but be gay,
 | 
				
			||||||
Of easy wind and downy flake.
 | 
					In such a jocund company:
 | 
				
			||||||
 | 
					I gazed--and gazed--but little thought
 | 
				
			||||||
 | 
					What wealth the show to me had brought:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
The woods are lovely, dark and deep,
 | 
					For oft, when on my couch I lie
 | 
				
			||||||
But I have promises to keep,
 | 
					In vacant or in pensive mood,
 | 
				
			||||||
And miles to go before I sleep,
 | 
					They flash upon that inward eye
 | 
				
			||||||
And miles to go before I sleep.
 | 
					Which is the bliss of solitude;
 | 
				
			||||||
 | 
					And then my heart with pleasure fills,
 | 
				
			||||||
 | 
					And dances with the daffodils.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
         -- Robert Frost
 | 
					         -- William Wordsworth
 | 
				
			||||||
') FROM lotest_stash_values;
 | 
					') FROM lotest_stash_values;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- lo_close(fd integer) returns integer
 | 
					-- lo_close(fd integer) returns integer
 | 
				
			||||||
@@ -66,11 +74,11 @@ UPDATE lotest_stash_values SET fd=lo_open(loid, CAST(x'20000' | x'40000' AS inte
 | 
				
			|||||||
--  SEEK_CUR (= 1) meaning relative to current position
 | 
					--  SEEK_CUR (= 1) meaning relative to current position
 | 
				
			||||||
--  SEEK_END (= 2) meaning relative to end (offset better be negative)
 | 
					--  SEEK_END (= 2) meaning relative to end (offset better be negative)
 | 
				
			||||||
-- returns current position in file
 | 
					-- returns current position in file
 | 
				
			||||||
SELECT lo_lseek(fd, 422, 0) FROM lotest_stash_values;
 | 
					SELECT lo_lseek(fd, 104, 0) FROM lotest_stash_values;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- loread/lowrite names are wonky, different from other functions which are lo_*
 | 
					-- loread/lowrite names are wonky, different from other functions which are lo_*
 | 
				
			||||||
-- loread(fd integer, len integer) returns bytea
 | 
					-- loread(fd integer, len integer) returns bytea
 | 
				
			||||||
SELECT loread(fd, 35) FROM lotest_stash_values;
 | 
					SELECT loread(fd, 28) FROM lotest_stash_values;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
SELECT lo_lseek(fd, -19, 1) FROM lotest_stash_values;
 | 
					SELECT lo_lseek(fd, -19, 1) FROM lotest_stash_values;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -78,9 +86,9 @@ SELECT lowrite(fd, 'n') FROM lotest_stash_values;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
SELECT lo_tell(fd) FROM lotest_stash_values;
 | 
					SELECT lo_tell(fd) FROM lotest_stash_values;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
SELECT lo_lseek(fd, -156, 2) FROM lotest_stash_values;
 | 
					SELECT lo_lseek(fd, -744, 2) FROM lotest_stash_values;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
SELECT loread(fd, 35) FROM lotest_stash_values;
 | 
					SELECT loread(fd, 28) FROM lotest_stash_values;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
SELECT lo_close(fd) FROM lotest_stash_values;
 | 
					SELECT lo_close(fd) FROM lotest_stash_values;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -95,7 +103,7 @@ ABORT;
 | 
				
			|||||||
BEGIN;
 | 
					BEGIN;
 | 
				
			||||||
UPDATE lotest_stash_values SET fd=lo_open(loid, CAST(x'20000' | x'40000' AS integer));
 | 
					UPDATE lotest_stash_values SET fd=lo_open(loid, CAST(x'20000' | x'40000' AS integer));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
SELECT lo_truncate(fd, 10) FROM lotest_stash_values;
 | 
					SELECT lo_truncate(fd, 11) FROM lotest_stash_values;
 | 
				
			||||||
SELECT loread(fd, 15) FROM lotest_stash_values;
 | 
					SELECT loread(fd, 15) FROM lotest_stash_values;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
SELECT lo_truncate(fd, 10000) FROM lotest_stash_values;
 | 
					SELECT lo_truncate(fd, 10000) FROM lotest_stash_values;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -22,31 +22,39 @@ UPDATE lotest_stash_values SET fd = lo_open(loid, CAST(x'20000' | x'40000' AS in
 | 
				
			|||||||
-- lowrite(fd integer, data bytea) returns integer
 | 
					-- lowrite(fd integer, data bytea) returns integer
 | 
				
			||||||
-- the integer is the number of bytes written
 | 
					-- the integer is the number of bytes written
 | 
				
			||||||
SELECT lowrite(fd, '
 | 
					SELECT lowrite(fd, '
 | 
				
			||||||
Whose woods these are I think I know,
 | 
					I wandered lonely as a cloud
 | 
				
			||||||
His house is in the village though.
 | 
					That floats on high o''er vales and hills,
 | 
				
			||||||
He will not see me stopping here,
 | 
					When all at once I saw a crowd,
 | 
				
			||||||
To watch his woods fill up with snow.
 | 
					A host, of golden daffodils;
 | 
				
			||||||
 | 
					Beside the lake, beneath the trees,
 | 
				
			||||||
 | 
					Fluttering and dancing in the breeze.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
My little horse must think it queer,
 | 
					Continuous as the stars that shine
 | 
				
			||||||
To stop without a farmhouse near,
 | 
					And twinkle on the milky way,
 | 
				
			||||||
Between the woods and frozen lake,
 | 
					They stretched in never-ending line
 | 
				
			||||||
The darkest evening of the year.
 | 
					Along the margin of a bay:
 | 
				
			||||||
 | 
					Ten thousand saw I at a glance,
 | 
				
			||||||
 | 
					Tossing their heads in sprightly dance.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
He gives his harness bells a shake,
 | 
					The waves beside them danced; but they
 | 
				
			||||||
To ask if there is some mistake.
 | 
					Out-did the sparkling waves in glee:
 | 
				
			||||||
The only other sound''s the sweep,
 | 
					A poet could not but be gay,
 | 
				
			||||||
Of easy wind and downy flake.
 | 
					In such a jocund company:
 | 
				
			||||||
 | 
					I gazed--and gazed--but little thought
 | 
				
			||||||
 | 
					What wealth the show to me had brought:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
The woods are lovely, dark and deep,
 | 
					For oft, when on my couch I lie
 | 
				
			||||||
But I have promises to keep,
 | 
					In vacant or in pensive mood,
 | 
				
			||||||
And miles to go before I sleep,
 | 
					They flash upon that inward eye
 | 
				
			||||||
And miles to go before I sleep.
 | 
					Which is the bliss of solitude;
 | 
				
			||||||
 | 
					And then my heart with pleasure fills,
 | 
				
			||||||
 | 
					And dances with the daffodils.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
         -- Robert Frost
 | 
					         -- William Wordsworth
 | 
				
			||||||
') FROM lotest_stash_values;
 | 
					') FROM lotest_stash_values;
 | 
				
			||||||
 lowrite 
 | 
					 lowrite 
 | 
				
			||||||
---------
 | 
					---------
 | 
				
			||||||
     578
 | 
					     848
 | 
				
			||||||
(1 row)
 | 
					(1 row)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- lo_close(fd integer) returns integer
 | 
					-- lo_close(fd integer) returns integer
 | 
				
			||||||
@@ -67,24 +75,24 @@ UPDATE lotest_stash_values SET fd=lo_open(loid, CAST(x'20000' | x'40000' AS inte
 | 
				
			|||||||
--  SEEK_CUR (= 1) meaning relative to current position
 | 
					--  SEEK_CUR (= 1) meaning relative to current position
 | 
				
			||||||
--  SEEK_END (= 2) meaning relative to end (offset better be negative)
 | 
					--  SEEK_END (= 2) meaning relative to end (offset better be negative)
 | 
				
			||||||
-- returns current position in file
 | 
					-- returns current position in file
 | 
				
			||||||
SELECT lo_lseek(fd, 422, 0) FROM lotest_stash_values;
 | 
					SELECT lo_lseek(fd, 104, 0) FROM lotest_stash_values;
 | 
				
			||||||
 lo_lseek 
 | 
					 lo_lseek 
 | 
				
			||||||
----------
 | 
					----------
 | 
				
			||||||
      422
 | 
					      104
 | 
				
			||||||
(1 row)
 | 
					(1 row)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- loread/lowrite names are wonky, different from other functions which are lo_*
 | 
					-- loread/lowrite names are wonky, different from other functions which are lo_*
 | 
				
			||||||
-- loread(fd integer, len integer) returns bytea
 | 
					-- loread(fd integer, len integer) returns bytea
 | 
				
			||||||
SELECT loread(fd, 35) FROM lotest_stash_values;
 | 
					SELECT loread(fd, 28) FROM lotest_stash_values;
 | 
				
			||||||
               loread                
 | 
					            loread            
 | 
				
			||||||
-------------------------------------
 | 
					------------------------------
 | 
				
			||||||
 The woods are lovely, dark and deep
 | 
					 A host, of golden daffodils;
 | 
				
			||||||
(1 row)
 | 
					(1 row)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
SELECT lo_lseek(fd, -19, 1) FROM lotest_stash_values;
 | 
					SELECT lo_lseek(fd, -19, 1) FROM lotest_stash_values;
 | 
				
			||||||
 lo_lseek 
 | 
					 lo_lseek 
 | 
				
			||||||
----------
 | 
					----------
 | 
				
			||||||
      438
 | 
					      113
 | 
				
			||||||
(1 row)
 | 
					(1 row)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
SELECT lowrite(fd, 'n') FROM lotest_stash_values;
 | 
					SELECT lowrite(fd, 'n') FROM lotest_stash_values;
 | 
				
			||||||
@@ -96,19 +104,19 @@ SELECT lowrite(fd, 'n') FROM lotest_stash_values;
 | 
				
			|||||||
SELECT lo_tell(fd) FROM lotest_stash_values;
 | 
					SELECT lo_tell(fd) FROM lotest_stash_values;
 | 
				
			||||||
 lo_tell 
 | 
					 lo_tell 
 | 
				
			||||||
---------
 | 
					---------
 | 
				
			||||||
     439
 | 
					     114
 | 
				
			||||||
(1 row)
 | 
					(1 row)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
SELECT lo_lseek(fd, -156, 2) FROM lotest_stash_values;
 | 
					SELECT lo_lseek(fd, -744, 2) FROM lotest_stash_values;
 | 
				
			||||||
 lo_lseek 
 | 
					 lo_lseek 
 | 
				
			||||||
----------
 | 
					----------
 | 
				
			||||||
      422
 | 
					      104
 | 
				
			||||||
(1 row)
 | 
					(1 row)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
SELECT loread(fd, 35) FROM lotest_stash_values;
 | 
					SELECT loread(fd, 28) FROM lotest_stash_values;
 | 
				
			||||||
               loread                
 | 
					            loread            
 | 
				
			||||||
-------------------------------------
 | 
					------------------------------
 | 
				
			||||||
 The woods are lonely, dark and deep
 | 
					 A host, on golden daffodils;
 | 
				
			||||||
(1 row)
 | 
					(1 row)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
SELECT lo_close(fd) FROM lotest_stash_values;
 | 
					SELECT lo_close(fd) FROM lotest_stash_values;
 | 
				
			||||||
@@ -130,16 +138,16 @@ ABORT;
 | 
				
			|||||||
-- Test truncation.
 | 
					-- Test truncation.
 | 
				
			||||||
BEGIN;
 | 
					BEGIN;
 | 
				
			||||||
UPDATE lotest_stash_values SET fd=lo_open(loid, CAST(x'20000' | x'40000' AS integer));
 | 
					UPDATE lotest_stash_values SET fd=lo_open(loid, CAST(x'20000' | x'40000' AS integer));
 | 
				
			||||||
SELECT lo_truncate(fd, 10) FROM lotest_stash_values;
 | 
					SELECT lo_truncate(fd, 11) FROM lotest_stash_values;
 | 
				
			||||||
 lo_truncate 
 | 
					 lo_truncate 
 | 
				
			||||||
-------------
 | 
					-------------
 | 
				
			||||||
           0
 | 
					           0
 | 
				
			||||||
(1 row)
 | 
					(1 row)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
SELECT loread(fd, 15) FROM lotest_stash_values;
 | 
					SELECT loread(fd, 15) FROM lotest_stash_values;
 | 
				
			||||||
    loread     
 | 
					     loread     
 | 
				
			||||||
---------------
 | 
					----------------
 | 
				
			||||||
 \012Whose woo
 | 
					 \012I wandered
 | 
				
			||||||
(1 row)
 | 
					(1 row)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
SELECT lo_truncate(fd, 10000) FROM lotest_stash_values;
 | 
					SELECT lo_truncate(fd, 10000) FROM lotest_stash_values;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -22,31 +22,39 @@ UPDATE lotest_stash_values SET fd = lo_open(loid, CAST(x'20000' | x'40000' AS in
 | 
				
			|||||||
-- lowrite(fd integer, data bytea) returns integer
 | 
					-- lowrite(fd integer, data bytea) returns integer
 | 
				
			||||||
-- the integer is the number of bytes written
 | 
					-- the integer is the number of bytes written
 | 
				
			||||||
SELECT lowrite(fd, '
 | 
					SELECT lowrite(fd, '
 | 
				
			||||||
Whose woods these are I think I know,
 | 
					I wandered lonely as a cloud
 | 
				
			||||||
His house is in the village though.
 | 
					That floats on high o''er vales and hills,
 | 
				
			||||||
He will not see me stopping here,
 | 
					When all at once I saw a crowd,
 | 
				
			||||||
To watch his woods fill up with snow.
 | 
					A host, of golden daffodils;
 | 
				
			||||||
 | 
					Beside the lake, beneath the trees,
 | 
				
			||||||
 | 
					Fluttering and dancing in the breeze.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
My little horse must think it queer,
 | 
					Continuous as the stars that shine
 | 
				
			||||||
To stop without a farmhouse near,
 | 
					And twinkle on the milky way,
 | 
				
			||||||
Between the woods and frozen lake,
 | 
					They stretched in never-ending line
 | 
				
			||||||
The darkest evening of the year.
 | 
					Along the margin of a bay:
 | 
				
			||||||
 | 
					Ten thousand saw I at a glance,
 | 
				
			||||||
 | 
					Tossing their heads in sprightly dance.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
He gives his harness bells a shake,
 | 
					The waves beside them danced; but they
 | 
				
			||||||
To ask if there is some mistake.
 | 
					Out-did the sparkling waves in glee:
 | 
				
			||||||
The only other sound''s the sweep,
 | 
					A poet could not but be gay,
 | 
				
			||||||
Of easy wind and downy flake.
 | 
					In such a jocund company:
 | 
				
			||||||
 | 
					I gazed--and gazed--but little thought
 | 
				
			||||||
 | 
					What wealth the show to me had brought:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
The woods are lovely, dark and deep,
 | 
					For oft, when on my couch I lie
 | 
				
			||||||
But I have promises to keep,
 | 
					In vacant or in pensive mood,
 | 
				
			||||||
And miles to go before I sleep,
 | 
					They flash upon that inward eye
 | 
				
			||||||
And miles to go before I sleep.
 | 
					Which is the bliss of solitude;
 | 
				
			||||||
 | 
					And then my heart with pleasure fills,
 | 
				
			||||||
 | 
					And dances with the daffodils.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
         -- Robert Frost
 | 
					         -- William Wordsworth
 | 
				
			||||||
') FROM lotest_stash_values;
 | 
					') FROM lotest_stash_values;
 | 
				
			||||||
 lowrite 
 | 
					 lowrite 
 | 
				
			||||||
---------
 | 
					---------
 | 
				
			||||||
     578
 | 
					     848
 | 
				
			||||||
(1 row)
 | 
					(1 row)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- lo_close(fd integer) returns integer
 | 
					-- lo_close(fd integer) returns integer
 | 
				
			||||||
@@ -67,24 +75,24 @@ UPDATE lotest_stash_values SET fd=lo_open(loid, CAST(x'20000' | x'40000' AS inte
 | 
				
			|||||||
--  SEEK_CUR (= 1) meaning relative to current position
 | 
					--  SEEK_CUR (= 1) meaning relative to current position
 | 
				
			||||||
--  SEEK_END (= 2) meaning relative to end (offset better be negative)
 | 
					--  SEEK_END (= 2) meaning relative to end (offset better be negative)
 | 
				
			||||||
-- returns current position in file
 | 
					-- returns current position in file
 | 
				
			||||||
SELECT lo_lseek(fd, 422, 0) FROM lotest_stash_values;
 | 
					SELECT lo_lseek(fd, 104, 0) FROM lotest_stash_values;
 | 
				
			||||||
 lo_lseek 
 | 
					 lo_lseek 
 | 
				
			||||||
----------
 | 
					----------
 | 
				
			||||||
      422
 | 
					      104
 | 
				
			||||||
(1 row)
 | 
					(1 row)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- loread/lowrite names are wonky, different from other functions which are lo_*
 | 
					-- loread/lowrite names are wonky, different from other functions which are lo_*
 | 
				
			||||||
-- loread(fd integer, len integer) returns bytea
 | 
					-- loread(fd integer, len integer) returns bytea
 | 
				
			||||||
SELECT loread(fd, 35) FROM lotest_stash_values;
 | 
					SELECT loread(fd, 28) FROM lotest_stash_values;
 | 
				
			||||||
               loread                
 | 
					            loread            
 | 
				
			||||||
-------------------------------------
 | 
					------------------------------
 | 
				
			||||||
 The woods are lovely, dark and deep
 | 
					 A host, of golden daffodils;
 | 
				
			||||||
(1 row)
 | 
					(1 row)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
SELECT lo_lseek(fd, -19, 1) FROM lotest_stash_values;
 | 
					SELECT lo_lseek(fd, -19, 1) FROM lotest_stash_values;
 | 
				
			||||||
 lo_lseek 
 | 
					 lo_lseek 
 | 
				
			||||||
----------
 | 
					----------
 | 
				
			||||||
      438
 | 
					      113
 | 
				
			||||||
(1 row)
 | 
					(1 row)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
SELECT lowrite(fd, 'n') FROM lotest_stash_values;
 | 
					SELECT lowrite(fd, 'n') FROM lotest_stash_values;
 | 
				
			||||||
@@ -96,19 +104,19 @@ SELECT lowrite(fd, 'n') FROM lotest_stash_values;
 | 
				
			|||||||
SELECT lo_tell(fd) FROM lotest_stash_values;
 | 
					SELECT lo_tell(fd) FROM lotest_stash_values;
 | 
				
			||||||
 lo_tell 
 | 
					 lo_tell 
 | 
				
			||||||
---------
 | 
					---------
 | 
				
			||||||
     439
 | 
					     114
 | 
				
			||||||
(1 row)
 | 
					(1 row)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
SELECT lo_lseek(fd, -156, 2) FROM lotest_stash_values;
 | 
					SELECT lo_lseek(fd, -744, 2) FROM lotest_stash_values;
 | 
				
			||||||
 lo_lseek 
 | 
					 lo_lseek 
 | 
				
			||||||
----------
 | 
					----------
 | 
				
			||||||
      422
 | 
					      104
 | 
				
			||||||
(1 row)
 | 
					(1 row)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
SELECT loread(fd, 35) FROM lotest_stash_values;
 | 
					SELECT loread(fd, 28) FROM lotest_stash_values;
 | 
				
			||||||
               loread                
 | 
					            loread            
 | 
				
			||||||
-------------------------------------
 | 
					------------------------------
 | 
				
			||||||
 The woods are lonely, dark and deep
 | 
					 A host, on golden daffodils;
 | 
				
			||||||
(1 row)
 | 
					(1 row)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
SELECT lo_close(fd) FROM lotest_stash_values;
 | 
					SELECT lo_close(fd) FROM lotest_stash_values;
 | 
				
			||||||
@@ -130,16 +138,16 @@ ABORT;
 | 
				
			|||||||
-- Test truncation.
 | 
					-- Test truncation.
 | 
				
			||||||
BEGIN;
 | 
					BEGIN;
 | 
				
			||||||
UPDATE lotest_stash_values SET fd=lo_open(loid, CAST(x'20000' | x'40000' AS integer));
 | 
					UPDATE lotest_stash_values SET fd=lo_open(loid, CAST(x'20000' | x'40000' AS integer));
 | 
				
			||||||
SELECT lo_truncate(fd, 10) FROM lotest_stash_values;
 | 
					SELECT lo_truncate(fd, 11) FROM lotest_stash_values;
 | 
				
			||||||
 lo_truncate 
 | 
					 lo_truncate 
 | 
				
			||||||
-------------
 | 
					-------------
 | 
				
			||||||
           0
 | 
					           0
 | 
				
			||||||
(1 row)
 | 
					(1 row)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
SELECT loread(fd, 15) FROM lotest_stash_values;
 | 
					SELECT loread(fd, 15) FROM lotest_stash_values;
 | 
				
			||||||
    loread     
 | 
					     loread     
 | 
				
			||||||
---------------
 | 
					----------------
 | 
				
			||||||
 \012Whose woo
 | 
					 \012I wandered
 | 
				
			||||||
(1 row)
 | 
					(1 row)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
SELECT lo_truncate(fd, 10000) FROM lotest_stash_values;
 | 
					SELECT lo_truncate(fd, 10000) FROM lotest_stash_values;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user