Use strtoi64() in pgbench, replacing its open-coded implementation

Heikki Linnakangas <hlinnaka@iki.fi>

From: Heikki Linnakangas <hlinnaka@iki.fi>
To: "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2025-11-19T15:37:32Z
Lists: pgsql-hackers

Attachments

Here's a small patch to replace the int64 parsing code in pgbench with a 
call to strtoi64(). Makes it a little simpler.

Spotted this while grepping for all the different integer parsing 
functions we have. We could probably consolidate them some more, we 
still have quite a different integer-parsing routines in the backend and 
in the frontend. But this is one small, straightforward step in that 
direction.

- Heikki

Commits

  1. Use strtoi64() in pgbench, replacing its open-coded implementation