diff options
| author | Tom Lane | 2009-11-22 05:20:41 +0000 |
|---|---|---|
| committer | Tom Lane | 2009-11-22 05:20:41 +0000 |
| commit | 1753337cf5d0aa5ba04b29ded65b824d9cf12c00 (patch) | |
| tree | adefbd23fd367d32f374e9ef9188b4ef37d47820 /src/test | |
| parent | 93d3bac5648bddfe195a9cecc45ef0a2da5e85a8 (diff) | |
Improve psql's tabular display of wrapped-around data by inserting markers
in the formerly-always-blank columns just to left and right of the data.
Different marking is used for a line break caused by a newline in the data
than for a straight wraparound. A newline break is signaled by a "+" in the
right margin column in ASCII mode, or a carriage return arrow in UNICODE mode.
Wraparound is signaled by a dot in the right margin as well as the following
left margin in ASCII mode, or an ellipsis symbol in the same places in UNICODE
mode. "\pset linestyle old-ascii" is added to make the previous behavior
available if anyone really wants it.
In passing, this commit also cleans up a few regression test files that
had unintended spacing differences from the current actual output.
Roger Leigh, reviewed by Gabrielle Roth and other members of PDXPUG.
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/regress/expected/create_cast.out | 2 | ||||
| -rw-r--r-- | src/test/regress/expected/dependency.out | 6 | ||||
| -rw-r--r-- | src/test/regress/expected/foreign_data.out | 16 | ||||
| -rw-r--r-- | src/test/regress/expected/foreign_key.out | 34 | ||||
| -rw-r--r-- | src/test/regress/expected/guc.out | 2 | ||||
| -rw-r--r-- | src/test/regress/expected/prepare.out | 28 | ||||
| -rw-r--r-- | src/test/regress/expected/triggers.out | 22 | ||||
| -rw-r--r-- | src/test/regress/expected/tsearch.out | 96 | ||||
| -rw-r--r-- | src/test/regress/expected/with.out | 20 |
9 files changed, 113 insertions, 113 deletions
diff --git a/src/test/regress/expected/create_cast.out b/src/test/regress/expected/create_cast.out index 67eaab23166..56cd86e00bf 100644 --- a/src/test/regress/expected/create_cast.out +++ b/src/test/regress/expected/create_cast.out @@ -53,7 +53,7 @@ SELECT casttestfunc('foo'::text); -- Should work now SELECT 1234::int4::casttesttype; -- No cast yet, should fail ERROR: cannot cast type integer to casttesttype LINE 1: SELECT 1234::int4::casttesttype; - ^ + ^ CREATE CAST (int4 AS casttesttype) WITH INOUT; SELECT 1234::int4::casttesttype; -- Should work now casttesttype diff --git a/src/test/regress/expected/dependency.out b/src/test/regress/expected/dependency.out index 6eb851a378c..d0895fbd52e 100644 --- a/src/test/regress/expected/dependency.out +++ b/src/test/regress/expected/dependency.out @@ -71,9 +71,9 @@ RESET SESSION AUTHORIZATION; Access privileges Schema | Name | Type | Access privileges | Column access privileges --------+----------+-------+--------------------------------------------------+-------------------------- - public | deptest1 | table | regression_user0=arwdDxt/regression_user0 | - : regression_user1=a*r*w*d*D*x*t*/regression_user0 - : regression_user2=arwdDxt/regression_user1 + public | deptest1 | table | regression_user0=arwdDxt/regression_user0 +| + | | | regression_user1=a*r*w*d*D*x*t*/regression_user0+| + | | | regression_user2=arwdDxt/regression_user1 | (1 row) DROP OWNED BY regression_user1; diff --git a/src/test/regress/expected/foreign_data.out b/src/test/regress/expected/foreign_data.out index f8dd6e8773d..bb3d167a2bb 100644 --- a/src/test/regress/expected/foreign_data.out +++ b/src/test/regress/expected/foreign_data.out @@ -366,14 +366,14 @@ GRANT USAGE ON FOREIGN SERVER s6 TO regress_test_role2 WITH GRANT OPTION; List of foreign servers Name | Owner | Foreign-data wrapper | Access privileges | Type | Version | Options ------+-------------------+----------------------+-----------------------------------------+--------+---------+------------------------------ - s1 | foreign_data_user | foo | foreign_data_user=U/foreign_data_user | | 1.0 | {servername=s1} - : regress_test_role=U/foreign_data_user + s1 | foreign_data_user | foo | foreign_data_user=U/foreign_data_user +| | 1.0 | {servername=s1} + | | | regress_test_role=U/foreign_data_user | | | s2 | foreign_data_user | foo | | | 1.1 | {host=a,dbname=b} s3 | foreign_data_user | foo | | oracle | | {tnsname=orcl,port=1521} s4 | foreign_data_user | foo | | oracle | | {host=a,dbname=b} s5 | foreign_data_user | foo | | | 15.0 | - s6 | foreign_data_user | foo | foreign_data_user=U/foreign_data_user | | 16.0 | {host=a,dbname=b} - : regress_test_role2=U*/foreign_data_user + s6 | foreign_data_user | foo | foreign_data_user=U/foreign_data_user +| | 16.0 | {host=a,dbname=b} + | | | regress_test_role2=U*/foreign_data_user | | | s7 | foreign_data_user | foo | | oracle | 17.0 | {host=a,dbname=b} s8 | foreign_data_user | postgresql | | | | {host=localhost,dbname=s8db} t1 | regress_test_role | foo | | | | @@ -417,14 +417,14 @@ access to foreign-data wrapper foo List of foreign servers Name | Owner | Foreign-data wrapper | Access privileges | Type | Version | Options ------+-----------------------+----------------------+-----------------------------------------+--------+---------+--------------------------------- - s1 | regress_test_indirect | foo | foreign_data_user=U/foreign_data_user | | 1.1 | {servername=s1} - : regress_test_role=U/foreign_data_user + s1 | regress_test_indirect | foo | foreign_data_user=U/foreign_data_user +| | 1.1 | {servername=s1} + | | | regress_test_role=U/foreign_data_user | | | s2 | foreign_data_user | foo | | | 1.1 | {host=a,dbname=b} s3 | foreign_data_user | foo | | oracle | | {tnsname=orcl,port=1521} s4 | foreign_data_user | foo | | oracle | | {host=a,dbname=b} s5 | foreign_data_user | foo | | | 15.0 | - s6 | foreign_data_user | foo | foreign_data_user=U/foreign_data_user | | 16.0 | {host=a,dbname=b} - : regress_test_role2=U*/foreign_data_user + s6 | foreign_data_user | foo | foreign_data_user=U/foreign_data_user +| | 16.0 | {host=a,dbname=b} + | | | regress_test_role2=U*/foreign_data_user | | | s7 | foreign_data_user | foo | | oracle | 17.0 | {host=a,dbname=b} s8 | foreign_data_user | postgresql | | | | {dbname=db1,connect_timeout=30} t1 | regress_test_role | foo | | | | diff --git a/src/test/regress/expected/foreign_key.out b/src/test/regress/expected/foreign_key.out index c805322b6d9..33e0edba03a 100644 --- a/src/test/regress/expected/foreign_key.out +++ b/src/test/regress/expected/foreign_key.out @@ -85,10 +85,10 @@ INSERT INTO FKTABLE VALUES (NULL, NULL, 0); -- Insert failed rows into FK TABLE INSERT INTO FKTABLE VALUES (100, 2, 4); ERROR: insert or update on table "fktable" violates foreign key constraint "constrname" -DETAIL: Key (ftest1,ftest2)=(100,2) is not present in table "pktable". +DETAIL: Key (ftest1, ftest2)=(100, 2) is not present in table "pktable". INSERT INTO FKTABLE VALUES (2, 2, 4); ERROR: insert or update on table "fktable" violates foreign key constraint "constrname" -DETAIL: Key (ftest1,ftest2)=(2,2) is not present in table "pktable". +DETAIL: Key (ftest1, ftest2)=(2, 2) is not present in table "pktable". INSERT INTO FKTABLE VALUES (NULL, 2, 4); ERROR: insert or update on table "fktable" violates foreign key constraint "constrname" DETAIL: MATCH FULL does not allow mixing of null and nonnull key values. @@ -195,10 +195,10 @@ INSERT INTO FKTABLE VALUES (NULL, NULL, 0); -- Insert failed rows into FK TABLE INSERT INTO FKTABLE VALUES (100, 2, 4); ERROR: insert or update on table "fktable" violates foreign key constraint "constrname2" -DETAIL: Key (ftest1,ftest2)=(100,2) is not present in table "pktable". +DETAIL: Key (ftest1, ftest2)=(100, 2) is not present in table "pktable". INSERT INTO FKTABLE VALUES (2, 2, 4); ERROR: insert or update on table "fktable" violates foreign key constraint "constrname2" -DETAIL: Key (ftest1,ftest2)=(2,2) is not present in table "pktable". +DETAIL: Key (ftest1, ftest2)=(2, 2) is not present in table "pktable". INSERT INTO FKTABLE VALUES (NULL, 2, 4); ERROR: insert or update on table "fktable" violates foreign key constraint "constrname2" DETAIL: MATCH FULL does not allow mixing of null and nonnull key values. @@ -359,7 +359,7 @@ INSERT INTO FKTABLE VALUES (NULL, 3, 4, 5); -- Insert a failed values INSERT INTO FKTABLE VALUES (1, 2, 7, 6); ERROR: insert or update on table "fktable" violates foreign key constraint "constrname3" -DETAIL: Key (ftest1,ftest2,ftest3)=(1,2,7) is not present in table "pktable". +DETAIL: Key (ftest1, ftest2, ftest3)=(1, 2, 7) is not present in table "pktable". -- Show FKTABLE SELECT * from FKTABLE; ftest1 | ftest2 | ftest3 | ftest4 @@ -374,13 +374,13 @@ SELECT * from FKTABLE; -- Try to update something that should fail UPDATE PKTABLE set ptest2=5 where ptest2=2; ERROR: update or delete on table "pktable" violates foreign key constraint "constrname3" on table "fktable" -DETAIL: Key (ptest1,ptest2,ptest3)=(1,2,3) is still referenced from table "fktable". +DETAIL: Key (ptest1, ptest2, ptest3)=(1, 2, 3) is still referenced from table "fktable". -- Try to update something that should succeed UPDATE PKTABLE set ptest1=1 WHERE ptest2=3; -- Try to delete something that should fail DELETE FROM PKTABLE where ptest1=1 and ptest2=2 and ptest3=3; ERROR: update or delete on table "pktable" violates foreign key constraint "constrname3" on table "fktable" -DETAIL: Key (ptest1,ptest2,ptest3)=(1,2,3) is still referenced from table "fktable". +DETAIL: Key (ptest1, ptest2, ptest3)=(1, 2, 3) is still referenced from table "fktable". -- Try to delete something that should work DELETE FROM PKTABLE where ptest1=2; -- Show PKTABLE and FKTABLE @@ -424,7 +424,7 @@ INSERT INTO FKTABLE VALUES (NULL, 3, 4, 5); -- Insert a failed values INSERT INTO FKTABLE VALUES (1, 2, 7, 6); ERROR: insert or update on table "fktable" violates foreign key constraint "constrname3" -DETAIL: Key (ftest1,ftest2,ftest3)=(1,2,7) is not present in table "pktable". +DETAIL: Key (ftest1, ftest2, ftest3)=(1, 2, 7) is not present in table "pktable". -- Show FKTABLE SELECT * from FKTABLE; ftest1 | ftest2 | ftest3 | ftest4 @@ -522,7 +522,7 @@ INSERT INTO FKTABLE VALUES (NULL, 3, 4, 5); -- Insert a failed values INSERT INTO FKTABLE VALUES (1, 2, 7, 6); ERROR: insert or update on table "fktable" violates foreign key constraint "constrname3" -DETAIL: Key (ftest1,ftest2,ftest3)=(1,2,7) is not present in table "pktable". +DETAIL: Key (ftest1, ftest2, ftest3)=(1, 2, 7) is not present in table "pktable". -- Show FKTABLE SELECT * from FKTABLE; ftest1 | ftest2 | ftest3 | ftest4 @@ -628,7 +628,7 @@ INSERT INTO FKTABLE VALUES (NULL, 3, 4, 5); -- Insert a failed values INSERT INTO FKTABLE VALUES (1, 2, 7, 6); ERROR: insert or update on table "fktable" violates foreign key constraint "constrname3" -DETAIL: Key (ftest1,ftest2,ftest3)=(1,2,7) is not present in table "pktable". +DETAIL: Key (ftest1, ftest2, ftest3)=(1, 2, 7) is not present in table "pktable". -- Show FKTABLE SELECT * from FKTABLE; ftest1 | ftest2 | ftest3 | ftest4 @@ -645,7 +645,7 @@ SELECT * from FKTABLE; -- Try to update something that will fail UPDATE PKTABLE set ptest2=5 where ptest2=2; ERROR: insert or update on table "fktable" violates foreign key constraint "constrname3" -DETAIL: Key (ftest1,ftest2,ftest3)=(1,-1,3) is not present in table "pktable". +DETAIL: Key (ftest1, ftest2, ftest3)=(1, -1, 3) is not present in table "pktable". -- Try to update something that will set default UPDATE PKTABLE set ptest1=0, ptest2=5, ptest3=10 where ptest2=2; UPDATE PKTABLE set ptest2=10 where ptest2=4; @@ -896,19 +896,19 @@ insert into pktable(base1, ptest1) values (2, 2); -- let's insert a non-existant fktable value insert into fktable(ftest1, ftest2) values (3, 1); ERROR: insert or update on table "fktable" violates foreign key constraint "fktable_ftest1_fkey" -DETAIL: Key (ftest1,ftest2)=(3,1) is not present in table "pktable". +DETAIL: Key (ftest1, ftest2)=(3, 1) is not present in table "pktable". -- let's make a valid row for that insert into pktable(base1,ptest1) values (3, 1); insert into fktable(ftest1, ftest2) values (3, 1); -- let's try removing a row that should fail from pktable delete from pktable where base1>2; ERROR: update or delete on table "pktable" violates foreign key constraint "fktable_ftest1_fkey" on table "fktable" -DETAIL: Key (base1,ptest1)=(3,1) is still referenced from table "fktable". +DETAIL: Key (base1, ptest1)=(3, 1) is still referenced from table "fktable". -- okay, let's try updating all of the base1 values to *4 -- which should fail. update pktable set base1=base1*4; ERROR: update or delete on table "pktable" violates foreign key constraint "fktable_ftest1_fkey" on table "fktable" -DETAIL: Key (base1,ptest1)=(3,1) is still referenced from table "fktable". +DETAIL: Key (base1, ptest1)=(3, 1) is still referenced from table "fktable". -- okay, let's try an update that should work. update pktable set base1=base1*4 where base1<3; -- and a delete that should work @@ -929,15 +929,15 @@ insert into pktable (base1, ptest1, base2, ptest2) values (1, 3, 2, 2); -- fails (3,2) isn't in base1, ptest1 insert into pktable (base1, ptest1, base2, ptest2) values (2, 3, 3, 2); ERROR: insert or update on table "pktable" violates foreign key constraint "pktable_base2_fkey" -DETAIL: Key (base2,ptest2)=(3,2) is not present in table "pktable". +DETAIL: Key (base2, ptest2)=(3, 2) is not present in table "pktable". -- fails (2,2) is being referenced delete from pktable where base1=2; ERROR: update or delete on table "pktable" violates foreign key constraint "pktable_base2_fkey" on table "pktable" -DETAIL: Key (base1,ptest1)=(2,2) is still referenced from table "pktable". +DETAIL: Key (base1, ptest1)=(2, 2) is still referenced from table "pktable". -- fails (1,1) is being referenced (twice) update pktable set base1=3 where base1=1; ERROR: update or delete on table "pktable" violates foreign key constraint "pktable_base2_fkey" on table "pktable" -DETAIL: Key (base1,ptest1)=(1,1) is still referenced from table "pktable". +DETAIL: Key (base1, ptest1)=(1, 1) is still referenced from table "pktable". -- this sequence of two deletes will work, since after the first there will be no (2,*) references delete from pktable where base2=2; delete from pktable where base1=2; diff --git a/src/test/regress/expected/guc.out b/src/test/regress/expected/guc.out index 1fd2b98f6e8..83cacbdd209 100644 --- a/src/test/regress/expected/guc.out +++ b/src/test/regress/expected/guc.out @@ -685,7 +685,7 @@ language plpgsql set work_mem = '1MB'; select myfunc(0); ERROR: division by zero -CONTEXT: SQL statement "SELECT 1/ $1 " +CONTEXT: SQL statement "SELECT 1/$1" PL/pgSQL function "myfunc" line 3 at PERFORM select current_setting('work_mem'); current_setting diff --git a/src/test/regress/expected/prepare.out b/src/test/regress/expected/prepare.out index 610f2591235..7016e82bd42 100644 --- a/src/test/regress/expected/prepare.out +++ b/src/test/regress/expected/prepare.out @@ -154,20 +154,20 @@ SELECT name, statement, parameter_types FROM pg_prepared_statements ORDER BY name; name | statement | parameter_types ------+---------------------------------------------------------------------+-------------------------------------------------------- - q2 | PREPARE q2(text) AS | {text} - : SELECT datname, datistemplate, datallowconn - : FROM pg_database WHERE datname = $1; - q3 | PREPARE q3(text, int, float, boolean, oid, smallint) AS | {text,integer,"double precision",boolean,oid,smallint} - : SELECT * FROM tenk1 WHERE string4 = $1 AND (four = $2 OR - : ten = $3::bigint OR true = $4 OR oid = $5 OR odd = $6::int) - : ORDER BY unique1; - q5 | PREPARE q5(int, text) AS | {integer,text} - : SELECT * FROM tenk1 WHERE unique1 = $1 OR stringu1 = $2 - : ORDER BY unique1; - q6 | PREPARE q6 AS | {integer,name} - : SELECT * FROM tenk1 WHERE unique1 = $1 AND stringu1 = $2; - q7 | PREPARE q7(unknown) AS | {path} - : SELECT * FROM road WHERE thepath = $1; + q2 | PREPARE q2(text) AS +| {text} + | SELECT datname, datistemplate, datallowconn +| + | FROM pg_database WHERE datname = $1; | + q3 | PREPARE q3(text, int, float, boolean, oid, smallint) AS +| {text,integer,"double precision",boolean,oid,smallint} + | SELECT * FROM tenk1 WHERE string4 = $1 AND (four = $2 OR +| + | ten = $3::bigint OR true = $4 OR oid = $5 OR odd = $6::int)+| + | ORDER BY unique1; | + q5 | PREPARE q5(int, text) AS +| {integer,text} + | SELECT * FROM tenk1 WHERE unique1 = $1 OR stringu1 = $2 +| + | ORDER BY unique1; | + q6 | PREPARE q6 AS +| {integer,name} + | SELECT * FROM tenk1 WHERE unique1 = $1 AND stringu1 = $2; | + q7 | PREPARE q7(unknown) AS +| {path} + | SELECT * FROM road WHERE thepath = $1; | (5 rows) -- test DEALLOCATE ALL; diff --git a/src/test/regress/expected/triggers.out b/src/test/regress/expected/triggers.out index aa740833800..2e305e699c6 100644 --- a/src/test/regress/expected/triggers.out +++ b/src/test/regress/expected/triggers.out @@ -377,10 +377,10 @@ SELECT * FROM main_table ORDER BY a, b; SELECT pg_get_triggerdef(oid, true) FROM pg_trigger WHERE tgrelid = 'main_table'::regclass AND tgname = 'modified_a'; pg_get_triggerdef -------------------------------------------------- - CREATE TRIGGER modified_a - BEFORE UPDATE OF a ON main_table - FOR EACH ROW - WHEN (old.a <> new.a) + CREATE TRIGGER modified_a + + BEFORE UPDATE OF a ON main_table + + FOR EACH ROW + + WHEN (old.a <> new.a) + EXECUTE PROCEDURE trigger_func('modified_a') (1 row) @@ -393,10 +393,10 @@ SELECT pg_get_triggerdef(oid, false) FROM pg_trigger WHERE tgrelid = 'main_table SELECT pg_get_triggerdef(oid, true) FROM pg_trigger WHERE tgrelid = 'main_table'::regclass AND tgname = 'modified_any'; pg_get_triggerdef ---------------------------------------------------- - CREATE TRIGGER modified_any - BEFORE UPDATE OF a ON main_table - FOR EACH ROW - WHEN (old.* IS DISTINCT FROM new.*) + CREATE TRIGGER modified_any + + BEFORE UPDATE OF a ON main_table + + FOR EACH ROW + + WHEN (old.* IS DISTINCT FROM new.*) + EXECUTE PROCEDURE trigger_func('modified_any') (1 row) @@ -427,9 +427,9 @@ SELECT pg_get_triggerdef(oid) FROM pg_trigger WHERE tgrelid = 'main_table'::regc SELECT pg_get_triggerdef(oid, true) FROM pg_trigger WHERE tgrelid = 'main_table'::regclass AND tgname = 'after_upd_a_b_row_trig'; pg_get_triggerdef --------------------------------------------------------- - CREATE TRIGGER after_upd_a_b_row_trig - AFTER UPDATE OF a, b ON main_table - FOR EACH ROW + CREATE TRIGGER after_upd_a_b_row_trig + + AFTER UPDATE OF a, b ON main_table + + FOR EACH ROW + EXECUTE PROCEDURE trigger_func('after_upd_a_b_row') (1 row) diff --git a/src/test/regress/expected/tsearch.out b/src/test/regress/expected/tsearch.out index 04b75dc6d0b..1cd9186d692 100644 --- a/src/test/regress/expected/tsearch.out +++ b/src/test/regress/expected/tsearch.out @@ -344,8 +344,8 @@ SELECT * FROM ts_parse('default', '345 qwe@efd.r '' http://www.com/ http://aew.w 3 | ewri2 12 | 13 | <a href="qwe<qwe>"> - 12 | - : + 12 | + + | 19 | /usr/local/fff 12 | 19 | /awdf/dwqe/4325 @@ -377,8 +377,8 @@ SELECT * FROM ts_parse('default', '345 qwe@efd.r '' http://www.com/ http://aew.w 20 | -4.2 12 | . 22 | 234 - 12 | - : + 12 | + + | 12 | < 1 | i 12 | @@ -559,9 +559,9 @@ S. T. Coleridge (1772-1834) ', to_tsquery('english', 'paint&water')); ts_headline ----------------------------------------- - <b>painted</b> Ocean. - <b>Water</b>, <b>water</b>, every where - And all the boards did shrink; + <b>painted</b> Ocean. + + <b>Water</b>, <b>water</b>, every where+ + And all the boards did shrink; + <b>Water</b>, <b>water</b>, every (1 row) @@ -578,9 +578,9 @@ S. T. Coleridge (1772-1834) ', to_tsquery('english', 'breath&motion&water')); ts_headline ---------------------------------- - <b>breath</b> nor <b>motion</b>, - As idle as a painted Ship - Upon a painted Ocean. + <b>breath</b> nor <b>motion</b>,+ + As idle as a painted Ship + + Upon a painted Ocean. + <b>Water</b>, <b>water</b> (1 row) @@ -597,9 +597,9 @@ S. T. Coleridge (1772-1834) ', to_tsquery('english', 'ocean')); ts_headline ---------------------------------- - <b>Ocean</b>. - Water, water, every where - And all the boards did shrink; + <b>Ocean</b>. + + Water, water, every where + + And all the boards did shrink;+ Water, water, every where (1 row) @@ -618,17 +618,17 @@ ff-bg to_tsquery('english', 'sea&foo'), 'HighlightAll=true'); ts_headline ----------------------------------------------------------------------------- - - <html> - <!-- some comment --> - <body> - <b>Sea</b> view wow <u><b>foo</b> bar</u> <i>qq</i> - <a href="http://www.google.com/foo.bar.html" target="_blank">YES </a> - ff-bg - <script> - document.write(15); - </script> - </body> + + + <html> + + <!-- some comment --> + + <body> + + <b>Sea</b> view wow <u><b>foo</b> bar</u> <i>qq</i> + + <a href="http://www.google.com/foo.bar.html" target="_blank">YES </a>+ + ff-bg + + <script> + + document.write(15); + + </script> + + </body> + </html> (1 row) @@ -646,13 +646,13 @@ S. T. Coleridge (1772-1834) ', to_tsquery('english', 'ocean'), 'MaxFragments=1'); ts_headline ------------------------------------ - after day, - We stuck, nor breath nor motion, - As idle as a painted Ship - Upon a painted <b>Ocean</b>. - Water, water, every where - And all the boards did shrink; - Water, water, every where, + after day, + + We stuck, nor breath nor motion,+ + As idle as a painted Ship + + Upon a painted <b>Ocean</b>. + + Water, water, every where + + And all the boards did shrink; + + Water, water, every where, + Nor any drop (1 row) @@ -670,13 +670,13 @@ S. T. Coleridge (1772-1834) ', to_tsquery('english', 'Coleridge & stuck'), 'MaxFragments=2'); ts_headline ---------------------------------------------- - after day, day after day, - We <b>stuck</b>, nor breath nor motion, - As idle as a painted Ship - Upon a painted Ocean. - Water, water, every where - And all the boards did shrink; - Water, water, every where ... drop to drink. + after day, day after day, + + We <b>stuck</b>, nor breath nor motion, + + As idle as a painted Ship + + Upon a painted Ocean. + + Water, water, every where + + And all the boards did shrink; + + Water, water, every where ... drop to drink.+ S. T. <b>Coleridge</b> (1 row) @@ -694,9 +694,9 @@ S. T. Coleridge (1772-1834) ', to_tsquery('english', 'ocean & seahorse'), 'MaxFragments=1'); ts_headline ------------------------------------ - - Day after day, day after day, - We stuck, nor breath nor motion, + + + Day after day, day after day, + + We stuck, nor breath nor motion,+ As idle as (1 row) @@ -714,13 +714,13 @@ S. T. Coleridge (1772-1834) ', to_tsquery('english', 'Coleridge & stuck'), 'MaxFragments=2,FragmentDelimiter=***'); ts_headline -------------------------------------------- - after day, day after day, - We <b>stuck</b>, nor breath nor motion, - As idle as a painted Ship - Upon a painted Ocean. - Water, water, every where - And all the boards did shrink; - Water, water, every where***drop to drink. + after day, day after day, + + We <b>stuck</b>, nor breath nor motion, + + As idle as a painted Ship + + Upon a painted Ocean. + + Water, water, every where + + And all the boards did shrink; + + Water, water, every where***drop to drink.+ S. T. <b>Coleridge</b> (1 row) diff --git a/src/test/regress/expected/with.out b/src/test/regress/expected/with.out index a3e94e93d49..e46ed78ae69 100644 --- a/src/test/regress/expected/with.out +++ b/src/test/regress/expected/with.out @@ -279,16 +279,16 @@ SELECT pg_get_viewdef('vsubdepartment'::regclass); SELECT pg_get_viewdef('vsubdepartment'::regclass, true); pg_get_viewdef -------------------------------------------------------------------------------------- - WITH RECURSIVE subdepartment AS ( - SELECT department.id, department.parent_department, department.name - FROM department - WHERE department.name = 'A'::text - UNION ALL - SELECT d.id, d.parent_department, d.name - FROM department d, subdepartment sd - WHERE d.parent_department = sd.id - ) - SELECT subdepartment.id, subdepartment.parent_department, subdepartment.name + WITH RECURSIVE subdepartment AS ( + + SELECT department.id, department.parent_department, department.name+ + FROM department + + WHERE department.name = 'A'::text + + UNION ALL + + SELECT d.id, d.parent_department, d.name + + FROM department d, subdepartment sd + + WHERE d.parent_department = sd.id + + ) + + SELECT subdepartment.id, subdepartment.parent_department, subdepartment.name + FROM subdepartment; (1 row) |
