aboutsummaryrefslogtreecommitdiff
path: root/contrib/rserv/rserv.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/rserv/rserv.c')
-rw-r--r--contrib/rserv/rserv.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/contrib/rserv/rserv.c b/contrib/rserv/rserv.c
index 8672eb79cb6..dc5f1268c97 100644
--- a/contrib/rserv/rserv.c
+++ b/contrib/rserv/rserv.c
@@ -102,10 +102,7 @@ _rserv_log_()
if (keynum == ObjectIdAttributeNumber)
{
- snprintf(oidbuf, "%u", 64,
- rel->rd_rel->relhasoids
- ? HeapTupleGetOid(tuple)
- : InvalidOid);
+ snprintf(oidbuf, "%u", sizeof(oidbuf), HeapTupleGetOid(tuple));
key = oidbuf;
}
else