summaryrefslogtreecommitdiff
path: root/contrib/file_fdw/file_fdw.c
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2018-03-16 23:13:12 -0700
committerAndres Freund <andres@anarazel.de>2018-03-16 23:13:12 -0700
commitf3e4b95edb6cbf0cd41dc9ff0c884bfdc425e6fb (patch)
tree5afad69f915005ac1b69cae3a3575a92906196ea /contrib/file_fdw/file_fdw.c
parent9e17bdb8a525ff89c4535cd153dc0f2fa813ea59 (diff)
downloadpostgresql-f3e4b95edb6cbf0cd41dc9ff0c884bfdc425e6fb.tar.gz
Make ExplainPropertyInteger accept 64bit input, remove *Long variant.
'long' is not useful type across platforms, as it's 32bit on 32 bit platforms, and even on some 64bit platforms (e.g. windows) it's still only 32bits wide. As ExplainPropertyInteger should never be performance critical, change it to accept a 64bit argument and remove ExplainPropertyLong. Author: Andres Freund Discussion: https://postgr.es/m/20180314164832.n56wt7zcbpzi6zxe@alap3.anarazel.de
Diffstat (limited to 'contrib/file_fdw/file_fdw.c')
-rw-r--r--contrib/file_fdw/file_fdw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/file_fdw/file_fdw.c b/contrib/file_fdw/file_fdw.c
index cf0a3629bc..bf72a9108a 100644
--- a/contrib/file_fdw/file_fdw.c
+++ b/contrib/file_fdw/file_fdw.c
@@ -622,8 +622,8 @@ fileExplainForeignScan(ForeignScanState *node, ExplainState *es)
if (!is_program &&
stat(filename, &stat_buf) == 0)
- ExplainPropertyLong("Foreign File Size", (long) stat_buf.st_size,
- es);
+ ExplainPropertyInteger("Foreign File Size",
+ (int64) stat_buf.st_size, es);
}
}