pgbench failed when -f option contains a char '@'

Поиск
Список
Период
Сортировка
От Wang, Shenhao
Тема pgbench failed when -f option contains a char '@'
Дата
Msg-id 1c4e81550d214741827a03292222db8d@G08CNEXMBPEKD06.g08.fujitsu.local
обсуждение исходный текст
Ответы Re: pgbench failed when -f option contains a char '@'  (Heikki Linnakangas <hlinnaka@iki.fi>)
Re: pgbench failed when -f option contains a char '@'  (Fabien COELHO <coelho@cri.ensmp.fr>)
Список pgsql-hackers
Hi, hackers

pgbench use -f filename[@weight] to receive a sql script file with a weight,
but if I create a file contains char'@', like a@2.sql, specify this file without weigth,
pgbench will failed with error:
    pgbench: fatal: invalid weight specification: @2.sql

This action may be unfriendly, because the char '@' is a valid character on Linux
and Windows.

I have created a patch to modify this action. The patch is attached.

Thoughts?

Regards
Shenhao Wang



Вложения

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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: [HACKERS] [PATCH] Generic type subscripting
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Refactoring HMAC in the core code