Marginal speedup in RelationIsVisible and TypeIsVisible: avoid a redundant
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 6 Oct 2005 22:43:16 +0000 (22:43 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 6 Oct 2005 22:43:16 +0000 (22:43 +0000)
commitdf5c41d892d28df9dde32f5828f2de9364cf52d2
treea3ca8897422aede85ab60e4ee5a471c94fe23d98
parent7624fdd38e6d01fece676dc60d6985536b96a013
Marginal speedup in RelationIsVisible and TypeIsVisible: avoid a redundant
cache lookup in the success case.  This won't help much for cases where
the given relation is far down the search path, but it does not hurt in
any cases either; and it requires only a little new code.  Per gripe from
Jim Nasby about slowness of \d with many tables.
src/backend/catalog/namespace.c