- Notifications
You must be signed in to change notification settings - Fork5
Commitd166eed
committed
Fix indentation of JOIN clauses in rule/view dumps.
The code attempted to outdent JOIN clauses further left than the parentFROM keyword, which was odd in any case, and led to inconsistent formattingsince in simple cases the clauses couldn't be moved any further left thanthat. And it left a permanent decrement of the indentation level, causingsubsequent lines to be much further left than they should be (again, thiscouldn't be seen in simple cases for lack of indentation to give up).After a little experimentation I chose to make it indent JOIN keywordstwo spaces from the parent FROM, which is one space more than the join'slefthand input in cases where that appears on a different line from FROM.Back-patch to 9.3. This is a purely cosmetic change, and the bug is quiteold, so that may seem arbitrary; but we are going to be making some otherchanges to the indentation behavior in both HEAD and 9.3, so it seemsreasonable to include this in 9.3 too. I committed this one first becauseits effects are more visible in the regression test results as theycurrently stand than they will be later.1 parent5358bfd commitd166eed
File tree
4 files changed
+403
-401
lines changed- src
- backend/utils/adt
- test/regress/expected
4 files changed
+403
-401
lines changedLines changed: 16 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
68 | 68 |
| |
69 | 69 |
| |
70 | 70 |
| |
71 |
| - | |
72 |
| - | |
| 71 | + | |
73 | 72 |
| |
74 | 73 |
| |
75 | 74 |
| |
| |||
8378 | 8377 |
| |
8379 | 8378 |
| |
8380 | 8379 |
| |
8381 |
| - | |
8382 |
| - | |
| 8380 | + | |
| 8381 | + | |
| 8382 | + | |
8383 | 8383 |
| |
8384 | 8384 |
| |
8385 |
| - | |
8386 |
| - | |
| 8385 | + | |
| 8386 | + | |
| 8387 | + | |
8387 | 8388 |
| |
8388 | 8389 |
| |
8389 | 8390 |
| |
8390 |
| - | |
8391 |
| - | |
| 8391 | + | |
| 8392 | + | |
| 8393 | + | |
8392 | 8394 |
| |
8393 | 8395 |
| |
8394 | 8396 |
| |
8395 |
| - | |
8396 |
| - | |
| 8397 | + | |
| 8398 | + | |
| 8399 | + | |
8397 | 8400 |
| |
8398 | 8401 |
| |
8399 | 8402 |
| |
8400 |
| - | |
8401 |
| - | |
| 8403 | + | |
| 8404 | + | |
| 8405 | + | |
8402 | 8406 |
| |
8403 | 8407 |
| |
8404 | 8408 |
| |
| |||
8411 | 8415 |
| |
8412 | 8416 |
| |
8413 | 8417 |
| |
8414 |
| - | |
8415 |
| - | |
8416 | 8418 |
| |
8417 | 8419 |
| |
8418 | 8420 |
| |
|
0 commit comments
Comments
(0)