- Notifications
You must be signed in to change notification settings - Fork28
Commit99f3b56
committed
Disallow newlines in parameter values to be set in ALTER SYSTEM.
As noted by Julian Schauder in bug #14063, the configuration-file parserdoesn't support embedded newlines in string literals. While there mightsomeday be a good reason to remove that restriction, there doesn't seemto be one right now. However, ALTER SYSTEM SET could accept stringscontaining newlines, since many of the variable-specific value-checkingroutines would just see a newline as whitespace. This led to writing apostgresql.auto.conf file that was broken and had to be removed manually.Pending a reason to work harder, just throw an error if someone tries this.In passing, fix several places in the ALTER SYSTEM logic that failed toprovide an errcode() for an ereport(), and thus would falsely log thefailure as an internal XX000 error.Back-patch to 9.4 where ALTER SYSTEM was introduced.1 parent890614d commit99f3b56
1 file changed
+20
-3
lines changedLines changed: 20 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7000 | 7000 |
| |
7001 | 7001 |
| |
7002 | 7002 |
| |
| 7003 | + | |
| 7004 | + | |
| 7005 | + | |
7003 | 7006 |
| |
7004 | 7007 |
| |
7005 | 7008 |
| |
7006 | 7009 |
| |
7007 | 7010 |
| |
| 7011 | + | |
7008 | 7012 |
| |
7009 | 7013 |
| |
7010 | 7014 |
| |
7011 | 7015 |
| |
7012 |
| - | |
| 7016 | + | |
| 7017 | + | |
7013 | 7018 |
| |
7014 | 7019 |
| |
7015 | 7020 |
| |
7016 | 7021 |
| |
7017 | 7022 |
| |
7018 | 7023 |
| |
| 7024 | + | |
| 7025 | + | |
| 7026 | + | |
| 7027 | + | |
| 7028 | + | |
| 7029 | + | |
| 7030 | + | |
| 7031 | + | |
| 7032 | + | |
| 7033 | + | |
7019 | 7034 |
| |
7020 | 7035 |
| |
7021 | 7036 |
| |
| |||
7052 | 7067 |
| |
7053 | 7068 |
| |
7054 | 7069 |
| |
7055 |
| - | |
| 7070 | + | |
| 7071 | + | |
7056 | 7072 |
| |
7057 | 7073 |
| |
7058 | 7074 |
| |
7059 | 7075 |
| |
7060 | 7076 |
| |
7061 |
| - | |
| 7077 | + | |
| 7078 | + | |
7062 | 7079 |
| |
7063 | 7080 |
| |
7064 | 7081 |
| |
|
0 commit comments
Comments
(0)