pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
AW: tools like innotop for PostgreSQL?
3+ messages / 2 participants
[nested] [flat]

* AW: tools like innotop for PostgreSQL?
@ 2020-12-14 09:40  Dischner, Anton <Anton.Dischner@med.uni-muenchen.de>
  1 sibling, 0 replies; 3+ messages in thread

From: Dischner, Anton @ 2020-12-14 09:40 UTC (permalink / raw)
  To: Holger Jakobs <holger@jakobs.com>; pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>

Hi all,

we tested pg_top but missed:

Planner Information
E - Execution Plan
Entering E will provide a prompt for a process ID for which to show an explain plan. This is equivalent to running “EXPLAIN <QUERY>;” in the database manually.
A - EXPLAIN ANALYZE (UPDATE/DELETE safe)
Entering A will provide a prompt for a process ID for which to show an EXPLAIN ANALYZE plan. This is equivalent to running “EXPLAIN ANALYZE <QUERY>;” in the database manually.
Process Information
Q - Show current query of a process
Entering Q will provide a prompt for a process ID for which to show the full query.
I - Shows I/O statistics per process (Linux only)
Entering I switches the process list to an I/O display, showing each process reads, writes, etc to disk.
we will take a closer look into it,

thanks a lot for the link,

best,

Anton

Von: Holger Jakobs <holger@jakobs.com>
Gesendet: Montag, 14. Dezember 2020 10:15
An: pgsql-admin@lists.postgresql.org
Betreff: Re: tools like innotop for PostgreSQL?


Hi Anton,

try
https://severalnines.com/database-blog/dynamic-monitoring-postgresql-instances-using-pgtop

Regards,

Holger

Am 14.12.20 um 10:14 schrieb Dischner, Anton:
> Hi all,
>
> we are using PostgreSQL in a docker container for a fhir server.
>
> Performance is not as desired/ as fast as other fhir servers currently in testing.
>
> For MySQL there are monitoring tools like mytop, innotop which show running SQL commands.
>
> Are there any equivalent tools for PostgreSQL to find SQL commands which deserve tuning?
>
> Tried so far:
>
> pg_top only shows system processes.
>
> pgstats is to much vmstat-like
>
> dbeaver does not show running sql-commands to my knowledge
>
> select * from pg_stat_activity;
>
> kind regards,
>
> Anton
>
>
>
>
--
Holger Jakobs, Bergisch Gladbach, Tel. +49-178-9759012




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* AW: tools like innotop for PostgreSQL?
@ 2020-12-14 10:43  Dischner, Anton <Anton.Dischner@med.uni-muenchen.de>
  1 sibling, 1 reply; 3+ messages in thread

From: Dischner, Anton @ 2020-12-14 10:43 UTC (permalink / raw)
  To: Holger Jakobs <holger@jakobs.com>; pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>

Hi again,

pgtop connected to a container does not show any postgres processes.

The example uses -r parameter.


Using this parameter leads to error: Stored function 'pg_cputime' is missing.

To resolve this we should add:

The pg_proctab<https://pg_proctab.gitlab.io/; extension needs to be loaded into the database you are connecting too. That can be installed from pgxn<https://pgxn.org/dist/pg_proctab/; or source<https://gitlab.com/pg_proctab/pg_proctab;.

Source: https://github.com/markwkm/pg_top/issues/11

Question: Anybody did loading extensions to postgresql especially in a container, any hints?

best,

Anton

Von: Holger Jakobs <holger@jakobs.com>
Gesendet: Montag, 14. Dezember 2020 10:15
An: pgsql-admin@lists.postgresql.org
Betreff: Re: tools like innotop for PostgreSQL?


Hi Anton,

try
https://severalnines.com/database-blog/dynamic-monitoring-postgresql-instances-using-pgtop

Regards,

Holger

Am 14.12.20 um 10:14 schrieb Dischner, Anton:
> Hi all,
>
> we are using PostgreSQL in a docker container for a fhir server.
>
> Performance is not as desired/ as fast as other fhir servers currently in testing.
>
> For MySQL there are monitoring tools like mytop, innotop which show running SQL commands.
>
> Are there any equivalent tools for PostgreSQL to find SQL commands which deserve tuning?
>
> Tried so far:
>
> pg_top only shows system processes.
>
> pgstats is to much vmstat-like
>
> dbeaver does not show running sql-commands to my knowledge
>
> select * from pg_stat_activity;
>
> kind regards,
>
> Anton
>
>
>
>
--
Holger Jakobs, Bergisch Gladbach, Tel. +49-178-9759012




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: AW: tools like innotop for PostgreSQL?
@ 2020-12-14 12:25  Michaeldba@sqlexec.com <Michaeldba@sqlexec.com>
  parent: Dischner, Anton <Anton.Dischner@med.uni-muenchen.de>
  0 siblings, 0 replies; 3+ messages in thread

From: Michaeldba@sqlexec.com @ 2020-12-14 12:25 UTC (permalink / raw)
  To: Dischner, Anton <Anton.Dischner@med.uni-muenchen.de>; +Cc: Holger Jakobs <holger@jakobs.com>; pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>

Did u try htop?

Sent from my iPad

> On Dec 14, 2020, at 5:43 AM, Dischner, Anton <Anton.Dischner@med.uni-muenchen.de> wrote:
> 
> Hi again,
>  
> pgtop connected to a container does not show any postgres processes.
>  
> The example uses -r parameter.
>  
> Using this parameter leads to error: Stored function 'pg_cputime' is missing.
>  
> To resolve this we should add:
>  
> The pg_proctab extension needs to be loaded into the database you are connecting too. That can be installed from pgxn or source.
>  
> Source: https://github.com/markwkm/pg_top/issues/11
>  
> Question: Anybody did loading extensions to postgresql especially in a container, any hints?
>  
> best,
>  
> Anton
>  
> Von: Holger Jakobs <holger@jakobs.com> 
> Gesendet: Montag, 14. Dezember 2020 10:15
> An: pgsql-admin@lists.postgresql.org
> Betreff: Re: tools like innotop for PostgreSQL?
>  
> Hi Anton,
> 
> try 
> https://severalnines.com/database-blog/dynamic-monitoring-postgresql-instances-using-pgtop
> 
> Regards,
> 
> Holger
> 
> Am 14.12.20 um 10:14 schrieb Dischner, Anton: 
> > Hi all, 
> > 
> > we are using PostgreSQL in a docker container for a fhir server. 
> > 
> > Performance is not as desired/ as fast as other fhir servers currently in testing. 
> > 
> > For MySQL there are monitoring tools like mytop, innotop which show running SQL commands. 
> > 
> > Are there any equivalent tools for PostgreSQL to find SQL commands which deserve tuning? 
> > 
> > Tried so far: 
> > 
> > pg_top only shows system processes. 
> > 
> > pgstats is to much vmstat-like 
> > 
> > dbeaver does not show running sql-commands to my knowledge 
> > 
> > select * from pg_stat_activity; 
> > 
> > kind regards, 
> > 
> > Anton 
> > 
> > 
> > 
> > 
> -- 
> Holger Jakobs, Bergisch Gladbach, Tel. +49-178-9759012
> 
> 
> 

^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2020-12-14 12:25 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-12-14 09:40 ` Dischner, Anton <Anton.Dischner@med.uni-muenchen.de>
2020-12-14 10:43 ` Dischner, Anton <Anton.Dischner@med.uni-muenchen.de>
2020-12-14 12:25   ` Michaeldba@sqlexec.com <Michaeldba@sqlexec.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox