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)
785785{
786786 char * arr = (char * ) palloc (NAMEDATALEN );
787787 int namelen = strlen (typeName );
788- Relation pg_type_desc ;
789788 int i ;
790789
791790 /*
792791 * The idea is to prepend underscores as needed until we make a name that
793792 * doesn't collide with anything...
794793 */
795- pg_type_desc = table_open (TypeRelationId , AccessShareLock );
796-
797794 for (i = 1 ; i < NAMEDATALEN - 1 ; i ++ )
798795 {
799796 arr [i - 1 ] = '_' ;
@@ -810,8 +807,6 @@ makeArrayTypeName(const char *typeName, Oid typeNamespace)
810807 break ;
811808 }
812809
813- table_close (pg_type_desc , AccessShareLock );
814-
815810 if (i >= NAMEDATALEN - 1 )
816811 ereport (ERROR ,
817812 (errcode (ERRCODE_DUPLICATE_OBJECT ),
You can’t perform that action at this time.
0 commit comments