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