mirror of
https://github.com/postgres/postgres.git
synced 2025-06-14 18:42:34 +03:00
Further code review for range types patch.
Fix some bugs in coercion logic and pg_dump; more comment cleanup; minor cosmetic improvements.
This commit is contained in:
10
src/backend/utils/cache/lsyscache.c
vendored
10
src/backend/utils/cache/lsyscache.c
vendored
@ -2253,7 +2253,7 @@ type_is_enum(Oid typid)
|
||||
|
||||
/*
|
||||
* type_is_range
|
||||
* Returns true if the given type is an range type.
|
||||
* Returns true if the given type is a range type.
|
||||
*/
|
||||
bool
|
||||
type_is_range(Oid typid)
|
||||
@ -2867,6 +2867,14 @@ get_namespace_name(Oid nspid)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* ---------- PG_RANGE CACHE ---------- */
|
||||
|
||||
/*
|
||||
* get_range_subtype
|
||||
* Returns the subtype of a given range type
|
||||
*
|
||||
* Returns InvalidOid if the type is not a range type.
|
||||
*/
|
||||
Oid
|
||||
get_range_subtype(Oid rangeOid)
|
||||
{
|
||||
|
4
src/backend/utils/cache/syscache.c
vendored
4
src/backend/utils/cache/syscache.c
vendored
@ -555,7 +555,7 @@ static const struct cachedesc cacheinfo[] = {
|
||||
},
|
||||
2048
|
||||
},
|
||||
{RangeRelationId, /* RANGETYPE */
|
||||
{RangeRelationId, /* RANGETYPE */
|
||||
RangeTypidIndexId,
|
||||
1,
|
||||
{
|
||||
@ -564,7 +564,7 @@ static const struct cachedesc cacheinfo[] = {
|
||||
0,
|
||||
0
|
||||
},
|
||||
1024
|
||||
64
|
||||
},
|
||||
{RelationRelationId, /* RELNAMENSP */
|
||||
ClassNameNspIndexId,
|
||||
|
Reference in New Issue
Block a user