- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit7882179
committed
The normal operation of our servers is to have tcpip_sockets enabled,
but occasionally I may need to shut down the server and restart itw/o tcpip sockets. Postmaster has the -i option to turn on tcpipconnections, but it wasn't immediately clear how to easily ortemporarily turn it off (when it's been enabled in postgresql.conf).In fact, it wasn't clear to me until digging in to postmaster.c thatI could pass '-c tcpip_socket=false' or '--tcpip_socket=false'.(And then of course when I looked more closely at the man page Irealized I'd missed the proper part of the documentation.) What I'dbeen looking for is a flag that would have the opposite effect of'-i', and it's conceivable that others will be looking for specificflags to do the opposite of '-F' and '-S'.I was preparing to add options to postmaster until I realized thatmaybe the solution is just to add some documentation.If you'd rather have 1 character options to accomplish this, I'd behappy to do that-- adding those 9 lines of code is definitely withinmy ability. :) (Although, the "right" letter to be the opposite of -Sisn't clear to me, since -s is already taken.)Ron Snyder.1 parentdbbd13b commit7882179
1 file changed
+18
-3
lines changedLines changed: 18 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| |||
145 | 145 |
| |
146 | 146 |
| |
147 | 147 |
| |
148 |
| - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
149 | 155 |
| |
150 | 156 |
| |
151 | 157 |
| |
| |||
169 | 175 |
| |
170 | 176 |
| |
171 | 177 |
| |
172 |
| - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
173 | 184 |
| |
174 | 185 |
| |
175 | 186 |
| |
| |||
260 | 271 |
| |
261 | 272 |
| |
262 | 273 |
| |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
263 | 278 |
| |
264 | 279 |
| |
265 | 280 |
| |
|
0 commit comments
Comments
(0)