You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we were to filter just on the actual name we would find the index:
pry> Scenic::Adapters::Postgres::Indexes.new(connection: ActiveRecord::Base.connection).on('products')(5.8ms)SELECTt.relnameasobject_name,i.relnameasindex_name,pg_get_indexdef(d.indexrelid)ASdefinitionFROMpg_classtINNERJOINpg_indexdONt.oid=d.indrelidINNERJOINpg_classiONd.indexrelid=i.oidLEFTJOINpg_namespacenONn.oid=i.relnamespaceWHEREi.relkind='i'ANDd.indisprimary='f'ANDt.relname='products'ANDn.nspname=ANY(current_schemas(false))ORDERBYi.relname=>[#<Scenic::Index:0x0000557cea1d5418@definition="CREATE UNIQUE INDEX products_unique_sku_dates ON shop.products USING btree (\"Day\", \"Component\", \"SKU\")",@index_name="products_unique_sku_dates",@object_name="products">]
Should this query be updated split "shop.products", filter on t.relname = 'products' and to also filter on relnamespace?
Two quirks of our setup might explain this
public
Not had time to find out which yet.
The text was updated successfully, but these errors were encountered: