Verifying variable names in pgbench

Поиск
Список
Период
Сортировка
От Takahiro Itagaki
Тема Verifying variable names in pgbench
Дата
Msg-id 20091228123859.92F8.52131E4D@oss.ntt.co.jp
обсуждение исходный текст
Список pgsql-hackers
We can define variables with any names in pgbench,
but only can refer them with names that consist of [A-Za-z0-9_]+ .
It could cause confusion discussed here:
http://archives.postgresql.org/message-id/4B272833.8080500@2ndquadrant.com

The attached patch verifies variable names at definition.
    $ pgbench -D var:name=value
    (global): invalid variable name 'var:name'

It would help users to determine why their custom scripts failed
when they misuse "\setXXX :varname" (the colon should be removed).

Regards,
---
Takahiro Itagaki
NTT Open Source Software Center

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: Small locking bugs in hs
Следующее
От: James William Pye
Дата:
Сообщение: Re: Additional SPI functions