Skip to content

Commit 6abe9ac

Browse files
authored
Revert "Add 'IF NOT EXISTS' to all 'CREATE INDEX CONCURRENTLY' statements to avoid deadlocks (#5297)" (#5299)
2 parents 1de9148 + be0444a commit 6abe9ac

File tree

48 files changed

+49
-49
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+49
-49
lines changed

crates/storage-pg/migrations/20250410000000_idx_compat_access_tokens_session_fk.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
-- SPDX-License-Identifier: AGPL-3.0-only
55
-- Please see LICENSE in the repository root for full details.
66

7-
CREATE INDEX CONCURRENTLY IF NOT EXISTS
7+
CREATE INDEX CONCURRENTLY
88
compat_access_tokens_session_fk
99
ON compat_access_tokens (compat_session_id);

crates/storage-pg/migrations/20250410000001_idx_compat_refresh_tokens_session_fk.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
-- SPDX-License-Identifier: AGPL-3.0-only
55
-- Please see LICENSE in the repository root for full details.
66

7-
CREATE INDEX CONCURRENTLY IF NOT EXISTS
7+
CREATE INDEX CONCURRENTLY
88
compat_refresh_tokens_session_fk
99
ON compat_refresh_tokens (compat_session_id);

crates/storage-pg/migrations/20250410000002_idx_compat_refresh_tokens_access_token_fk.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
-- SPDX-License-Identifier: AGPL-3.0-only
55
-- Please see LICENSE in the repository root for full details.
66

7-
CREATE INDEX CONCURRENTLY IF NOT EXISTS
7+
CREATE INDEX CONCURRENTLY
88
compat_refresh_tokens_access_token_fk
99
ON compat_refresh_tokens (compat_access_token_id);

crates/storage-pg/migrations/20250410000003_idx_compat_sessions_user_fk.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
-- Including the `last_active_at` column lets us effeciently filter in-memory
88
-- for those sessions without fetching the rows, and without including it in the
99
-- index btree
10-
CREATE INDEX CONCURRENTLY IF NOT EXISTS
10+
CREATE INDEX CONCURRENTLY
1111
compat_sessions_user_fk
1212
ON compat_sessions (user_id)
1313
INCLUDE (last_active_at);

crates/storage-pg/migrations/20250410000004_idx_compat_sessions_user_session_fk.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
-- SPDX-License-Identifier: AGPL-3.0-only
55
-- Please see LICENSE in the repository root for full details.
66

7-
CREATE INDEX CONCURRENTLY IF NOT EXISTS
7+
CREATE INDEX CONCURRENTLY
88
compat_sessions_user_session_fk
99
ON compat_sessions (user_session_id);

crates/storage-pg/migrations/20250410000006_idx_compat_sso_logins_session_fk.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
-- SPDX-License-Identifier: AGPL-3.0-only
55
-- Please see LICENSE in the repository root for full details.
66

7-
CREATE INDEX CONCURRENTLY IF NOT EXISTS
7+
CREATE INDEX CONCURRENTLY
88
compat_sso_logins_session_fk
99
ON compat_sso_logins (compat_session_id);

crates/storage-pg/migrations/20250410000007_idx_oauth2_access_tokens_session_fk.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
-- SPDX-License-Identifier: AGPL-3.0-only
55
-- Please see LICENSE in the repository root for full details.
66

7-
CREATE INDEX CONCURRENTLY IF NOT EXISTS
7+
CREATE INDEX CONCURRENTLY
88
oauth2_access_tokens_session_fk
99
ON oauth2_access_tokens (oauth2_session_id);

crates/storage-pg/migrations/20250410000008_idx_oauth2_authorization_grants_session_fk.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
-- SPDX-License-Identifier: AGPL-3.0-only
55
-- Please see LICENSE in the repository root for full details.
66

7-
CREATE INDEX CONCURRENTLY IF NOT EXISTS
7+
CREATE INDEX CONCURRENTLY
88
oauth2_authorization_grants_session_fk
99
ON oauth2_authorization_grants (oauth2_session_id);

crates/storage-pg/migrations/20250410000009_idx_oauth2_authorization_grants_client_fk.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
-- SPDX-License-Identifier: AGPL-3.0-only
55
-- Please see LICENSE in the repository root for full details.
66

7-
CREATE INDEX CONCURRENTLY IF NOT EXISTS
7+
CREATE INDEX CONCURRENTLY
88
oauth2_authorization_grants_client_fk
99
ON oauth2_authorization_grants (oauth2_client_id);

crates/storage-pg/migrations/20250410000010_idx_oauth2_consents_client_fk.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
-- SPDX-License-Identifier: AGPL-3.0-only
55
-- Please see LICENSE in the repository root for full details.
66

7-
CREATE INDEX CONCURRENTLY IF NOT EXISTS
7+
CREATE INDEX CONCURRENTLY
88
oauth2_consents_client_fk
99
ON oauth2_consents (oauth2_client_id);

0 commit comments

Comments
 (0)