pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix CreateThread() failure checks
7+ messages / 1 participants
[nested] [flat]

* pgsql: Fix CreateThread() failure checks
@ 2026-10-15 09:35  Heikki Linnakangas <heikki.linnakangas@iki.fi>
  0 siblings, 0 replies; 7+ messages in thread

From: Heikki Linnakangas @ 2026-10-15 09:35 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix CreateThread() failure checks

CreateThread returns NULL on failure, not INVALID_HANDLE_VALUE.  In
setitimer(), a failed thread creation would silently disable all
timer-based timeouts.

Author: Sehrope Sarkuni <sehrope@jackdb.com>
Discussion: https://www.postgresql.org/message-id/CAH7T-apWWfEt+V8uLU7KXv7CMM9LoqJ1Zo2LdWmXMz=u-Ek9=w@mail.gmail...
Backpatch-through: 14

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/54635e6892f0f8bf61b0ae0d0b4bc119e7780a3b

Modified Files
--------------
src/backend/port/win32/timer.c        | 2 +-
src/bin/pg_test_fsync/pg_test_fsync.c | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Fix CreateThread() failure checks
@ 2026-10-15 09:35  Heikki Linnakangas <heikki.linnakangas@iki.fi>
  0 siblings, 0 replies; 7+ messages in thread

From: Heikki Linnakangas @ 2026-10-15 09:35 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix CreateThread() failure checks

CreateThread returns NULL on failure, not INVALID_HANDLE_VALUE.  In
setitimer(), a failed thread creation would silently disable all
timer-based timeouts.

Author: Sehrope Sarkuni <sehrope@jackdb.com>
Discussion: https://www.postgresql.org/message-id/CAH7T-apWWfEt+V8uLU7KXv7CMM9LoqJ1Zo2LdWmXMz=u-Ek9=w@mail.gmail...
Backpatch-through: 14

Branch
------
REL_19_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/0fb192f1b02dad26207a194db8e3f448ce0307df

Modified Files
--------------
src/backend/port/win32/timer.c        | 2 +-
src/bin/pg_test_fsync/pg_test_fsync.c | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Fix CreateThread() failure checks
@ 2026-10-15 09:35  Heikki Linnakangas <heikki.linnakangas@iki.fi>
  0 siblings, 0 replies; 7+ messages in thread

From: Heikki Linnakangas @ 2026-10-15 09:35 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix CreateThread() failure checks

CreateThread returns NULL on failure, not INVALID_HANDLE_VALUE.  In
setitimer(), a failed thread creation would silently disable all
timer-based timeouts.

Author: Sehrope Sarkuni <sehrope@jackdb.com>
Discussion: https://www.postgresql.org/message-id/CAH7T-apWWfEt+V8uLU7KXv7CMM9LoqJ1Zo2LdWmXMz=u-Ek9=w@mail.gmail...
Backpatch-through: 14

Branch
------
REL_18_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/4d62ef92fda14315f465a686c5ef272cdb2dc8e4

Modified Files
--------------
src/backend/port/win32/timer.c        | 2 +-
src/bin/pg_test_fsync/pg_test_fsync.c | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Fix CreateThread() failure checks
@ 2026-10-15 09:35  Heikki Linnakangas <heikki.linnakangas@iki.fi>
  0 siblings, 0 replies; 7+ messages in thread

From: Heikki Linnakangas @ 2026-10-15 09:35 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix CreateThread() failure checks

CreateThread returns NULL on failure, not INVALID_HANDLE_VALUE.  In
setitimer(), a failed thread creation would silently disable all
timer-based timeouts.

Author: Sehrope Sarkuni <sehrope@jackdb.com>
Discussion: https://www.postgresql.org/message-id/CAH7T-apWWfEt+V8uLU7KXv7CMM9LoqJ1Zo2LdWmXMz=u-Ek9=w@mail.gmail...
Backpatch-through: 14

Branch
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/2bc73b3e80ab6916098ecc50dd964e668b237124

Modified Files
--------------
src/backend/port/win32/timer.c        | 2 +-
src/bin/pg_test_fsync/pg_test_fsync.c | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Fix CreateThread() failure checks
@ 2026-10-15 09:35  Heikki Linnakangas <heikki.linnakangas@iki.fi>
  0 siblings, 0 replies; 7+ messages in thread

From: Heikki Linnakangas @ 2026-10-15 09:35 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix CreateThread() failure checks

CreateThread returns NULL on failure, not INVALID_HANDLE_VALUE.  In
setitimer(), a failed thread creation would silently disable all
timer-based timeouts.

Author: Sehrope Sarkuni <sehrope@jackdb.com>
Discussion: https://www.postgresql.org/message-id/CAH7T-apWWfEt+V8uLU7KXv7CMM9LoqJ1Zo2LdWmXMz=u-Ek9=w@mail.gmail...
Backpatch-through: 14

Branch
------
REL_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/908589bdbdb43a00cdd90b0739bd21c00541d324

Modified Files
--------------
src/backend/port/win32/timer.c        | 2 +-
src/bin/pg_test_fsync/pg_test_fsync.c | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Fix CreateThread() failure checks
@ 2026-10-15 09:35  Heikki Linnakangas <heikki.linnakangas@iki.fi>
  0 siblings, 0 replies; 7+ messages in thread

From: Heikki Linnakangas @ 2026-10-15 09:35 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix CreateThread() failure checks

CreateThread returns NULL on failure, not INVALID_HANDLE_VALUE.  In
setitimer(), a failed thread creation would silently disable all
timer-based timeouts.

Author: Sehrope Sarkuni <sehrope@jackdb.com>
Discussion: https://www.postgresql.org/message-id/CAH7T-apWWfEt+V8uLU7KXv7CMM9LoqJ1Zo2LdWmXMz=u-Ek9=w@mail.gmail...
Backpatch-through: 14

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/304dd0b961e791c3f0609d5e77fe72958475a829

Modified Files
--------------
src/backend/port/win32/timer.c        | 2 +-
src/bin/pg_test_fsync/pg_test_fsync.c | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Fix CreateThread() failure checks
@ 2026-10-15 09:35  Heikki Linnakangas <heikki.linnakangas@iki.fi>
  0 siblings, 0 replies; 7+ messages in thread

From: Heikki Linnakangas @ 2026-10-15 09:35 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix CreateThread() failure checks

CreateThread returns NULL on failure, not INVALID_HANDLE_VALUE.  In
setitimer(), a failed thread creation would silently disable all
timer-based timeouts.

Author: Sehrope Sarkuni <sehrope@jackdb.com>
Discussion: https://www.postgresql.org/message-id/CAH7T-apWWfEt+V8uLU7KXv7CMM9LoqJ1Zo2LdWmXMz=u-Ek9=w@mail.gmail...
Backpatch-through: 14

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/b1c44848ce36d892948b9b014e4c1e49f77dc82b

Modified Files
--------------
src/backend/port/win32/timer.c        | 2 +-
src/bin/pg_test_fsync/pg_test_fsync.c | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread


end of thread, other threads:[~2026-10-15 09:35 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2026-10-15 09:35 pgsql: Fix CreateThread() failure checks Heikki Linnakangas <heikki.linnakangas@iki.fi>
2026-10-15 09:35 pgsql: Fix CreateThread() failure checks Heikki Linnakangas <heikki.linnakangas@iki.fi>
2026-10-15 09:35 pgsql: Fix CreateThread() failure checks Heikki Linnakangas <heikki.linnakangas@iki.fi>
2026-10-15 09:35 pgsql: Fix CreateThread() failure checks Heikki Linnakangas <heikki.linnakangas@iki.fi>
2026-10-15 09:35 pgsql: Fix CreateThread() failure checks Heikki Linnakangas <heikki.linnakangas@iki.fi>
2026-10-15 09:35 pgsql: Fix CreateThread() failure checks Heikki Linnakangas <heikki.linnakangas@iki.fi>
2026-10-15 09:35 pgsql: Fix CreateThread() failure checks Heikki Linnakangas <heikki.linnakangas@iki.fi>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox