lib/pq — pull request #149 by johto (2013-09-27 09:37:37+00:00)
Title: Ignore ParameterStatus while waiting for RowDescription or BindComplete

Steps to reproduce:

1) Spam Query() with at least one parameter (to avoid simpleQuery() fast path)
2) Reload the server, changing the value of one of the parameters which are sent using ParameterStatus (e.g. search_path)
3) Observe a pattern similar to the following:
pq: unexpected describe rows response: 'S'
pq: unexpected describe rows response: 'S'
panic or unexpected bind response

Hitting the one while waiting for BindComplete can be reproduced using a similar method, but it appeared to be slightly harder unless the RowDescription one had been patched.