forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita9cff89
committed
Allow building without default socket directory
We have code paths for Unix socket support and no Unix socket support.Now add a third variant: Unix socket support but do not use a Unixsocket by default in the client or the server, only if you explicitlyspecify one. This will be useful when we enable Unix socket supporton Windows.To implement this, tweak things so that setting DEFAULT_PGSOCKET_DIRto "" has the desired effect. This mostly already worked like that;only a few places needed to be adjusted. Notably, the reference toDEFAULT_PGSOCKET_DIR in UNIXSOCK_PATH() could be removed because allcallers already resolve an empty socket directory setting with adefault if appropriate.Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>Discussion:https://www.postgresql.org/message-id/75f72249-8ae6-322a-63df-4fe03eeccb9f@2ndquadrant.com1 parent7c23bfd commita9cff89
File tree
3 files changed
+18
-8
lines changed- src
- include
- libpq
- interfaces/libpq
3 files changed
+18
-8
lines changedLines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
68 | 68 |
| |
69 | 69 |
| |
70 | 70 |
| |
| 71 | + | |
| 72 | + | |
71 | 73 |
| |
72 |
| - | |
73 |
| - | |
74 |
| - | |
| 74 | + | |
75 | 75 |
| |
76 | 76 |
| |
77 | 77 |
| |
|
Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
191 | 191 |
| |
192 | 192 |
| |
193 | 193 |
| |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
194 | 199 |
| |
195 | 200 |
| |
196 | 201 |
| |
|
Lines changed: 10 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1095 | 1095 |
| |
1096 | 1096 |
| |
1097 | 1097 |
| |
1098 |
| - | |
1099 |
| - | |
1100 |
| - | |
1101 |
| - | |
1102 |
| - | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
1103 | 1104 |
| |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
1104 | 1109 |
| |
1105 | 1110 |
| |
1106 | 1111 |
| |
|
0 commit comments
Comments
(0)