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
ce774620
Commit
ce774620
authored
24 years ago
by
Tom Lane
Browse files
Options
Downloads
Patches
Plain Diff
Cause inheritance patch to meet minimum coding standards (no gcc
warnings).
parent
7fca3f03
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/backend/optimizer/plan/planner.c
+2
-1
2 additions, 1 deletion
src/backend/optimizer/plan/planner.c
src/backend/optimizer/util/plancat.c
+13
-8
13 additions, 8 deletions
src/backend/optimizer/util/plancat.c
src/include/optimizer/plancat.h
+3
-1
3 additions, 1 deletion
src/include/optimizer/plancat.h
with
18 additions
and
10 deletions
src/backend/optimizer/plan/planner.c
+
2
−
1
View file @
ce774620
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/planner.c,v 1.8
1
2000/06/09 0
1:44:14 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/planner.c,v 1.8
2
2000/06/09 0
3:17:13 tgl
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
#include
"optimizer/clauses.h"
#include
"optimizer/clauses.h"
#include
"optimizer/internal.h"
#include
"optimizer/internal.h"
#include
"optimizer/paths.h"
#include
"optimizer/paths.h"
#include
"optimizer/plancat.h"
#include
"optimizer/planmain.h"
#include
"optimizer/planmain.h"
#include
"optimizer/planner.h"
#include
"optimizer/planner.h"
#include
"optimizer/prep.h"
#include
"optimizer/prep.h"
...
...
This diff is collapsed.
Click to expand it.
src/backend/optimizer/util/plancat.c
+
13
−
8
View file @
ce774620
...
@@ -10,9 +10,9 @@
...
@@ -10,9 +10,9 @@
*
*
* IDENTIFICATION
* IDENTIFICATION
<<<<<<< plancat.c
<<<<<<< plancat.c
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/plancat.c,v 1.5
4
2000/06/09 0
1:44:16 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/plancat.c,v 1.5
5
2000/06/09 0
3:17:12 tgl
Exp $
=======
=======
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/plancat.c,v 1.5
4
2000/06/09 0
1:44:16 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/plancat.c,v 1.5
5
2000/06/09 0
3:17:12 tgl
Exp $
>>>>>>> 1.53
>>>>>>> 1.53
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
...
@@ -292,13 +292,18 @@ find_inheritance_children(Oid inhparent)
...
@@ -292,13 +292,18 @@ find_inheritance_children(Oid inhparent)
* Currently has_subclass is only used as an efficiency hack, so this
* Currently has_subclass is only used as an efficiency hack, so this
* is ok.
* is ok.
*/
*/
bool
has_subclass
(
Oid
relationId
)
bool
has_subclass
(
Oid
relationId
)
{
{
HeapTuple
tuple
=
HeapTuple
tuple
=
SearchSysCacheTuple
(
RELOID
,
SearchSysCacheTuple
(
RELOID
,
ObjectIdGetDatum
(
relationId
),
ObjectIdGetDatum
(
relationId
),
0
,
0
,
0
);
0
,
0
,
0
);
return
((
Form_pg_class
)
GETSTRUCT
(
tuple
))
->
relhassubclass
;
if
(
!
HeapTupleIsValid
(
tuple
))
elog
(
ERROR
,
"has_subclass: Relation %u not found"
,
relationId
);
return
((
Form_pg_class
)
GETSTRUCT
(
tuple
))
->
relhassubclass
;
}
}
#ifdef NOT_USED
#ifdef NOT_USED
...
...
This diff is collapsed.
Click to expand it.
src/include/optimizer/plancat.h
+
3
−
1
View file @
ce774620
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* $Id: plancat.h,v 1.1
8
2000/0
4/12 17:16:42 momjian
Exp $
* $Id: plancat.h,v 1.1
9
2000/0
6/09 03:17:11 tgl
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -24,6 +24,8 @@ extern List *find_secondary_indexes(Query *root, Index relid);
...
@@ -24,6 +24,8 @@ extern List *find_secondary_indexes(Query *root, Index relid);
extern
List
*
find_inheritance_children
(
Oid
inhparent
);
extern
List
*
find_inheritance_children
(
Oid
inhparent
);
extern
bool
has_subclass
(
Oid
relationId
);
extern
Selectivity
restriction_selectivity
(
Oid
functionObjectId
,
extern
Selectivity
restriction_selectivity
(
Oid
functionObjectId
,
Oid
operatorObjectId
,
Oid
operatorObjectId
,
Oid
relationObjectId
,
Oid
relationObjectId
,
...
...
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