Skip to content

Commit 06fe535

Browse files
author
Tanya Gupta
committed
updating comment
Signed-off-by: Tanya Gupta <[email protected]>
1 parent d3b5366 commit 06fe535

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/backend/parser/parse_type.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,7 @@ typenameTypeMod(ParseState *pstate, const TypeName *typeName, Type typ)
363363
typmodin = ((Form_pg_type) GETSTRUCT(typ))->typmodin;
364364

365365
/*
366-
* Find the OID of domain's typmodin function, which is same as its basetype's typmodin OID,
367-
* for domains like smallmoney/money and their UDTs during restore.
366+
* Find the OID of domain's typmodin function, which is same as its basetype's typmodin OID.
368367
*/
369368
if (get_domain_typmodin_hook)
370369
typmodin = (*get_domain_typmodin_hook)(typ);

src/include/parser/parse_type.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,8 @@ typedef Oid (*handle_default_collation_hook_type) (Type typ, bool handle_pg_type
7373
extern PGDLLEXPORT handle_default_collation_hook_type handle_default_collation_hook;
7474

7575
/*
76-
* Hook to find oid of typmodin function for a given domain tuple which is essentially same as
77-
* the oid of it's basetype's typmodin function. This is only used during restore to handle domains
78-
* like smallmoney/money and UDTs created on them.
76+
* Hook to find oid of typmodin function for a given domain which is essentially same as
77+
* the oid of it's basetype's typmodin function.
7978
*/
8079
typedef Oid (*get_domain_typmodin_hook_type) (Type typ);
8180
extern PGDLLIMPORT get_domain_typmodin_hook_type get_domain_typmodin_hook;

0 commit comments

Comments
 (0)