]> granicus.if.org Git - postgresql/commitdiff
Change appendStringInfoChar to appendStringInfoCharMacro in a couple of
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 4 Dec 2001 20:57:22 +0000 (20:57 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
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 7a46961222c26f3f6eab2ed13eb7650812a9e07d..432e88ddf1f441620cf5c1d9273e6928ca4e30d2 100644 (file)
@@ -29,7 +29,7 @@
  * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
- *     $Id: pqcomm.c,v 1.125 2001/12/04 19:40:17 tgl Exp $
+ *     $Id: pqcomm.c,v 1.126 2001/12/04 20:57:22 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -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 a0ea85f41fc0178c907278b7229993846386c969..27cfa0704bf6ad2f76fbdb392129fa0588862f01 100644 (file)
@@ -16,7 +16,7 @@
  * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
- *     $Id: pqformat.c,v 1.18 2001/10/25 05:49:30 momjian Exp $
+ *     $Id: pqformat.c,v 1.19 2001/12/04 20:57:22 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
 void
 pq_sendbyte(StringInfo buf, int byt)
 {
-       appendStringInfoChar(buf, byt);
+       appendStringInfoCharMacro(buf, byt);
 }
 
 /* --------------------------------