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

Commit4ae43c8

Browse files
committed
Add opid to selectivity function call.
1 parent922e53e commit4ae43c8

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
*
1212
* IDENTIFICATION
13-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.43 1999/11/25 00:15:57 momjian Exp $
13+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.44 1999/11/25 00:21:34 momjian Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -47,7 +47,7 @@ static void getattproperties(Oid relid, AttrNumber attnum,
4747
bool*typbyval,
4848
int32*typmod);
4949
staticboolgetattstatistics(Oidrelid,AttrNumberattnum,
50-
Oidtypid,int32typmod,
50+
Oidopid,Oidtypid,int32typmod,
5151
double*nullfrac,
5252
double*commonfrac,
5353
Datum*commonval,
@@ -92,7 +92,7 @@ eqsel(Oid opid,
9292
&typid,&typlen,&typbyval,&typmod);
9393

9494
/* get stats for the attribute, if available */
95-
if (getattstatistics(relid,attno,typid,typmod,
95+
if (getattstatistics(relid,attno,opid,typid,typmod,
9696
&nullfrac,&commonfrac,&commonval,
9797
NULL,NULL))
9898
{
@@ -268,7 +268,7 @@ intltsel(Oid opid,
268268
getattproperties(relid,attno,
269269
&typid,&typlen,&typbyval,&typmod);
270270

271-
if (!getattstatistics(relid,attno,typid,typmod,
271+
if (!getattstatistics(relid,attno,opid,typid,typmod,
272272
NULL,NULL,NULL,
273273
&loval,&hival))
274274
{
@@ -580,7 +580,8 @@ getattproperties(Oid relid, AttrNumber attnum,
580580
* is no index nor syscache for pg_statistic. FIX THIS!
581581
*/
582582
staticbool
583-
getattstatistics(Oidrelid,AttrNumberattnum,Oidtypid,int32typmod,
583+
getattstatistics(Oidrelid,AttrNumberattnum,Oidopid,Oidtypid,
584+
int32typmod,
584585
double*nullfrac,
585586
double*commonfrac,
586587
Datum*commonval,
@@ -598,7 +599,7 @@ getattstatistics(Oid relid, AttrNumber attnum, Oid typid, int32 typmod,
598599
tuple=SearchSysCacheTuple(STATRELID,
599600
ObjectIdGetDatum(relid),
600601
Int16GetDatum((int16)attnum),
601-
0,0);/* staop is currently 0 */
602+
opid,0);
602603
if (!HeapTupleIsValid(tuple))
603604
{
604605
/* no such stats entry */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp