This is a discussion on pgbench - segmentation fault within the Pgsql Patches forums, part of the PostgreSQL category; --> Hi, pgbench contrib module is doing segmentation fault on Solaris when -d option is specified without -p option specified. ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi, 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. Regards Julo ---------------------------(end of broadcast)--------------------------- TIP 6: explain analyze is your friend |
| ||||
| 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 ---------------------------(end of broadcast)--------------------------- TIP 7: You can help support the PostgreSQL project by donating at http://www.postgresql.org/about/donate |
| Thread Tools | |
| Display Modes | |
|
|