Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No applicative objects/queries shown #231

Open
ptikf opened this issue Nov 18, 2024 · 8 comments
Open

No applicative objects/queries shown #231

ptikf opened this issue Nov 18, 2024 · 8 comments
Assignees
Labels

Comments

@ptikf
Copy link

ptikf commented Nov 18, 2024

In my current configuration (remote server, postgresql 16),

  • powa web ok, display all system statistics on distant databases,
  • system queries on powa database displayes
  • historical search works well

but:
no applicative object displayed (messages: "no data found" on web)
no query on applicative object displayed (and no plans of course)
In query using system view, all paramaters replaced by bind variables ( $1, $2 and so).

Where can I ibegin nvestigations ?

@rjuju rjuju self-assigned this Nov 19, 2024
@rjuju rjuju added the question label Nov 19, 2024
@rjuju
Copy link
Member

rjuju commented Nov 19, 2024

Hi,

I'm sorry I don't really understand what your problems are. Could you send a screenshot with the problematic behavior, or the relevant part of the powa-web url (like /server/x/overview on the tab XXX)?

@ptikf
Copy link
Author

ptikf commented Nov 19, 2024

Hello, this is a screenshot of my question :

  • no data for database objects
  • only "technical" queries are shown

powa_q1

@rjuju
Copy link
Member

rjuju commented Nov 19, 2024

Thanks, I understand now!

no applicative object displayed (messages: "no data found" on web)

The support for the "Database objects" datasource is not available for postgres 16 and above in powa 4.x. It has been rewritten using a different approach and works with all versions with powa 5.0. The other tabs should work though.

no query on applicative object displayed (and no plans of course)

was there any activity on the chosen database for that remove server in the given interval? I do see some user tables (timescaledb_information.hypertables", and there seems to be queries done by pgadmin4 (the pga4dash query at least), so there is definitely activity going on on that database.

In query using system view, all paramaters replaced by bind variables ( $1, $2 and so).

That's pg_stat_statements behavior, which is the source of information for query activity in powa. It normalises all the queries so that the query text doesn't have any actual parameter, and all statistics are aggregated on that normalized query. You can refer to https://www.postgresql.org/docs/15/pgstatstatements.html for more details about it.

@ptikf
Copy link
Author

ptikf commented Nov 19, 2024

Hello, screen capture for queries:
(db under test, some queries run, one table 4 billion rows):
powa_q2

  • ok for new powa version
  • ok for pg_stat_statements
  • but pg_qualstats should do the job ?

@rjuju
Copy link
Member

rjuju commented Nov 19, 2024

pg_qualstats could be used to put some values on the parameters in the join and where clauses (but not in the select part of the statement), but it doesn't mean that we could associate specific metrics to those values. pg_stat_statements accumulates planning time, execution time and the rest of the counters to a single normalised entry, so the detail per specific parameter is never stored anywhere.

do you have a specific performance problem you're trying to solve?

@ptikf
Copy link
Author

ptikf commented Nov 19, 2024

Yes
during that period, I ran a query (select count(*) from 4 billion rows table)
The peak appears on the screen capture above (io read peak), but nt the query itself.
It ran for 2m30s but doesnt appears in the list of queries ?
why ?

@pgiraud
Copy link
Member

pgiraud commented Nov 19, 2024

If I'm not wrong, a query will not show in the table if it ran only once. Queries must have happened at least twice (and in different powa snapshot) to be taken into account.

@rjuju
Copy link
Member

rjuju commented Nov 19, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants