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

Commit1bc9e98

Browse files
committed
SendFunctionResult should take care to detoast varlena results.
1 parent9f1f2bf commit1bc9e98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/tcop/fastpath.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/tcop/fastpath.c,v 1.55 2003/01/01 21:57:05 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/tcop/fastpath.c,v 1.56 2003/01/07 22:32:10 tgl Exp $
1212
*
1313
* NOTES
1414
* This cruft is the server side of PQfn.
@@ -97,7 +97,7 @@ SendFunctionResult(Datum retval, bool retbyval, int retlen)
9797
{/* by-reference ... */
9898
if (retlen==-1)
9999
{/* ... varlena */
100-
structvarlena*v=(structvarlena*)DatumGetPointer(retval);
100+
structvarlena*v=PG_DETOAST_DATUM(retval);
101101

102102
pq_sendint(&buf,VARSIZE(v)-VARHDRSZ,VARHDRSZ);
103103
pq_sendbytes(&buf,VARDATA(v),VARSIZE(v)-VARHDRSZ);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp