Downgrade CREATE_INDEX_EXCLUSIVE to a warning
While it's always a dangerous *pattern* to create an index while a transaction is open & holds an exclusive lock, in practice it's not always a big deal (for example, indexing a table with very few rows can be fast). Accordingly, downgrade to a warning.
This commit is contained in:
1 parent
0c5519d9dc
commit
48fac8856b
4 files changed
+14
-6
No files matched your search
@@ -150,5 +150,6 @@ class PostgresqlBackwardCompatibilityDetectionTestCase(
|
||||
self._test_linter_finds_errors(app)
|
||||
|
||||
def test_create_index_exclusive(self):
|
||||
app = fixtures.CREATE_INDEX_EXCLUSIVE
|
||||
self._test_linter_finds_errors(app)
|
||||
linter = self._launch_linter(fixtures.CREATE_INDEX_EXCLUSIVE)
|
||||
self.assertFalse(linter.has_errors)
|
||||
self.assertTrue(linter.nb_warnings)
|
||||
Reference in new issue
Block a user