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

Commit27026fe

Browse files
author
Hiroshi Inoue
committed
Use SearchSysCacheTupleCopy() instead of SearchSysCacheTuple() in
order to continue to access the tuple more than now.This would resolve a segmentation fault error.
1 parent92875e6 commit27026fe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎src/backend/utils/adt/selfuncs.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
*
1717
* IDENTIFICATION
18-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.80 2000/10/05 19:48:28 momjian Exp $
18+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.81 2000/11/10 09:38:21 inoue Exp $
1919
*
2020
*-------------------------------------------------------------------------
2121
*/
@@ -1250,7 +1250,7 @@ getattstatistics(Oid relid,
12501250
* have at hand! (For example, we might have a '>' operator rather
12511251
* than the '<' operator that will appear in staop.)
12521252
*/
1253-
tuple=SearchSysCacheTuple(STATRELID,
1253+
tuple=SearchSysCacheTupleCopy(STATRELID,
12541254
ObjectIdGetDatum(relid),
12551255
Int16GetDatum((int16)attnum),
12561256
0,
@@ -1351,6 +1351,7 @@ getattstatistics(Oid relid,
13511351
pfree(strval);
13521352
}
13531353
}
1354+
heap_freetuple(tuple);
13541355

13551356
return true;
13561357
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp