Skip to content

Commit c4373d0

Browse files
author
Tanya Gupta
committed
refactoring
Signed-off-by: Tanya Gupta <[email protected]>
1 parent 417f145 commit c4373d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/parser/parse_type.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,10 +368,10 @@ typenameTypeMod(ParseState *pstate, const TypeName *typeName, Type typ)
368368
typmodin = ((Form_pg_type) GETSTRUCT(typ))->typmodin;
369369
typeoid = ((Form_pg_type) GETSTRUCT(typ))->oid;
370370
typbasetype = ((Form_pg_type) GETSTRUCT(typ))->typbasetype;
371-
basetypeid = getBaseType(typeoid);
372371

373372
if (dump_restore && (strcmp(dump_restore, "on") == 0) && !typmodin && typbasetype)
374373
{
374+
basetypeid = getBaseType(typeoid);
375375
tup = SearchSysCache1(TYPEOID, ObjectIdGetDatum(basetypeid));
376376
if (!HeapTupleIsValid(tup)) /* should not happen */
377377
elog(ERROR, "cache lookup failed for type %u", basetypeid);

0 commit comments

Comments
 (0)