Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
90e04bab
Commit
90e04bab
authored
Apr 24, 2010
by
Simon Riggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch revoked because of objections.
parent
33980a06
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
23 deletions
+2
-23
src/backend/utils/cache/lsyscache.c
src/backend/utils/cache/lsyscache.c
+1
-16
src/include/utils/lsyscache.h
src/include/utils/lsyscache.h
+1
-7
No files found.
src/backend/utils/cache/lsyscache.c
View file @
90e04bab
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/cache/lsyscache.c,v 1.1
69 2010/04/23 22:23:39
sriggs Exp $
* $PostgreSQL: pgsql/src/backend/utils/cache/lsyscache.c,v 1.1
70 2010/04/24 16:20:32
sriggs Exp $
*
* NOTES
* Eventually, the index information should go through here, too.
...
...
@@ -38,9 +38,6 @@
/* Hook for plugins to get control in get_attavgwidth() */
get_attavgwidth_hook_type
get_attavgwidth_hook
=
NULL
;
/* Hook for plugins to get control in get_func_cost and get_func_rows */
get_func_cost_hook_type
get_func_cost_hook
=
NULL
;
get_func_rows_hook_type
get_func_rows_hook
=
NULL
;
/* ---------- AMOP CACHES ---------- */
...
...
@@ -1412,12 +1409,6 @@ get_func_cost(Oid funcid)
HeapTuple
tp
;
float4
result
;
if
(
get_func_cost_hook
)
{
result
=
(
*
get_func_cost_hook
)
(
funcid
);
if
(
result
>
(
float4
)
0
)
return
result
;
}
tp
=
SearchSysCache1
(
PROCOID
,
ObjectIdGetDatum
(
funcid
));
if
(
!
HeapTupleIsValid
(
tp
))
elog
(
ERROR
,
"cache lookup failed for function %u"
,
funcid
);
...
...
@@ -1437,12 +1428,6 @@ get_func_rows(Oid funcid)
HeapTuple
tp
;
float4
result
;
if
(
get_func_rows_hook
)
{
result
=
(
*
get_func_rows_hook
)
(
funcid
);
if
(
result
>
(
float4
)
0
)
return
result
;
}
tp
=
SearchSysCache1
(
PROCOID
,
ObjectIdGetDatum
(
funcid
));
if
(
!
HeapTupleIsValid
(
tp
))
elog
(
ERROR
,
"cache lookup failed for function %u"
,
funcid
);
...
...
src/include/utils/lsyscache.h
View file @
90e04bab
...
...
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/include/utils/lsyscache.h,v 1.13
2 2010/04/23 22:23:39
sriggs Exp $
* $PostgreSQL: pgsql/src/include/utils/lsyscache.h,v 1.13
3 2010/04/24 16:20:32
sriggs Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -30,12 +30,6 @@ typedef enum IOFuncSelector
typedef
int32
(
*
get_attavgwidth_hook_type
)
(
Oid
relid
,
AttrNumber
attnum
);
extern
PGDLLIMPORT
get_attavgwidth_hook_type
get_attavgwidth_hook
;
/* Hook for plugins to get control in get_func_cost and get_func_rows */
typedef
float4
(
*
get_func_cost_hook_type
)
(
Oid
funcid
);
extern
PGDLLIMPORT
get_func_cost_hook_type
get_func_cost_hook
;
typedef
float4
(
*
get_func_rows_hook_type
)
(
Oid
funcid
);
extern
PGDLLIMPORT
get_func_rows_hook_type
get_func_rows_hook
;
extern
bool
op_in_opfamily
(
Oid
opno
,
Oid
opfamily
);
extern
int
get_op_opfamily_strategy
(
Oid
opno
,
Oid
opfamily
);
extern
void
get_op_opfamily_properties
(
Oid
opno
,
Oid
opfamily
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment