summaryrefslogtreecommitdiff
path: root/src/bin/pgbench/pgbench.c
diff options
context:
space:
mode:
authorFujii Masao <fujii@postgresql.org>2025-09-18 11:22:21 +0900
committerFujii Masao <fujii@postgresql.org>2025-09-18 11:22:21 +0900
commit2e66cae935c2e0f7ce9bab6b65ddeb7806f4de7c (patch)
tree29b3869b6a8bbfa0a368921cd1607ed7df5b811f /src/bin/pgbench/pgbench.c
parent45f50c995fb658bee11bf26b8c6f4983eaa223c0 (diff)
pgbench: Remove unused argument from create_sql_command().
Author: Yugo Nagata <nagata@sraoss.co.jp> Reviewed-by: Steven Niu <niushiji@gmail.com> Discussion: https://postgr.es/m/20250917112814.096f660ea4c3c64630475e62@sraoss.co.jp
Diffstat (limited to 'src/bin/pgbench/pgbench.c')
-rw-r--r--src/bin/pgbench/pgbench.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/pgbench/pgbench.c b/src/bin/pgbench/pgbench.c
index 125f3c7bbbe..3cafd88ac53 100644
--- a/src/bin/pgbench/pgbench.c
+++ b/src/bin/pgbench/pgbench.c
@@ -5599,7 +5599,7 @@ skip_sql_comments(char *sql_command)
* struct.
*/
static Command *
-create_sql_command(PQExpBuffer buf, const char *source)
+create_sql_command(PQExpBuffer buf)
{
Command *my_command;
char *p = skip_sql_comments(buf->data);
@@ -5992,7 +5992,7 @@ ParseScript(const char *script, const char *desc, int weight)
sr = psql_scan(sstate, &line_buf, &prompt);
/* If we collected a new SQL command, process that */
- command = create_sql_command(&line_buf, desc);
+ command = create_sql_command(&line_buf);
/* store new command */
if (command)