Add context / cancel ideas

v4-experimental
Jack Christensen 2018-11-17 20:24:22 -06:00
parent 65e69c5580
commit 21656fbd17
1 changed files with 1 additions and 0 deletions

1
v4.md
View File

@ -19,6 +19,7 @@ Potential Changes:
* Decouple various logical layers of PostgreSQL connection such that an advanced user can choose what layer to work at and pgx still handles the lower level details. e.g Normal high level query level, PostgreSQL wire protocol message level, or wire byte level.
* Change prepared statement usage from using name as SQL text to specifically calling prepared statement (more like database/sql).
* Remove stdlib hack for RegisterDriverConfig now that database/sql supports better way
* Consider how to simplify context.Context and query cancellation support (or even remove). This logic is very complex and error prone. Perhaps connections should simply be killed on a cancelled context rather than trying to recover. Separating PostgreSQL query cancellation from context might simplify them both. Also consider that PG queries can be cancelled and connections can be terminated via SQL functions from another connection.
Minor Potential Changes: