File tree 1 file changed +5
-5
lines changed
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)
813
813
814
814
/* Parse the unit case-insensitively */
815
815
if (pg_strcasecmp (strptr , "bytes" ) == 0 )
816
- multiplier = 1 ;
816
+ multiplier = ( int64 ) 1 ;
817
817
else if (pg_strcasecmp (strptr , "kb" ) == 0 )
818
- multiplier = 1024 ;
818
+ multiplier = ( int64 ) 1024 ;
819
819
else if (pg_strcasecmp (strptr , "mb" ) == 0 )
820
- multiplier = 1024 * 1024 ;
820
+ multiplier = ( int64 ) 1024 * 1024 ;
821
821
else if (pg_strcasecmp (strptr , "gb" ) == 0 )
822
- multiplier = 1024 * 1024 * 1024 ;
822
+ multiplier = ( int64 ) 1024 * 1024 * 1024 ;
823
823
else if (pg_strcasecmp (strptr , "tb" ) == 0 )
824
- multiplier = 1024 * 1024 * 1024 * 1024LL ;
824
+ multiplier = ( int64 ) 1024 * 1024 * 1024 * 1024 ;
825
825
else
826
826
ereport (ERROR ,
827
827
(errcode (ERRCODE_INVALID_PARAMETER_VALUE ),
You can’t perform that action at this time.
0 commit comments