Re: Free port choosing freezes when PostgresNode::use_tcp is used on BSD systems
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alexey Kondratov <a.kondratov@postgrespro.ru>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2021-04-19T23:22:47Z
Lists: pgsql-hackers
Alexey Kondratov <a.kondratov@postgrespro.ru> writes: > And this is an absolute true, on BSD-like systems (macOS and FreeBSD > tested) it hangs on looping through the entire ports range over and over > when $PostgresNode::use_tcp = 1 is set, since bind fails with: Hm. > That way, if it really could happen why not to just skip binding to > 127.0.0/24 addresses other than 127.0.0.1 outside of Linux/Windows as > per attached patch_PostgresNode.diff? That patch seems wrong, or at least it's ignoring the advice immediately above about binding to 0.0.0.0 only on Windows. I wonder whether we could get away with just replacing the $use_tcp test with $TestLib::windows_os. It's not really apparent to me why we should care about 127.0.0.not-1 on Unix-oid systems. regards, tom lane
Commits
-
Add TABLESPACE option to REINDEX
- c5b286047cd6 14.0 landed
-
Refactor code in tablecmds.c to check and process tablespace moves
- 4c9c359d38ff 14.0 landed
-
Refactor option handling of CLUSTER, REINDEX and VACUUM
- a3dc926009be 14.0 landed
-
pg_dump: Don't use enums for defining bit mask values
- d2a2808eb444 14.0 landed
-
Refactor CLUSTER and REINDEX grammar to use DefElem for option lists
- b5913f612079 14.0 landed
-
Refactor parsing rules for option lists of EXPLAIN, VACUUM and ANALYZE
- 873ea9ee692e 14.0 landed
-
Improve tab completion of REINDEX in psql
- 1f75b454134c 14.0 landed
-
Fix possible crash during FATAL exit from reindexing.
- d12bdba77b0f 13.0 cited