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
I installed Powa (3.0.0) with Powa-web, but when I open Query detail page sometimes (but not always) the Index suggestion widget doesn't load properly and the "An error occured while loading this widget" text displayed instead. On the console the following Python error is shown:
It looks like you have some columns which don't have an n_distinct entry.
What does the following query returns on the related database ?
SELECTn.nspname,c.relname, a.attname, t.typname, s.*FROM pg_class c
JOIN pg_namespace n ONc.relnamespace=n.oidJOIN pg_attribute a ONa.attrelid=c.oidJOIN pg_type t ONa.atttypid=t.oidLEFT JOIN pg_statistic s ONs.starelid=c.oidANDs.staattnum=a.attnumWHEREs.stadistinct is NULLAND nspname NOT IN ('information_schema','pg_catalog','pg_toast') AND attnum >0;
As a quick workaround, an "ANALYZE tablename" for the tables involved in the index suggestion should resolve the issue, until we fix this case and release a new version of powa-web.
The given query returned a pretty long resultset (1020 entries). Using ANALYZE seems to solve the problem as after running it the error is gone (and the resultset of the query contains only 770 entries).
Thanks for your help!
The commit 11725f5 should solve this issue. I recommend you to wait a new release of powa-web, because there's currently a new feature (adding tabs on the query page) being implemented and it's not finished yet.
I installed Powa (3.0.0) with Powa-web, but when I open Query detail page sometimes (but not always) the Index suggestion widget doesn't load properly and the "An error occured while loading this widget" text displayed instead. On the console the following Python error is shown:
The text was updated successfully, but these errors were encountered: