keuss 2.0.2 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/backends/postgres.js +10 -1
- package/package.json +1 -1
package/backends/postgres.js
CHANGED
|
@@ -43,7 +43,16 @@ class PGQueue extends Queue {
|
|
|
43
43
|
reserved TIMESTAMPTZ
|
|
44
44
|
);
|
|
45
45
|
CREATE INDEX IF NOT EXISTS idx_${this._tbl_name}_mature ON ${this._tbl_name} (mature);
|
|
46
|
-
`, err =>
|
|
46
|
+
`, err => {
|
|
47
|
+
if (err){
|
|
48
|
+
// ignore catalog issues on concurrent table creation
|
|
49
|
+
// (duplicate key value violates unique constraint "pg_type_typname_nsp_index")
|
|
50
|
+
if (err.code == '23505') return cb()
|
|
51
|
+
return cb(err);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
cb ();
|
|
55
|
+
});
|
|
47
56
|
}
|
|
48
57
|
|
|
49
58
|
|