- Notifications
You must be signed in to change notification settings - Fork5k
Commit092f3c6
libpq: Add "servicefile" connection option
This commit adds the possibility to specify a service file in aconnection string, using a new option called "servicefile". The parsingof the service file happens so as things are done in this order ofpriority:- The servicefile connection option.- Environment variable PGSERVICEFILE.- Default path, depending on the HOME environment.Note that in the last default case, we need to fill in "servicefile" forthe connection's PQconninfoOption to let clients know which service filehas been used for the connection. Some TAP tests are added, with a fewtweaks required for Windows when using URIs or connection option values,for the location paths.Author: Torsten Förtsch <tfoertsch123@gmail.com>Co-authored-by: Ryo Kanbayashi <kanbayashi.dev@gmail.com>Discussion:https://postgr.es/m/CAKkG4_nCjx3a_F3gyXHSPWxD8Sd8URaM89wey7fG_9g7KBkOCQ@mail.gmail.com1 parent8893c3a commit092f3c6
File tree
4 files changed
+146
-13
lines changed- doc/src/sgml
- src/interfaces/libpq
- t
4 files changed
+146
-13
lines changedLines changed: 17 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2320 | 2320 |
| |
2321 | 2321 |
| |
2322 | 2322 |
| |
| 2323 | + | |
| 2324 | + | |
| 2325 | + | |
| 2326 | + | |
| 2327 | + | |
| 2328 | + | |
| 2329 | + | |
| 2330 | + | |
| 2331 | + | |
| 2332 | + | |
| 2333 | + | |
| 2334 | + | |
| 2335 | + | |
2323 | 2336 |
| |
2324 | 2337 |
| |
2325 | 2338 |
| |
| |||
9140 | 9153 |
| |
9141 | 9154 |
| |
9142 | 9155 |
| |
9143 |
| - | |
9144 |
| - | |
9145 |
| - | |
9146 |
| - | |
9147 |
| - | |
9148 |
| - | |
| 9156 | + | |
| 9157 | + | |
9149 | 9158 |
| |
9150 | 9159 |
| |
9151 | 9160 |
| |
| |||
9576 | 9585 |
| |
9577 | 9586 |
| |
9578 | 9587 |
| |
9579 |
| - | |
| 9588 | + | |
| 9589 | + | |
9580 | 9590 |
| |
9581 | 9591 |
| |
9582 | 9592 |
| |
|
Lines changed: 50 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
201 | 201 |
| |
202 | 202 |
| |
203 | 203 |
| |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
204 | 208 |
| |
205 | 209 |
| |
206 | 210 |
| |
| |||
5062 | 5066 |
| |
5063 | 5067 |
| |
5064 | 5068 |
| |
| 5069 | + | |
5065 | 5070 |
| |
5066 | 5071 |
| |
5067 | 5072 |
| |
| |||
5914 | 5919 |
| |
5915 | 5920 |
| |
5916 | 5921 |
| |
| 5922 | + | |
5917 | 5923 |
| |
5918 | 5924 |
| |
5919 | 5925 |
| |
| |||
5933 | 5939 |
| |
5934 | 5940 |
| |
5935 | 5941 |
| |
5936 |
| - | |
5937 |
| - | |
| 5942 | + | |
| 5943 | + | |
| 5944 | + | |
5938 | 5945 |
| |
5939 |
| - | |
| 5946 | + | |
| 5947 | + | |
| 5948 | + | |
5940 | 5949 |
| |
5941 | 5950 |
| |
5942 | 5951 |
| |
| |||
6092 | 6101 |
| |
6093 | 6102 |
| |
6094 | 6103 |
| |
6095 |
| - | |
| 6104 | + | |
| 6105 | + | |
| 6106 | + | |
| 6107 | + | |
| 6108 | + | |
| 6109 | + | |
| 6110 | + | |
| 6111 | + | |
| 6112 | + | |
| 6113 | + | |
| 6114 | + | |
6096 | 6115 |
| |
6097 | 6116 |
| |
6098 | 6117 |
| |
| |||
6135 | 6154 |
| |
6136 | 6155 |
| |
6137 | 6156 |
| |
| 6157 | + | |
| 6158 | + | |
| 6159 | + | |
| 6160 | + | |
| 6161 | + | |
| 6162 | + | |
| 6163 | + | |
| 6164 | + | |
| 6165 | + | |
| 6166 | + | |
| 6167 | + | |
| 6168 | + | |
| 6169 | + | |
| 6170 | + | |
| 6171 | + | |
| 6172 | + | |
| 6173 | + | |
| 6174 | + | |
| 6175 | + | |
| 6176 | + | |
| 6177 | + | |
| 6178 | + | |
| 6179 | + | |
| 6180 | + | |
| 6181 | + | |
| 6182 | + | |
| 6183 | + | |
6138 | 6184 |
| |
6139 | 6185 |
| |
6140 | 6186 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
389 | 389 |
| |
390 | 390 |
| |
391 | 391 |
| |
| 392 | + | |
| 393 | + | |
392 | 394 |
| |
393 | 395 |
| |
394 | 396 |
| |
|
Lines changed: 77 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
53 | 53 |
| |
54 | 54 |
| |
55 | 55 |
| |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
56 | 63 |
| |
57 | 64 |
| |
58 | 65 |
| |
| |||
158 | 165 |
| |
159 | 166 |
| |
160 | 167 |
| |
161 |
| - | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
162 | 177 |
| |
163 |
| - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
164 | 239 |
| |
165 | 240 |
| |
166 | 241 |
| |
|
0 commit comments
Comments
(0)