pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #16054: Slowest individual queries
3+ messages / 3 participants
[nested] [flat]

* BUG #16054: Slowest individual queries
@ 2019-10-14 02:24 PG Bug reporting form <noreply@postgresql.org>
  2019-10-14 11:24 ` Re: BUG #16054: Slowest individual queries Tomas Vondra <tomas.vondra@2ndquadrant.com>
  2019-10-15 00:35 ` Re: BUG #16054: Slowest individual queries Jeff Janes <jeff.janes@gmail.com>
  0 siblings, 2 replies; 3+ messages in thread

From: PG Bug reporting form @ 2019-10-14 02:24 UTC (permalink / raw)
  To: pgsql-bugs@lists.postgresql.org; +Cc: a.gowri82@gmail.com

The following bug has been logged on the website:

Bug reference:      16054
Logged by:          Gowri Sankar
Email address:      a.gowri82@gmail.com
PostgreSQL version: 10.9
Operating system:   Amazon Linux
Description:        

Hi 
We can see from below similar queries are frequently reported as Slowest
individual queries.  During the same time period high Read IOPS .Please let
me know what is the cause for this fetch statements. Let me know as well
regards this more information. 

FETCH 100 FROM c2;
FETCH 100 FROM c6;
FETCH 100 FROM c2;

Regards,
Gowri.
PostgreSQL DBA.



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

* Re: BUG #16054: Slowest individual queries
  2019-10-14 02:24 BUG #16054: Slowest individual queries PG Bug reporting form <noreply@postgresql.org>
@ 2019-10-14 11:24 ` Tomas Vondra <tomas.vondra@2ndquadrant.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Tomas Vondra @ 2019-10-14 11:24 UTC (permalink / raw)
  To: a.gowri82@gmail.com; pgsql-bugs@lists.postgresql.org

On Mon, Oct 14, 2019 at 02:24:10AM +0000, PG Bug reporting form wrote:
>The following bug has been logged on the website:
>
>Bug reference:      16054
>Logged by:          Gowri Sankar
>Email address:      a.gowri82@gmail.com
>PostgreSQL version: 10.9
>Operating system:   Amazon Linux
>Description:
>
>Hi
>We can see from below similar queries are frequently reported as Slowest
>individual queries.  During the same time period high Read IOPS .Please let
>me know what is the cause for this fetch statements. Let me know as well
>regards this more information.
>
>FETCH 100 FROM c2;
>FETCH 100 FROM c6;
>FETCH 100 FROM c2;
>

This is very clearly not a bug report, but a question about slow query.
And a woefully incomplete one, because we have no idea what the query
does, whether it's the cause or victim of high I/O usage, etc.

Please read https://wiki.postgresql.org/wiki/Slow_Query_Questions and
then post a question to either pgsql-general or pgsql-performance with
more detailed info.

regars

-- 
Tomas Vondra                  http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services





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

* Re: BUG #16054: Slowest individual queries
  2019-10-14 02:24 BUG #16054: Slowest individual queries PG Bug reporting form <noreply@postgresql.org>
@ 2019-10-15 00:35 ` Jeff Janes <jeff.janes@gmail.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Jeff Janes @ 2019-10-15 00:35 UTC (permalink / raw)
  To: PG Bug reporting form <noreply@postgresql.org>; +Cc: pgsql-bugs <pgsql-bugs@lists.postgresql.org>; a.gowri82@gmail.com

On Sun, Oct 13, 2019 at 10:28 PM PG Bug reporting form <
noreply@postgresql.org> wrote:

> The following bug has been logged on the website:
>
> Bug reference:      16054
> Logged by:          Gowri Sankar
> Email address:      a.gowri82@gmail.com
> PostgreSQL version: 10.9
> Operating system:   Amazon Linux
> Description:
>
> Hi
> We can see from below similar queries are frequently reported as Slowest
> individual queries.  During the same time period high Read IOPS .Please let
> me know what is the cause for this fetch statements. Let me know as well
> regards this more information.
>
> FETCH 100 FROM c2;
> FETCH 100 FROM c6;
> FETCH 100 FROM c2;
>

Someone has declared a cursor, and is fetching from it.  When I see these
types of queries, they are usually coming from postgres_fdw.

It is annoying that it shows you the FETCH statement itself, and not the
original statement.  If you can use auto_explain, which will show you the
original statement.

Cheers,

Jeff

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


end of thread, other threads:[~2019-10-15 00:35 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-10-14 02:24 BUG #16054: Slowest individual queries PG Bug reporting form <noreply@postgresql.org>
2019-10-14 11:24 ` Tomas Vondra <tomas.vondra@2ndquadrant.com>
2019-10-15 00:35 ` Jeff Janes <jeff.janes@gmail.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