Add PG reindex linting warning and improve some smaller stuff

This commit is contained in:
David Wobrock committed 2021-06-19 18:15:40 +02:00
1 parent 6e15f65467
commit fa56196f04
4 files changed
+21 -7

No files matched your search

@@ -21,4 +21,11 @@ class PostgresqlAnalyser(BaseAnalyser):
"mode": "one_liner",
"type": "warning",
},
{
"code": "REINDEX",
"fn": lambda sql, **kw: sql.startswith("REINDEX"),
"msg": "REINDEX locks table",
"mode": "one_liner",
"type": "warning",
},
]