diff options
author | Tom Lane | 2002-04-12 20:38:31 +0000 |
---|---|---|
committer | Tom Lane | 2002-04-12 20:38:31 +0000 |
commit | 9999f5a10e722c052006886b678995695001958a (patch) | |
tree | ee8b463a3369b5b4283ebb5aa893549de7c3fc45 /src/backend/optimizer | |
parent | 79b60cb132824a4939178b3ce9ded5c220a0f179 (diff) |
Checking to decide whether relations are system relations now depends
on the namespace not the name; pg_ is not a reserved prefix for table
names anymore. From Fernando Nasser.
Diffstat (limited to 'src/backend/optimizer')
-rw-r--r-- | src/backend/optimizer/util/plancat.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/backend/optimizer/util/plancat.c b/src/backend/optimizer/util/plancat.c index 447b3e61f2b..6ae9e1b7e90 100644 --- a/src/backend/optimizer/util/plancat.c +++ b/src/backend/optimizer/util/plancat.c @@ -9,7 +9,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/optimizer/util/plancat.c,v 1.70 2002/02/19 20:11:14 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/optimizer/util/plancat.c,v 1.71 2002/04/12 20:38:26 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -58,8 +58,7 @@ get_relation_info(Oid relationObjectId, relationObjectId); relation = (Form_pg_class) GETSTRUCT(relationTuple); - if (IsIgnoringSystemIndexes() && - IsSystemRelationName(NameStr(relation->relname))) + if (IsIgnoringSystemIndexes() && IsSystemClass(relation)) *hasindex = false; else *hasindex = relation->relhasindex; |