Change appendStringInfoChar to appendStringInfoCharMacro in a couple of
authorTom Lane <[email protected]>
Tue, 4 Dec 2001 20:57:22 +0000 (20:57 +0000)
committerTom Lane <[email protected]>
Tue, 4 Dec 2001 20:57:22 +0000 (20:57 +0000)
hot spots --- buys about 10% in Verner's INSERT example.

src/backend/libpq/pqcomm.c
src/backend/libpq/pqformat.c

index d6551b5bfcf1b8163a9336a500871e42c627302b..5ca4aa152cbe21c6dcb5ec7458270a506a618e35 100644 (file)
@@ -610,7 +610,7 @@ pq_getstring(StringInfo s)
 
        /* Read until we get the terminating '\0' */
        while ((c = pq_getbyte()) != EOF && c != '\0')
-               appendStringInfoChar(s, c);
+               appendStringInfoCharMacro(s, c);
 
        if (c == EOF)
                return EOF;
index 95a353042eec21f8e6167e912cabcb0f08840347..12fd700bb3c1d5de787ad4b1fcc0baef173b296e 100644 (file)
 void
 pq_sendbyte(StringInfo buf, int byt)
 {
-       appendStringInfoChar(buf, byt);
+       appendStringInfoCharMacro(buf, byt);
 }
 
 /* --------------------------------