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

Commitc82d931

Browse files
committed
Fix the volatility marking of textanycat() and anytextcat(): they were marked
immutable, but that is wrong in general because the cast from the polymorphicargument to text could be stable or even volatile. Mark them volatile forsafety. In the typical case where the cast isn't volatile, the planner willdeduce the correct expression volatility after inlining the function, soperformance is not lost. The just-committed fix in CREATE INDEX also ensuresthis won't break any indexing cases that ought to be allowed.Per discussion, I'm not bumping catversion for this change, as it doesn'tseem critical enough to force an initdb on beta testers.
1 parent5a86e5e commitc82d931

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/include/catalog/pg_proc.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $PostgreSQL: pgsql/src/include/catalog/pg_proc.h,v 1.570 2010/02/26 02:01:21 momjian Exp $
10+
* $PostgreSQL: pgsql/src/include/catalog/pg_proc.h,v 1.571 2010/05/27 16:20:11 tgl Exp $
1111
*
1212
* NOTES
1313
* The script catalog/genbki.pl reads this file and generates .bki
@@ -3137,9 +3137,9 @@ DESCR("adjust time precision");
31373137
DATA(insertOID=1969 (timetzPGNSPPGUID12100ffftfi201266"1266 23"_null__null__null__null_timetz_scale_null__null__null_ ));
31383138
DESCR("adjust time with time zone precision");
31393139

3140-
DATA(insertOID=2003 (textanycatPGNSPPGUID14100ffftfi2025"25 2776"_null__null__null__null_"select $1 || $2::pg_catalog.text"_null__null__null_ ));
3140+
DATA(insertOID=2003 (textanycatPGNSPPGUID14100ffftfv2025"25 2776"_null__null__null__null_"select $1 || $2::pg_catalog.text"_null__null__null_ ));
31413141
DESCR("concatenate");
3142-
DATA(insertOID=2004 (anytextcatPGNSPPGUID14100ffftfi2025"2776 25"_null__null__null__null_"select $1::pg_catalog.text || $2"_null__null__null_ ));
3142+
DATA(insertOID=2004 (anytextcatPGNSPPGUID14100ffftfv2025"2776 25"_null__null__null__null_"select $1::pg_catalog.text || $2"_null__null__null_ ));
31433143
DESCR("concatenate");
31443144

31453145
DATA(insertOID=2005 (bytealikePGNSPPGUID12100ffftfi2016"17 17"_null__null__null__null_bytealike_null__null__null_ ));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp