pgbench contrib module is doing segmentation fault on Solaris when -d option is specified without -p option specified.
This is because the -d option dumps the connection information and the default value of pgport variable is NULL which causes segmentation fault on Solaris when NULL is passed to printf function.
Attached is a trivial patch that changes the default value of pgport to empty string. PQsetdbLogin function does not make any difference between NULL and empty string.
Julius Stroffek <Julius.Stroffek@Sun.COM> writes:
> pgbench contrib module is doing segmentation fault on Solaris
> when -d option is specified without -p option specified.
Applied in HEAD and 8.2. Thanks for the report!
regards, tom lane
Есть вопросы? Напишите нам!
✖
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера