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 don't know in which widget you get this error, I'm assuming for the index suggestion, but it's likely that we won't be able to do anything. pg_stat_statements doesn't store the search_path associated with the query when the query string is recorded, so for an external consumer like powa all you get is the query string. We try to provide as much insight as possible but in that case the schema information is just not available anywhere.
The problem is actually way more complex that just storing one oid. Your query could be referencing multiple relation in multiple schema, but each functions and operators could also be in multiple schema. So the only real solution would be for pg_stat_statements to store a query where each object has been fully qualified to avoid such problem, This has been discussed upstream some time ago, and rejected IIRC because it would be very expensive, hard to maintain and the stored query would not look like the query the user issued in the first place. You're of course free to start the discussion again with your own experience and problem reports, maybe the outcome would be different (although I wouldn't have much hopes).
On the powa side the only thing we could do is to have a way for you to specify a search_path on the page where this problem happens.
With a POWA 5, I'm getting an error
The relation surely exists, it's just not in public schema.
Adding schemas to search_path for powa wouldn't work, for we have tables with same name in different schemas. No, refactoring is not an option.
The text was updated successfully, but these errors were encountered: