From 9d36a386608d7349964e76120e48987e3ec67d04 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 4 Sep 2017 13:45:20 -0400 Subject: [PATCH] Adjust pgbench to allow non-ASCII characters in variable names. This puts it in sync with psql's notion of what is a valid variable name. Like psql, we document that "non-Latin letters" are allowed, but actually any non-ASCII character is accepted. Fabien Coelho Discussion: https://postgr.es/m/20170405.094548.1184280384967203518.t-ishii@sraoss.co.jp --- doc/src/sgml/ref/pgbench.sgml | 2 ++ src/bin/pgbench/exprscan.l | 4 +-- src/bin/pgbench/pgbench.c | 47 ++++++++++++++++++++++++++++------- 3 files changed, 42 insertions(+), 11 deletions(-) diff --git a/doc/src/sgml/ref/pgbench.sgml b/doc/src/sgml/ref/pgbench.sgml index 03e1212d50a..f5db8d18d32 100644 --- a/doc/src/sgml/ref/pgbench.sgml +++ b/doc/src/sgml/ref/pgbench.sgml @@ -771,6 +771,8 @@ pgbench options dbname There is a simple variable-substitution facility for script files. + Variable names must consist of letters (including non-Latin letters), + digits, and underscores. Variables can be set by the command-line