forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitbb7f173
committed
Reply-To: Jordi MacDonald <jordi@spartanmedia.com>
There is an error in the configure script when using--with-pgport= that will cause the compiled version ofPostgreSQL to no longer allow connections to thenew port and to treat shared memory improperly.What happens is that if the port is changed, the configurescript defines DEF_PGPORT as "", which atoi() will returnas 0, which makes the IPC_KEY value 0. This then causessemaphores to be allocated, but never released. Postgreseventually returns from semget() with"no space left on device". The source of this error couldeasily be overlooked in version 6.3 since it is possibleto connect via UNIX domain sockets, and having DEF_PGPORTdefined as "0" would not be noticed until TCP was used.1 parente4135ad commitbb7f173
2 files changed
+3
-3
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
808 | 808 |
| |
809 | 809 |
| |
810 | 810 |
| |
811 |
| - | |
| 811 | + | |
812 | 812 |
| |
813 | 813 |
| |
814 | 814 |
| |
| |||
1003 | 1003 |
| |
1004 | 1004 |
| |
1005 | 1005 |
| |
1006 |
| - | |
| 1006 | + | |
1007 | 1007 |
| |
1008 | 1008 |
| |
1009 | 1009 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
230 | 230 |
| |
231 | 231 |
| |
232 | 232 |
| |
233 |
| - | |
| 233 | + | |
234 | 234 |
| |
235 | 235 |
| |
236 | 236 |
| |
|
0 commit comments
Comments
(0)