diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2021-04-01 16:25:46 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2021-04-01 16:25:51 -0300 |
commit | a68a894f0198aaeffa81b3027f135adcdaa8abf6 (patch) | |
tree | b2e1a7f22cf536507d1b980c3e3bc569f60c7ca3 /src/backend/utils/adt/acl.c | |
parent | 3b6c1259f9ca8e21860aaf24ec6735a8e5598ea0 (diff) | |
download | postgresql-a68a894f0198aaeffa81b3027f135adcdaa8abf6.tar.gz postgresql-a68a894f0198aaeffa81b3027f135adcdaa8abf6.zip |
Fix setvbuf()-induced crash in libpq_pipeline
Windows doesn't like setvbuf(..., _IOLBF) and crashes if you use it,
which has been causing the libpq_pipeline failures all along ... and our
own port.h has known about it for a long time: it offers PG_IOLBF that's
defined to _IONBF on that platform. Follow its advice.
While at it, get rid of a bogus bitshift that used a constant of the
wrong size. Decorate the constant as LL to fix. While at it, remove a
pointless addition that only confused matters.
All as diagnosed by Tom Lane.
Discussion: https://postgr.es/m/3458958.1617302154@sss.pgh.pa.us
Diffstat (limited to 'src/backend/utils/adt/acl.c')
0 files changed, 0 insertions, 0 deletions