]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Remove inadvertent copyright violation in largeobject regression test.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 12 Jun 2014 20:51:24 +0000 (16:51 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 12 Jun 2014 20:51:24 +0000 (16:51 -0400)
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.

src/test/regress/input/largeobject.source
src/test/regress/output/largeobject.source
src/test/regress/output/largeobject_1.source

index 46ba9261ac5fe9426217da76d2b769103976e23b..3af433fdff32d418d5935fce59bbaa13eb5c8f27 100644 (file)
@@ -24,27 +24,35 @@ UPDATE lotest_stash_values SET fd = lo_open(loid, CAST(x'20000' | x'40000' AS in
 -- lowrite(fd integer, data bytea) returns integer
 -- the integer is the number of bytes written
 SELECT lowrite(fd, '
-Whose woods these are I think I know,
-His house is in the village though.
-He will not see me stopping here,
-To watch his woods fill up with snow.
-
-My little horse must think it queer,
-To stop without a farmhouse near,
-Between the woods and frozen lake,
-The darkest evening of the year.
-
-He gives his harness bells a shake,
-To ask if there is some mistake.
-The only other sound''s the sweep,
-Of easy wind and downy flake.
-
-The woods are lovely, dark and deep,
-But I have promises to keep,
-And miles to go before I sleep,
-And miles to go before I sleep.
-
-         -- Robert Frost
+I wandered lonely as a cloud
+That floats on high o''er vales and hills,
+When all at once I saw a crowd,
+A host, of golden daffodils;
+Beside the lake, beneath the trees,
+Fluttering and dancing in the breeze.
+
+Continuous as the stars that shine
+And twinkle on the milky way,
+They stretched in never-ending line
+Along the margin of a bay:
+Ten thousand saw I at a glance,
+Tossing their heads in sprightly dance.
+
+The waves beside them danced; but they
+Out-did the sparkling waves in glee:
+A poet could not but be gay,
+In such a jocund company:
+I gazed--and gazed--but little thought
+What wealth the show to me had brought:
+
+For oft, when on my couch I lie
+In vacant or in pensive mood,
+They flash upon that inward eye
+Which is the bliss of solitude;
+And then my heart with pleasure fills,
+And dances with the daffodils.
+
+         -- William Wordsworth
 ') FROM lotest_stash_values;
 
 -- lo_close(fd integer) returns integer
@@ -63,11 +71,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_END (= 2) meaning relative to end (offset better be negative)
 -- 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(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;
 
@@ -75,9 +83,9 @@ SELECT lowrite(fd, 'n') 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;
 
@@ -92,7 +100,7 @@ ABORT;
 BEGIN;
 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 lo_truncate(fd, 10000) FROM lotest_stash_values;
index 9d69f6c913e2ebd7bfade32b9546450280594eae..a65d6deb0eb66ec0cfefc8ff47e40ebe215a42ea 100644 (file)
@@ -20,31 +20,39 @@ UPDATE lotest_stash_values SET fd = lo_open(loid, CAST(x'20000' | x'40000' AS in
 -- lowrite(fd integer, data bytea) returns integer
 -- the integer is the number of bytes written
 SELECT lowrite(fd, '
-Whose woods these are I think I know,
-His house is in the village though.
-He will not see me stopping here,
-To watch his woods fill up with snow.
-
-My little horse must think it queer,
-To stop without a farmhouse near,
-Between the woods and frozen lake,
-The darkest evening of the year.
-
-He gives his harness bells a shake,
-To ask if there is some mistake.
-The only other sound''s the sweep,
-Of easy wind and downy flake.
-
-The woods are lovely, dark and deep,
-But I have promises to keep,
-And miles to go before I sleep,
-And miles to go before I sleep.
-
-         -- Robert Frost
+I wandered lonely as a cloud
+That floats on high o''er vales and hills,
+When all at once I saw a crowd,
+A host, of golden daffodils;
+Beside the lake, beneath the trees,
+Fluttering and dancing in the breeze.
+
+Continuous as the stars that shine
+And twinkle on the milky way,
+They stretched in never-ending line
+Along the margin of a bay:
+Ten thousand saw I at a glance,
+Tossing their heads in sprightly dance.
+
+The waves beside them danced; but they
+Out-did the sparkling waves in glee:
+A poet could not but be gay,
+In such a jocund company:
+I gazed--and gazed--but little thought
+What wealth the show to me had brought:
+
+For oft, when on my couch I lie
+In vacant or in pensive mood,
+They flash upon that inward eye
+Which is the bliss of solitude;
+And then my heart with pleasure fills,
+And dances with the daffodils.
+
+         -- William Wordsworth
 ') FROM lotest_stash_values;
  lowrite 
 ---------
-     578
+     848
 (1 row)
 
 -- lo_close(fd integer) returns integer
@@ -65,24 +73,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_END (= 2) meaning relative to end (offset better be negative)
 -- 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 
 ----------
-      422
+      104
 (1 row)
 
 -- loread/lowrite names are wonky, different from other functions which are lo_*
 -- loread(fd integer, len integer) returns bytea
-SELECT loread(fd, 35) FROM lotest_stash_values;
-               loread                
--------------------------------------
- The woods are lovely, dark and deep
+SELECT loread(fd, 28) FROM lotest_stash_values;
+            loread            
+------------------------------
+ A host, of golden daffodils;
 (1 row)
 
 SELECT lo_lseek(fd, -19, 1) FROM lotest_stash_values;
  lo_lseek 
 ----------
-      438
+      113
 (1 row)
 
 SELECT lowrite(fd, 'n') FROM lotest_stash_values;
@@ -94,19 +102,19 @@ SELECT lowrite(fd, 'n') FROM lotest_stash_values;
 SELECT lo_tell(fd) FROM lotest_stash_values;
  lo_tell 
 ---------
-     439
+     114
 (1 row)
 
-SELECT lo_lseek(fd, -156, 2) FROM lotest_stash_values;
+SELECT lo_lseek(fd, -744, 2) FROM lotest_stash_values;
  lo_lseek 
 ----------
-      422
+      104
 (1 row)
 
-SELECT loread(fd, 35) FROM lotest_stash_values;
-               loread                
--------------------------------------
- The woods are lonely, dark and deep
+SELECT loread(fd, 28) FROM lotest_stash_values;
+            loread            
+------------------------------
+ A host, on golden daffodils;
 (1 row)
 
 SELECT lo_close(fd) FROM lotest_stash_values;
@@ -128,16 +136,16 @@ ABORT;
 -- Test truncation.
 BEGIN;
 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 
 -------------
            0
 (1 row)
 
 SELECT loread(fd, 15) FROM lotest_stash_values;
-    loread     
----------------
- \012Whose woo
+     loread     
+----------------
+ \012I wandered
 (1 row)
 
 SELECT lo_truncate(fd, 10000) FROM lotest_stash_values;
index 1fbc29c25171d6e2bc02b4d49012e990f1190a09..3a2ead164f8f99cc60173dff8591f3be45028e6a 100644 (file)
@@ -20,31 +20,39 @@ UPDATE lotest_stash_values SET fd = lo_open(loid, CAST(x'20000' | x'40000' AS in
 -- lowrite(fd integer, data bytea) returns integer
 -- the integer is the number of bytes written
 SELECT lowrite(fd, '
-Whose woods these are I think I know,
-His house is in the village though.
-He will not see me stopping here,
-To watch his woods fill up with snow.
-
-My little horse must think it queer,
-To stop without a farmhouse near,
-Between the woods and frozen lake,
-The darkest evening of the year.
-
-He gives his harness bells a shake,
-To ask if there is some mistake.
-The only other sound''s the sweep,
-Of easy wind and downy flake.
-
-The woods are lovely, dark and deep,
-But I have promises to keep,
-And miles to go before I sleep,
-And miles to go before I sleep.
-
-         -- Robert Frost
+I wandered lonely as a cloud
+That floats on high o''er vales and hills,
+When all at once I saw a crowd,
+A host, of golden daffodils;
+Beside the lake, beneath the trees,
+Fluttering and dancing in the breeze.
+
+Continuous as the stars that shine
+And twinkle on the milky way,
+They stretched in never-ending line
+Along the margin of a bay:
+Ten thousand saw I at a glance,
+Tossing their heads in sprightly dance.
+
+The waves beside them danced; but they
+Out-did the sparkling waves in glee:
+A poet could not but be gay,
+In such a jocund company:
+I gazed--and gazed--but little thought
+What wealth the show to me had brought:
+
+For oft, when on my couch I lie
+In vacant or in pensive mood,
+They flash upon that inward eye
+Which is the bliss of solitude;
+And then my heart with pleasure fills,
+And dances with the daffodils.
+
+         -- William Wordsworth
 ') FROM lotest_stash_values;
  lowrite 
 ---------
-     578
+     848
 (1 row)
 
 -- lo_close(fd integer) returns integer
@@ -65,24 +73,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_END (= 2) meaning relative to end (offset better be negative)
 -- 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 
 ----------
-      422
+      104
 (1 row)
 
 -- loread/lowrite names are wonky, different from other functions which are lo_*
 -- loread(fd integer, len integer) returns bytea
-SELECT loread(fd, 35) FROM lotest_stash_values;
-               loread                
--------------------------------------
- The woods are lovely, dark and deep
+SELECT loread(fd, 28) FROM lotest_stash_values;
+            loread            
+------------------------------
+ A host, of golden daffodils;
 (1 row)
 
 SELECT lo_lseek(fd, -19, 1) FROM lotest_stash_values;
  lo_lseek 
 ----------
-      438
+      113
 (1 row)
 
 SELECT lowrite(fd, 'n') FROM lotest_stash_values;
@@ -94,19 +102,19 @@ SELECT lowrite(fd, 'n') FROM lotest_stash_values;
 SELECT lo_tell(fd) FROM lotest_stash_values;
  lo_tell 
 ---------
-     439
+     114
 (1 row)
 
-SELECT lo_lseek(fd, -156, 2) FROM lotest_stash_values;
+SELECT lo_lseek(fd, -744, 2) FROM lotest_stash_values;
  lo_lseek 
 ----------
-      422
+      104
 (1 row)
 
-SELECT loread(fd, 35) FROM lotest_stash_values;
-               loread                
--------------------------------------
- The woods are lonely, dark and deep
+SELECT loread(fd, 28) FROM lotest_stash_values;
+            loread            
+------------------------------
+ A host, on golden daffodils;
 (1 row)
 
 SELECT lo_close(fd) FROM lotest_stash_values;
@@ -128,16 +136,16 @@ ABORT;
 -- Test truncation.
 BEGIN;
 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 
 -------------
            0
 (1 row)
 
 SELECT loread(fd, 15) FROM lotest_stash_values;
-    loread     
----------------
- \012Whose woo
+     loread     
+----------------
+ \012I wandered
 (1 row)
 
 SELECT lo_truncate(fd, 10000) FROM lotest_stash_values;