Project

General

Profile

Actions

Bug #30461

closed

Upgraded Satellite has duplicated katello_pools indexes

Added by Jonathon Turel over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Low
Category:
Subscriptions
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1858237

Description of problem:
I upgraded a Satellite from 6.7.2 to 6.8 snap 9.0 and it has duplicate indexes on katello_pools:

  1. su - postgres c "psql -d foreman -c 'SELECT indrelid::regclass AS TableName,array_agg(indexrelid::regclass) AS Indexes FROM pg_index GROUP BY indrelid,indkey HAVING COUNT > 1;;'"
    tablename | indexes
    --------------
    +-----------------------------------------------------
    katello_pools | {index_katello_pools_on_cp_id,index_pools_on_cp_id}
    (1 row)

How reproducible:
Deterministic

Steps to Reproduce:
1. Upgrade Satellite
2. # su - postgres -c "psql -d foreman -c 'SELECT indrelid::regclass AS TableName,array_agg(indexrelid::regclass) AS Indexes FROM pg_index GROUP BY indrelid,indkey HAVING COUNT > 1;;'"

Actual results:
Duplicate indexes on katello_pools

Expected results:
No duplicate indexes (empty output)

Actions

Also available in: Atom PDF