We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a5631d commit b2e9928Copy full SHA for b2e9928
1 file changed
redshift/helpers.go
@@ -21,7 +21,9 @@ const (
21
pqErrorCodeInvalidSchemaName = "3F000"
22
pqErrorCodeDeadlock = "40P01"
23
pqErrorCodeFailedTransaction = "25P02"
24
- pqErrorCodeDuplicateSchema = "42P06"
+ pqErrorDuplicateKeyViolation = "23505"
25
+
26
+ pqErrorCodeDuplicateSchema = "42P06"
27
28
pgErrorCodeInsufficientPrivileges = "42501"
29
)
@@ -107,6 +109,7 @@ func isRetryablePQError(code string) bool {
107
109
pqErrorCodeInvalidSchemaName: true,
108
110
pqErrorCodeDeadlock: true,
111
pqErrorCodeFailedTransaction: true,
112
+ pqErrorDuplicateKeyViolation: true,
113
}
114
115
_, ok := retryable[code]
0 commit comments