Re: [HACKERS] pgbench - allow to store select results intovariables
От | Tatsuo Ishii |
---|---|
Тема | Re: [HACKERS] pgbench - allow to store select results intovariables |
Дата | |
Msg-id | 20170410.083219.1414201047665260666.t-ishii@sraoss.co.jp обсуждение исходный текст |
Ответ на | Re: [HACKERS] pgbench - allow to store select results intovariables (Fabien COELHO <fabien.coelho@mines-paristech.fr>) |
Ответы |
Re: [HACKERS] pgbench - allow to store select results intovariables
|
Список | pgsql-hackers |
Fabien, >> As the variable infrastructures are pretty different between psql & >> pgbench (typed vs untyped values, sorted array vs linked list data >> structure, no hook vs 2 hooks, name spaces vs no such thing...), I >> have chosen the simplest option of just copying the name checking >> function and extending the lexer to authorize non-ascii letters, so >> that psql/pgbench would accept the same variable names with the same >> constraint about encodings. >> >> See patch attached & test script. > > Argh, I'm jet-lagged, wrong patch suffix... Here it is with the right > suffix. Thank you for the patch. I tested a little bit and found that it does not allow value replacement against non ascii variables in given SQL statements . Is it intentional? If not, I think you need to fix parseVariable() as well. Best regards, -- Tatsuo Ishii SRA OSS, Inc. Japan English: http://www.sraoss.co.jp/index_en.php Japanese:http://www.sraoss.co.jp
В списке pgsql-hackers по дате отправления: