Skip to content

Commit e978190

Browse files
authored
refactor: we do not need to be overly protective if we are re-indexing full db now, remove unnecessary complexity. (#435)
2 parents d17e22c + 991cdfe commit e978190

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed
Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1 @@
1-
DO $$
2-
BEGIN
3-
IF NOT EXISTS (
4-
SELECT 1 FROM pg_indexes
5-
WHERE indexname = 'idx_address_utxo_tx_hash'
6-
AND tablename = 'address_utxo'
7-
AND schemaname = current_schema()
8-
) THEN
9-
CREATE INDEX idx_address_utxo_tx_hash ON address_utxo USING btree (tx_hash);
10-
END IF;
11-
END $$;
1+
CREATE INDEX idx_address_utxo_tx_hash ON address_utxo USING btree (tx_hash);

0 commit comments

Comments
 (0)