diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-12-04 20:57:22 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-12-04 20:57:22 +0000 |
commit | a0734d1eb12b858073dbb91a8c5636f0a1872755 (patch) | |
tree | 2d801c2188d40fc3d92ec6fc07e09b1583eca3fa | |
parent | c121efff7ef9b1c99db7cca15789b5ed1fd560cf (diff) | |
download | postgresql-a0734d1eb12b858073dbb91a8c5636f0a1872755.tar.gz postgresql-a0734d1eb12b858073dbb91a8c5636f0a1872755.zip |
Change appendStringInfoChar to appendStringInfoCharMacro in a couple of
hot spots --- buys about 10% in Verner's INSERT example.
-rw-r--r-- | src/backend/libpq/pqcomm.c | 4 | ||||
-rw-r--r-- | src/backend/libpq/pqformat.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/libpq/pqcomm.c b/src/backend/libpq/pqcomm.c index 7a46961222c..432e88ddf1f 100644 --- a/src/backend/libpq/pqcomm.c +++ b/src/backend/libpq/pqcomm.c @@ -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; diff --git a/src/backend/libpq/pqformat.c b/src/backend/libpq/pqformat.c index a0ea85f41fc..27cfa0704bf 100644 --- a/src/backend/libpq/pqformat.c +++ b/src/backend/libpq/pqformat.c @@ -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 $ * *------------------------------------------------------------------------- */ @@ -102,7 +102,7 @@ void pq_sendbyte(StringInfo buf, int byt) { - appendStringInfoChar(buf, byt); + appendStringInfoCharMacro(buf, byt); } /* -------------------------------- |