Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
90e04bab
Commit
90e04bab
authored
15 years ago
by
Simon Riggs
Browse files
Options
Downloads
Patches
Plain Diff
Patch revoked because of objections.
parent
33980a06
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/backend/utils/cache/lsyscache.c
+1
-16
1 addition, 16 deletions
src/backend/utils/cache/lsyscache.c
src/include/utils/lsyscache.h
+1
-7
1 addition, 7 deletions
src/include/utils/lsyscache.h
with
2 additions
and
23 deletions
src/backend/utils/cache/lsyscache.c
+
1
−
16
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/2
3 22
:2
3
:3
9
sriggs Exp $
* $PostgreSQL: pgsql/src/backend/utils/cache/lsyscache.c,v 1.1
70
2010/04/2
4 16
:2
0
:3
2
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
);
...
...
This diff is collapsed.
Click to expand it.
src/include/utils/lsyscache.h
+
1
−
7
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/2
3 22
:2
3
:3
9
sriggs Exp $
* $PostgreSQL: pgsql/src/include/utils/lsyscache.h,v 1.13
3
2010/04/2
4 16
:2
0
:3
2
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
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment