forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitba08edb
committed
Extend Cluster.pm's background_psql() to be able to start asynchronously
This commit extends the constructor routine of BackgroundPsql.pm with anew "wait" parameter. If set to 0, the routine returns without waitingfor psql to start, ready to consume input.background_psql() in Cluster.pm gains the same "wait" parameter. Thedefault behavior is still to wait for psql to start. It becomes nowpossible to not wait, giving to TAP scripts the possibility to performactions between a BackgroundPsql startup and its wait_connect() call.Author: Jacob ChampionDiscussion:https://postgr.es/m/CAOYmi+=60deN20WDyCoHCiecgivJxr=98s7s7-C8SkXwrCfHXg@mail.gmail.com1 parent87f81a5 commitba08edb
2 files changed
+30
-8
lines changedLines changed: 21 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
68 | 68 |
| |
69 | 69 |
| |
70 | 70 |
| |
71 |
| - | |
| 71 | + | |
72 | 72 |
| |
73 | 73 |
| |
74 | 74 |
| |
75 | 75 |
| |
76 | 76 |
| |
77 | 77 |
| |
78 | 78 |
| |
| 79 | + | |
| 80 | + | |
| 81 | + | |
79 | 82 |
| |
80 | 83 |
| |
81 | 84 |
| |
82 | 85 |
| |
83 | 86 |
| |
84 |
| - | |
| 87 | + | |
85 | 88 |
| |
86 | 89 |
| |
87 | 90 |
| |
| |||
119 | 122 |
| |
120 | 123 |
| |
121 | 124 |
| |
122 |
| - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
123 | 130 |
| |
124 | 131 |
| |
125 | 132 |
| |
126 | 133 |
| |
127 |
| - | |
128 |
| - | |
129 |
| - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
130 | 144 |
| |
131 | 145 |
| |
132 | 146 |
| |
| |||
187 | 201 |
| |
188 | 202 |
| |
189 | 203 |
| |
190 |
| - | |
| 204 | + | |
191 | 205 |
| |
192 | 206 |
| |
193 | 207 |
| |
|
Lines changed: 9 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2286 | 2286 |
| |
2287 | 2287 |
| |
2288 | 2288 |
| |
| 2289 | + | |
| 2290 | + | |
| 2291 | + | |
| 2292 | + | |
| 2293 | + | |
| 2294 | + | |
2289 | 2295 |
| |
2290 | 2296 |
| |
2291 | 2297 |
| |
| |||
2316 | 2322 |
| |
2317 | 2323 |
| |
2318 | 2324 |
| |
| 2325 | + | |
2319 | 2326 |
| |
2320 | 2327 |
| |
2321 | 2328 |
| |
2322 | 2329 |
| |
2323 | 2330 |
| |
2324 | 2331 |
| |
2325 |
| - | |
| 2332 | + | |
| 2333 | + | |
2326 | 2334 |
| |
2327 | 2335 |
| |
2328 | 2336 |
| |
|
0 commit comments
Comments
(0)