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
13437d1e
Commit
13437d1e
authored
Jan 12, 2003
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace RelidGetNamespaceId() by get_rel_namespace().
parent
6f485584
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
28 deletions
+4
-28
src/backend/catalog/namespace.c
src/backend/catalog/namespace.c
+1
-24
src/backend/executor/execMain.c
src/backend/executor/execMain.c
+2
-2
src/include/catalog/namespace.h
src/include/catalog/namespace.h
+1
-2
No files found.
src/backend/catalog/namespace.c
View file @
13437d1e
...
...
@@ -13,7 +13,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/catalog/namespace.c,v 1.4
4 2003/01/10 22:03:2
7 petere Exp $
* $Header: /cvsroot/pgsql/src/backend/catalog/namespace.c,v 1.4
5 2003/01/12 18:19:3
7 petere Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -278,29 +278,6 @@ RelnameGetRelid(const char *relname)
return
InvalidOid
;
}
/*
* RelidGetNamespaceId
* Given a relation OID, return the namespace OID.
*/
Oid
RelidGetNamespaceId
(
Oid
relid
)
{
HeapTuple
tuple
;
Form_pg_class
pg_class_form
;
Oid
result
;
tuple
=
SearchSysCache
(
RELOID
,
ObjectIdGetDatum
(
relid
),
0
,
0
,
0
);
if
(
!
HeapTupleIsValid
(
tuple
))
elog
(
ERROR
,
"cache lookup failed for relation %u"
,
relid
);
pg_class_form
=
(
Form_pg_class
)
GETSTRUCT
(
tuple
);
result
=
pg_class_form
->
relnamespace
;
ReleaseSysCache
(
tuple
);
return
result
;
}
/*
* RelationIsVisible
...
...
src/backend/executor/execMain.c
View file @
13437d1e
...
...
@@ -26,7 +26,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.19
7 2003/01/10 22:03:2
7 petere Exp $
* $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.19
8 2003/01/12 18:19:3
7 petere Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -419,7 +419,7 @@ ExecCheckXactReadOnly(Query *parsetree, CmdType operation)
if
(
!
rte
->
checkForWrite
)
continue
;
if
(
isTempNamespace
(
RelidGetNamespaceId
(
rte
->
relid
)))
if
(
isTempNamespace
(
get_rel_namespace
(
rte
->
relid
)))
continue
;
goto
fail
;
...
...
src/include/catalog/namespace.h
View file @
13437d1e
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: namespace.h,v 1.2
5 2003/01/10 22:03:30
petere Exp $
* $Id: namespace.h,v 1.2
6 2003/01/12 18:19:37
petere Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -51,7 +51,6 @@ typedef struct _OpclassCandidateList
extern
Oid
RangeVarGetRelid
(
const
RangeVar
*
relation
,
bool
failOK
);
extern
Oid
RangeVarGetCreationNamespace
(
const
RangeVar
*
newRelation
);
extern
Oid
RelnameGetRelid
(
const
char
*
relname
);
extern
Oid
RelidGetNamespaceId
(
Oid
relid
);
extern
bool
RelationIsVisible
(
Oid
relid
);
extern
Oid
TypenameGetTypid
(
const
char
*
typname
);
...
...
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