File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -785,15 +785,12 @@ makeArrayTypeName(const char *typeName, Oid typeNamespace)
785
785
{
786
786
char * arr = (char * ) palloc (NAMEDATALEN );
787
787
int namelen = strlen (typeName );
788
- Relation pg_type_desc ;
789
788
int i ;
790
789
791
790
/*
792
791
* The idea is to prepend underscores as needed until we make a name that
793
792
* doesn't collide with anything...
794
793
*/
795
- pg_type_desc = table_open (TypeRelationId , AccessShareLock );
796
-
797
794
for (i = 1 ; i < NAMEDATALEN - 1 ; i ++ )
798
795
{
799
796
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
810
if (i >= NAMEDATALEN - 1 )
816
811
ereport (ERROR ,
817
812
(errcode (ERRCODE_DUPLICATE_OBJECT ),
You can’t perform that action at this time.
0 commit comments