forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6e10631
committed
pg_dump test: Make concatenated create_sql commands more readable
When the pg_dump 002_pg_dump.pl test generates the command to load theschema, it does # Add terminating semicolon $create_sql{$test_db} .= $tests{$test}->{create_sql} . ";";In some cases, this creates a duplicate semicolon, but moreimportantly, this doesn't add any newline. So if you look at theresult in either the server log or intmp_check/log/regress_log_002_pg_dump, it looks like a complete mess.This patch makes the output look cleaner for manual inspection: addsemicolon only if necessary, and add two newlines.Discussion:https://www.postgresql.org/message-id/flat/d6aec95a-8729-43cc-2578-f2a5e46640e0%40enterprisedb.com1 parenta73952b commit6e10631
1 file changed
+6
-2
lines changedLines changed: 6 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3984 | 3984 |
| |
3985 | 3985 |
| |
3986 | 3986 |
| |
3987 |
| - | |
3988 |
| - | |
| 3987 | + | |
| 3988 | + | |
| 3989 | + | |
| 3990 | + | |
| 3991 | + | |
| 3992 | + | |
3989 | 3993 |
| |
3990 | 3994 |
| |
3991 | 3995 |
| |
|
0 commit comments
Comments
(0)