File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -813,15 +813,15 @@ pg_size_bytes(PG_FUNCTION_ARGS)
813813
814814 /* Parse the unit case-insensitively */
815815 if (pg_strcasecmp (strptr , "bytes" ) == 0 )
816- multiplier = 1 ;
816+ multiplier = ( int64 ) 1 ;
817817 else if (pg_strcasecmp (strptr , "kb" ) == 0 )
818- multiplier = 1024 ;
818+ multiplier = ( int64 ) 1024 ;
819819 else if (pg_strcasecmp (strptr , "mb" ) == 0 )
820- multiplier = 1024 * 1024 ;
820+ multiplier = ( int64 ) 1024 * 1024 ;
821821 else if (pg_strcasecmp (strptr , "gb" ) == 0 )
822- multiplier = 1024 * 1024 * 1024 ;
822+ multiplier = ( int64 ) 1024 * 1024 * 1024 ;
823823 else if (pg_strcasecmp (strptr , "tb" ) == 0 )
824- multiplier = 1024 * 1024 * 1024 * 1024LL ;
824+ multiplier = ( int64 ) 1024 * 1024 * 1024 * 1024 ;
825825 else
826826 ereport (ERROR ,
827827 (errcode (ERRCODE_INVALID_PARAMETER_VALUE ),
You can’t perform that action at this time.
0 commit comments