forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit38f4328
committed
Fix pg_isready to handle -d option properly.
Previously, -d option for pg_isready was broken. When the name of thedatabase was specified by -d option, pg_isready failed with an error.When the conninfo specified by -d option contained the setting of thehost name but not Numeric IP address (i.e., hostaddr), pg_isreadydisplayed wrong connection message. -d option could not handle a validURI prefix at all. This commit fixes these bugs of pg_isready.Backpatch to 9.3, where pg_isready was introduced.Per report from Josh Berkus and Robert Haas.Original patch by Fabrízio de Royes Mello, heavily modified by me.1 parent04eee1f commit38f4328
1 file changed
+16
-4
lines changedLines changed: 16 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
| 34 | + | |
34 | 35 |
| |
35 | 36 |
| |
36 | 37 |
| |
| |||
130 | 131 |
| |
131 | 132 |
| |
132 | 133 |
| |
133 |
| - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
134 | 138 |
| |
135 | 139 |
| |
136 | 140 |
| |
| |||
149 | 153 |
| |
150 | 154 |
| |
151 | 155 |
| |
152 |
| - | |
153 |
| - | |
| 156 | + | |
154 | 157 |
| |
155 | 158 |
| |
156 | 159 |
| |
| |||
161 | 164 |
| |
162 | 165 |
| |
163 | 166 |
| |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
164 | 174 |
| |
165 | 175 |
| |
166 | 176 |
| |
| |||
179 | 189 |
| |
180 | 190 |
| |
181 | 191 |
| |
182 |
| - | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
183 | 195 |
| |
184 | 196 |
| |
185 | 197 |
| |
|
0 commit comments
Comments
(0)