Commit Graph
10 Commits
Author SHA1 Message Date
Alex Suraci badbc8c738 bump lib/pq 2018-11-29 09:10:50 +01:00
Alex Suraci 85dd0684ba extract and document serialization failure check 2018-11-20 10:50:55 -05:00
Alex Suraci 587081a643 postgres: refactor error handling to fix retrying
prior to this change, many of the functions in the ExecTx callback would
wrap the error before returning it. this made it impossible to check
for the error code.

instead, the error wrapping has been moved to be external to the
`ExecTx` callback, so that the error code can be checked and
serialization failures can be retried.
2018-11-20 10:50:55 -05:00
Alex Suraci 5d67da1472 bump lib/pq 2018-11-20 10:50:55 -05:00
Alex Suraci aa068b667a postgres: improve readability of error check 2018-11-20 10:50:55 -05:00
Alex Suraci 9b9013a560 postgres: use stdlib to set serializable tx level
also use a context for the rollback, which is a bit cleaner since it
only results in one 'defer', rather than N from the loop
2018-11-20 10:50:55 -05:00
Alex Suraci 7e96021428 retry on serialization errors 2018-11-20 10:50:55 -05:00
Alex Suraci 0b856d1a75 pg: support host:port for backwards-compatibility 2018-11-20 10:22:39 -05:00
Alex Suraci 7c63be4104 remove incomplete mysql and cockroachdb support 2018-11-16 18:07:20 +00:00
Alex Suraci dcca427592 fix bogus conformance failure due to time zones
this failed on my machine due to the unexported 'loc' field of the time
structure - it was nil in one and set to a ton of tiemzone data in the
other. instead let's just compare the unix timestamp value and zero it
out for the struct comparison.
2018-11-15 13:51:07 -05:00