corrected SQL parameters & added get_raw_crash test
Merge pull request #2047 from twobraids/pg_too_many_s

Fixes  Bug 1007242 - corrected SQL parameters & added get_raw_crash test