Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
reputation_tracker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
reputation_tracker
Commits
2b201492
Commit
2b201492
authored
6 months ago
by
Dan Notestein
Browse files
Options
Downloads
Patches
Plain Diff
Add missing schema name that is needed when dropping index
parent
2015fc84
No related branches found
No related tags found
1 merge request
!83
Merge develop to master for release
Pipeline
#106158
passed
6 months ago
Stage: lint
Stage: build
Stage: test
Stage: cleanup
Stage: publish
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
db/rep_indexes.sql
+2
-2
2 additions, 2 deletions
db/rep_indexes.sql
with
2 additions
and
2 deletions
db/rep_indexes.sql
+
2
−
2
View file @
2b201492
...
@@ -21,7 +21,7 @@ DO $$
...
@@ -21,7 +21,7 @@ DO $$
BEGIN
BEGIN
IF
EXISTS
(
SELECT
1
FROM
pg_index
WHERE
NOT
indisvalid
AND
indexrelid
=
(
SELECT
oid
FROM
pg_class
WHERE
relname
=
'effective_comment_vote_idx'
))
THEN
IF
EXISTS
(
SELECT
1
FROM
pg_index
WHERE
NOT
indisvalid
AND
indexrelid
=
(
SELECT
oid
FROM
pg_class
WHERE
relname
=
'effective_comment_vote_idx'
))
THEN
RAISE
NOTICE
'Dropping invalid index effective_comment_vote_idx, it will be recreated'
;
RAISE
NOTICE
'Dropping invalid index effective_comment_vote_idx, it will be recreated'
;
DROP
INDEX
effective_comment_vote_idx
;
DROP
INDEX
hive
.
effective_comment_vote_idx
;
END
IF
;
END
IF
;
END
END
$$
;
$$
;
...
@@ -39,7 +39,7 @@ DO $$
...
@@ -39,7 +39,7 @@ DO $$
BEGIN
BEGIN
IF
EXISTS
(
SELECT
1
FROM
pg_index
WHERE
NOT
indisvalid
AND
indexrelid
=
(
SELECT
oid
FROM
pg_class
WHERE
relname
=
'delete_comment_op_idx'
))
THEN
IF
EXISTS
(
SELECT
1
FROM
pg_index
WHERE
NOT
indisvalid
AND
indexrelid
=
(
SELECT
oid
FROM
pg_class
WHERE
relname
=
'delete_comment_op_idx'
))
THEN
RAISE
NOTICE
'Dropping invalid index delete_comment_op_idx, it will be recreated'
;
RAISE
NOTICE
'Dropping invalid index delete_comment_op_idx, it will be recreated'
;
DROP
INDEX
delete_comment_op_idx
;
DROP
INDEX
hive
.
delete_comment_op_idx
;
END
IF
;
END
IF
;
END
END
$$
;
$$
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment