Hi, In 2 of 3 pq_setkeepalives* functions we have the #DEFINE involving even this conditional: """ if (port == NULL || IS_AF_UNIX(port->laddr.addr.ss_family)) return STATUS_OK; """
but in pq_setkeepalivesinterval() the #DEFINE is after the conditional, doesn't seems to affect anything but for consistency with the other two :) -- Atentamente, Jaime Casanova Soporte y capacitación de PostgreSQL AsesorÃa y desarrollo de sistemas Guayaquil - Ecuador Cel. +59387171157
Index: src/backend/libpq/pqcomm.c =================================================================== RCS file: /home/postgres/pgrepo/pgsql/src/backend/libpq/pqcomm.c,v retrieving revision 1.205 diff -c -r1.205 pqcomm.c *** src/backend/libpq/pqcomm.c 26 Feb 2010 02:00:43 -0000 1.205 --- src/backend/libpq/pqcomm.c 13 Mar 2010 04:39:19 -0000 *************** *** 1418,1427 **** int pq_setkeepalivesinterval(int interval, Port *port) { if (port == NULL || IS_AF_UNIX(port->laddr.addr.ss_family)) return STATUS_OK; - #ifdef TCP_KEEPINTVL if (interval == port->keepalives_interval) return STATUS_OK; --- 1418,1427 ---- int pq_setkeepalivesinterval(int interval, Port *port) { + #ifdef TCP_KEEPINTVL if (port == NULL || IS_AF_UNIX(port->laddr.addr.ss_family)) return STATUS_OK; if (interval == port->keepalives_interval) return STATUS_OK;
-- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers