diff --git a/src/backend/utils/adt/json.c b/src/backend/utils/adt/json.c index 97ef135ba91..53a011d50b4 100644 --- a/src/backend/utils/adt/json.c +++ b/src/backend/utils/adt/json.c @@ -1232,9 +1232,8 @@ json_categorize_type(Oid typoid, { bool typisvarlena; - /* - * We should look through domains here, but we'll wait till 9.4. - */ + /* Look through any domain */ + typoid = getBaseType(typoid); /* We'll usually need to return the type output function */ getTypeOutputInfo(typoid, outfuncoid, &typisvarlena);