File tree Expand file tree Collapse file tree 3 files changed +4
-28
lines changed Expand file tree Collapse file tree 3 files changed +4
-28
lines changed Original file line number Diff line number Diff line change 13
13
* Portions Copyright (c) 1994, Regents of the University of California
14
14
*
15
15
* IDENTIFICATION
16
- * $Header: /cvsroot/pgsql/src/backend/catalog/namespace.c,v 1.44 2003/01/10 22:03:27 petere Exp $
16
+ * $Header: /cvsroot/pgsql/src/backend/catalog/namespace.c,v 1.45 2003/01/12 18:19:37 petere Exp $
17
17
*
18
18
*-------------------------------------------------------------------------
19
19
*/
@@ -278,29 +278,6 @@ RelnameGetRelid(const char *relname)
278
278
return InvalidOid ;
279
279
}
280
280
281
- /*
282
- * RelidGetNamespaceId
283
- * Given a relation OID, return the namespace OID.
284
- */
285
- Oid
286
- RelidGetNamespaceId (Oid relid )
287
- {
288
- HeapTuple tuple ;
289
- Form_pg_class pg_class_form ;
290
- Oid result ;
291
-
292
- tuple = SearchSysCache (RELOID ,
293
- ObjectIdGetDatum (relid ),
294
- 0 , 0 , 0 );
295
- if (!HeapTupleIsValid (tuple ))
296
- elog (ERROR , "cache lookup failed for relation %u" , relid );
297
- pg_class_form = (Form_pg_class ) GETSTRUCT (tuple );
298
-
299
- result = pg_class_form -> relnamespace ;
300
- ReleaseSysCache (tuple );
301
- return result ;
302
- }
303
-
304
281
305
282
/*
306
283
* RelationIsVisible
Original file line number Diff line number Diff line change 26
26
*
27
27
*
28
28
* IDENTIFICATION
29
- * $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.197 2003/01/10 22:03:27 petere Exp $
29
+ * $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.198 2003/01/12 18:19:37 petere Exp $
30
30
*
31
31
*-------------------------------------------------------------------------
32
32
*/
@@ -419,7 +419,7 @@ ExecCheckXactReadOnly(Query *parsetree, CmdType operation)
419
419
if (!rte -> checkForWrite )
420
420
continue ;
421
421
422
- if (isTempNamespace (RelidGetNamespaceId (rte -> relid )))
422
+ if (isTempNamespace (get_rel_namespace (rte -> relid )))
423
423
continue ;
424
424
425
425
goto fail ;
Original file line number Diff line number Diff line change 7
7
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
8
8
* Portions Copyright (c) 1994, Regents of the University of California
9
9
*
10
- * $Id: namespace.h,v 1.25 2003/01/10 22:03:30 petere Exp $
10
+ * $Id: namespace.h,v 1.26 2003/01/12 18:19:37 petere Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
@@ -51,7 +51,6 @@ typedef struct _OpclassCandidateList
51
51
extern Oid RangeVarGetRelid (const RangeVar * relation , bool failOK );
52
52
extern Oid RangeVarGetCreationNamespace (const RangeVar * newRelation );
53
53
extern Oid RelnameGetRelid (const char * relname );
54
- extern Oid RelidGetNamespaceId (Oid relid );
55
54
extern bool RelationIsVisible (Oid relid );
56
55
57
56
extern Oid TypenameGetTypid (const char * typname );
You can’t perform that action at this time.
0 commit comments