Closed
Description
Both curiosity and a request.
Line 1180 in 2f558c2
| def _get_reset_query(self): |
Why this level of complexity rather than the use of the DISCARD keyword?
https://www.postgresql.org/docs/9.6/static/sql-discard.html
Would a DISCARD ALL not do the right thing here?
Metadata
Metadata
Assignees
Labels
No labels
Activity
1st1 commentedon Mar 5, 2018
To support older versions of postgres (< 9.3).
1st1 commentedon Mar 5, 2018
Also
DISCARD ALLwould discard prepared statements, which we want to keep alive between sessions.elprans commentedon Mar 5, 2018
Aside from old Postgres versions there are also various Postgres forks and outright new databases that speak the protocol, but not necessarily support all Postgres features.
mike-hart commentedon Mar 5, 2018
Thanks all.