[HACKERS][PATCH] adding simple sock check for windows

DaeMyung Kang <charsyam@gmail.com>

From: CharSyam <charsyam@gmail.com>
To: PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2018-03-30T14:40:36Z
Lists: pgsql-hackers

Attachments

Hi, I found some missing check for windows int init_slot function in vacuumdb.c

in windows
SOCKET is unsigned type. so

slot->sock < 0 never can be under 0.

so this patch just check using slot->sock == PGINVALID_SOCKET

Thanks.

Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Fix assorted issues in parallel vacuumdb.