summaryrefslogtreecommitdiff
path: root/src/test/regress/expected/create_view.out
diff options
context:
space:
mode:
authorTom Lane2013-11-11 18:36:38 +0000
committerTom Lane2013-11-11 18:36:38 +0000
commit0b7e660d6c70f45e06f1b52f255116bcb44624eb (patch)
tree49faa3ec43ebd4d5aea1c0ba19680f486b3aeccb /src/test/regress/expected/create_view.out
parent648bd05b13b3624e494ae2996c2d2e0241cefe87 (diff)
Fix ruleutils pretty-printing to not generate trailing whitespace.
The pretty-printing logic in ruleutils.c operates by inserting a newline and some indentation whitespace into strings that are already valid SQL. This naturally results in leaving some trailing whitespace before the newline in many cases; which can be annoying when processing the output with other tools, as complained of by Joe Abbate. We can fix that in a pretty localized fashion by deleting any trailing whitespace before we append a pretty-printing newline. In addition, we have to modify the code inserted by commit 2f582f76b1945929ff07116cd4639747ce9bb8a1 so that we also delete trailing whitespace when transposing items from temporary buffers into the main result string, when a temporary item starts with a newline. This results in rather voluminous changes to the regression test results, but it's easily verified that they are only removal of trailing whitespace. Back-patch to 9.3, because the aforementioned commit resulted in many more cases of trailing whitespace than had occurred in earlier branches.
Diffstat (limited to 'src/test/regress/expected/create_view.out')
-rw-r--r--src/test/regress/expected/create_view.out96
1 files changed, 48 insertions, 48 deletions
diff --git a/src/test/regress/expected/create_view.out b/src/test/regress/expected/create_view.out
index 23efff16ff7..91d16396106 100644
--- a/src/test/regress/expected/create_view.out
+++ b/src/test/regress/expected/create_view.out
@@ -312,8 +312,8 @@ CREATE VIEW aliased_view_4 AS
f2 | integer | | plain |
f3 | text | | extended |
View definition:
- SELECT tt1.f1,
- tt1.f2,
+ SELECT tt1.f1,
+ tt1.f2,
tt1.f3
FROM tt1
WHERE (EXISTS ( SELECT 1
@@ -328,8 +328,8 @@ View definition:
f2 | integer | | plain |
f3 | text | | extended |
View definition:
- SELECT a1.f1,
- a1.f2,
+ SELECT a1.f1,
+ a1.f2,
a1.f3
FROM tt1 a1
WHERE (EXISTS ( SELECT 1
@@ -344,8 +344,8 @@ View definition:
f2 | integer | | plain |
f3 | text | | extended |
View definition:
- SELECT tt1.f1,
- tt1.f2,
+ SELECT tt1.f1,
+ tt1.f2,
tt1.f3
FROM tt1
WHERE (EXISTS ( SELECT 1
@@ -360,8 +360,8 @@ View definition:
f2 | integer | | plain |
f3 | text | | extended |
View definition:
- SELECT tt1.y1,
- tt1.f2,
+ SELECT tt1.y1,
+ tt1.f2,
tt1.f3
FROM temp_view_test.tt1
WHERE (EXISTS ( SELECT 1
@@ -377,8 +377,8 @@ ALTER TABLE tx1 RENAME TO a1;
f2 | integer | | plain |
f3 | text | | extended |
View definition:
- SELECT tt1.f1,
- tt1.f2,
+ SELECT tt1.f1,
+ tt1.f2,
tt1.f3
FROM tt1
WHERE (EXISTS ( SELECT 1
@@ -393,8 +393,8 @@ View definition:
f2 | integer | | plain |
f3 | text | | extended |
View definition:
- SELECT a1.f1,
- a1.f2,
+ SELECT a1.f1,
+ a1.f2,
a1.f3
FROM tt1 a1
WHERE (EXISTS ( SELECT 1
@@ -409,8 +409,8 @@ View definition:
f2 | integer | | plain |
f3 | text | | extended |
View definition:
- SELECT tt1.f1,
- tt1.f2,
+ SELECT tt1.f1,
+ tt1.f2,
tt1.f3
FROM tt1
WHERE (EXISTS ( SELECT 1
@@ -425,8 +425,8 @@ View definition:
f2 | integer | | plain |
f3 | text | | extended |
View definition:
- SELECT tt1.y1,
- tt1.f2,
+ SELECT tt1.y1,
+ tt1.f2,
tt1.f3
FROM temp_view_test.tt1
WHERE (EXISTS ( SELECT 1
@@ -442,8 +442,8 @@ ALTER TABLE tt1 RENAME TO a2;
f2 | integer | | plain |
f3 | text | | extended |
View definition:
- SELECT a2.f1,
- a2.f2,
+ SELECT a2.f1,
+ a2.f2,
a2.f3
FROM a2
WHERE (EXISTS ( SELECT 1
@@ -458,8 +458,8 @@ View definition:
f2 | integer | | plain |
f3 | text | | extended |
View definition:
- SELECT a1.f1,
- a1.f2,
+ SELECT a1.f1,
+ a1.f2,
a1.f3
FROM a2 a1
WHERE (EXISTS ( SELECT 1
@@ -474,8 +474,8 @@ View definition:
f2 | integer | | plain |
f3 | text | | extended |
View definition:
- SELECT a2.f1,
- a2.f2,
+ SELECT a2.f1,
+ a2.f2,
a2.f3
FROM a2
WHERE (EXISTS ( SELECT 1
@@ -490,8 +490,8 @@ View definition:
f2 | integer | | plain |
f3 | text | | extended |
View definition:
- SELECT tt1.y1,
- tt1.f2,
+ SELECT tt1.y1,
+ tt1.f2,
tt1.f3
FROM temp_view_test.tt1
WHERE (EXISTS ( SELECT 1
@@ -507,8 +507,8 @@ ALTER TABLE a1 RENAME TO tt1;
f2 | integer | | plain |
f3 | text | | extended |
View definition:
- SELECT a2.f1,
- a2.f2,
+ SELECT a2.f1,
+ a2.f2,
a2.f3
FROM a2
WHERE (EXISTS ( SELECT 1
@@ -523,8 +523,8 @@ View definition:
f2 | integer | | plain |
f3 | text | | extended |
View definition:
- SELECT a1.f1,
- a1.f2,
+ SELECT a1.f1,
+ a1.f2,
a1.f3
FROM a2 a1
WHERE (EXISTS ( SELECT 1
@@ -539,8 +539,8 @@ View definition:
f2 | integer | | plain |
f3 | text | | extended |
View definition:
- SELECT a2.f1,
- a2.f2,
+ SELECT a2.f1,
+ a2.f2,
a2.f3
FROM a2
WHERE (EXISTS ( SELECT 1
@@ -555,8 +555,8 @@ View definition:
f2 | integer | | plain |
f3 | text | | extended |
View definition:
- SELECT tt1.y1,
- tt1.f2,
+ SELECT tt1.y1,
+ tt1.f2,
tt1.f3
FROM temp_view_test.tt1
WHERE (EXISTS ( SELECT 1
@@ -573,8 +573,8 @@ ALTER TABLE tx1 SET SCHEMA temp_view_test;
f2 | integer | | plain |
f3 | text | | extended |
View definition:
- SELECT tx1.f1,
- tx1.f2,
+ SELECT tx1.f1,
+ tx1.f2,
tx1.f3
FROM temp_view_test.tx1
WHERE (EXISTS ( SELECT 1
@@ -589,8 +589,8 @@ View definition:
f2 | integer | | plain |
f3 | text | | extended |
View definition:
- SELECT a1.f1,
- a1.f2,
+ SELECT a1.f1,
+ a1.f2,
a1.f3
FROM temp_view_test.tx1 a1
WHERE (EXISTS ( SELECT 1
@@ -605,8 +605,8 @@ View definition:
f2 | integer | | plain |
f3 | text | | extended |
View definition:
- SELECT tx1.f1,
- tx1.f2,
+ SELECT tx1.f1,
+ tx1.f2,
tx1.f3
FROM temp_view_test.tx1
WHERE (EXISTS ( SELECT 1
@@ -621,8 +621,8 @@ View definition:
f2 | integer | | plain |
f3 | text | | extended |
View definition:
- SELECT tt1.y1,
- tt1.f2,
+ SELECT tt1.y1,
+ tt1.f2,
tt1.f3
FROM temp_view_test.tt1
WHERE (EXISTS ( SELECT 1
@@ -640,8 +640,8 @@ ALTER TABLE tmp1 RENAME TO tx1;
f2 | integer | | plain |
f3 | text | | extended |
View definition:
- SELECT tx1.f1,
- tx1.f2,
+ SELECT tx1.f1,
+ tx1.f2,
tx1.f3
FROM temp_view_test.tx1
WHERE (EXISTS ( SELECT 1
@@ -656,8 +656,8 @@ View definition:
f2 | integer | | plain |
f3 | text | | extended |
View definition:
- SELECT a1.f1,
- a1.f2,
+ SELECT a1.f1,
+ a1.f2,
a1.f3
FROM temp_view_test.tx1 a1
WHERE (EXISTS ( SELECT 1
@@ -672,8 +672,8 @@ View definition:
f2 | integer | | plain |
f3 | text | | extended |
View definition:
- SELECT tx1.f1,
- tx1.f2,
+ SELECT tx1.f1,
+ tx1.f2,
tx1.f3
FROM temp_view_test.tx1
WHERE (EXISTS ( SELECT 1
@@ -688,8 +688,8 @@ View definition:
f2 | integer | | plain |
f3 | text | | extended |
View definition:
- SELECT tx1.y1,
- tx1.f2,
+ SELECT tx1.y1,
+ tx1.f2,
tx1.f3
FROM tx1
WHERE (EXISTS ( SELECT 1