We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54fbd15 commit 2b93e3dCopy full SHA for 2b93e3d
src/backend/catalog/pg_type.c
@@ -785,15 +785,12 @@ makeArrayTypeName(const char *typeName, Oid typeNamespace)
785
{
786
char *arr = (char *) palloc(NAMEDATALEN);
787
int namelen = strlen(typeName);
788
- Relation pg_type_desc;
789
int i;
790
791
/*
792
* The idea is to prepend underscores as needed until we make a name that
793
* doesn't collide with anything...
794
*/
795
- pg_type_desc = table_open(TypeRelationId, AccessShareLock);
796
-
797
for (i = 1; i < NAMEDATALEN - 1; i++)
798
799
arr[i - 1] = '_';
@@ -810,8 +807,6 @@ makeArrayTypeName(const char *typeName, Oid typeNamespace)
810
807
break;
811
808
}
812
809
813
- table_close(pg_type_desc, AccessShareLock);
814
815
if (i >= NAMEDATALEN - 1)
816
ereport(ERROR,
817
(errcode(ERRCODE_DUPLICATE_OBJECT),
0 commit comments