Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita0734d1

Browse files
committed
Change appendStringInfoChar to appendStringInfoCharMacro in a couple of
hot spots --- buys about 10% in Verner's INSERT example.
1 parentc121eff commita0734d1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎src/backend/libpq/pqcomm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
3030
* Portions Copyright (c) 1994, Regents of the University of California
3131
*
32-
*$Id: pqcomm.c,v 1.125 2001/12/0419:40:17 tgl Exp $
32+
*$Id: pqcomm.c,v 1.126 2001/12/0420:57:22 tgl Exp $
3333
*
3434
*-------------------------------------------------------------------------
3535
*/
@@ -610,7 +610,7 @@ pq_getstring(StringInfo s)
610610

611611
/* Read until we get the terminating '\0' */
612612
while ((c=pq_getbyte())!=EOF&&c!='\0')
613-
appendStringInfoChar(s,c);
613+
appendStringInfoCharMacro(s,c);
614614

615615
if (c==EOF)
616616
returnEOF;

‎src/backend/libpq/pqformat.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
1717
* Portions Copyright (c) 1994, Regents of the University of California
1818
*
19-
*$Id: pqformat.c,v 1.18 2001/10/25 05:49:30 momjian Exp $
19+
*$Id: pqformat.c,v 1.19 2001/12/04 20:57:22 tgl Exp $
2020
*
2121
*-------------------------------------------------------------------------
2222
*/
@@ -102,7 +102,7 @@
102102
void
103103
pq_sendbyte(StringInfobuf,intbyt)
104104
{
105-
appendStringInfoChar(buf,byt);
105+
appendStringInfoCharMacro(buf,byt);
106106
}
107107

108108
/* --------------------------------

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp