[HACKERS][PATCH] adding simple sock check for windows - Mailing list pgsql-hackers

From CharSyam
Subject [HACKERS][PATCH] adding simple sock check for windows
Date
Msg-id CAMrLSE6etb33-192DTEUGkV-TsvEcxtBDxGWG1tgNOMnQHwgDA@mail.gmail.com
Whole thread Raw
Responses Re: [HACKERS][PATCH] adding simple sock check for windows
List pgsql-hackers
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.

Attachment

pgsql-hackers by date:

Previous
From: David Fetter
Date:
Subject: Re: Feature Request - DDL deployment with logical replication
Next
From: Aleksander Alekseev
Date:
Subject: Re: Flexible configuration for full-text search