pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Memory consumption of a sql.
3+ messages / 3 participants
[nested] [flat]

* Memory consumption of a sql.
@ 2017-04-28 06:46 Shrinivas Devarkonda <shrinivasdevarkonda@gmail.com>
  2017-04-28 07:03 ` Re: Memory consumption of a sql. Stéphane KANSCHINE <stephane@hexack.fr>
  2017-04-28 07:15 ` Re: Memory consumption of a sql. Steven Chang <stevenchang1213@gmail.com>
  0 siblings, 2 replies; 3+ messages in thread

From: Shrinivas Devarkonda @ 2017-04-28 06:46 UTC (permalink / raw)
  To: pgsql-admin

Hi All,

Is there any way to print / get the memory consumption taken by sql in
postgresql 9.x ?  Can we also get/print the data size returned by Sql ?

There is no parameters in log_line_prefix in postgresql.conf

Please guide.


-- 
Regards,
Shrinivas Devarkonda.

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

* Re: Memory consumption of a sql.
  2017-04-28 06:46 Memory consumption of a sql. Shrinivas Devarkonda <shrinivasdevarkonda@gmail.com>
@ 2017-04-28 07:03 ` Stéphane KANSCHINE <stephane@hexack.fr>
  1 sibling, 0 replies; 3+ messages in thread

From: Stéphane KANSCHINE @ 2017-04-28 07:03 UTC (permalink / raw)
  To: Shrinivas Devarkonda <shrinivasdevarkonda@gmail.com>; pgsql-admin

Le ven. 28 avril, vers 12:16, Shrinivas Devarkonda exprimait :

> Hi All,

Hey !

> Is there any way to print / get the memory consumption taken by sql in
> postgresql 9.x ?  Can we also get/print the data size returned by Sql ?
> 
> There is no parameters in log_line_prefix in postgresql.conf

Did you already have a look et pg_stat_statements ?

https://www.postgresql.org/docs/9.6/static/pgstatstatements.html

Regards,
-- 
Stéphane KANSCHINE - http://www.hexack.fr./ - http://www.nuajik.com./
@ stephane@hexack.fr
  +33 6 64 31 72 52


-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



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

* Re: Memory consumption of a sql.
  2017-04-28 06:46 Memory consumption of a sql. Shrinivas Devarkonda <shrinivasdevarkonda@gmail.com>
@ 2017-04-28 07:15 ` Steven Chang <stevenchang1213@gmail.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Steven Chang @ 2017-04-28 07:15 UTC (permalink / raw)
  To: Shrinivas Devarkonda <shrinivasdevarkonda@gmail.com>; +Cc: pgsql-admin

Hello,

     explain (buffers, analyze)  your sql statements .......
     data size ???
     You can put your data in a table, and check its size.
     I don't what you want to check ??
     buffer usages, intermediate temp object size or sorting size or some
other thing ??
     You can also try pg_stat_statements contrib module for your intending
analysis.

BR ,
Steven

2017-04-28 14:46 GMT+08:00 Shrinivas Devarkonda <
shrinivasdevarkonda@gmail.com>:

> Hi All,
>
> Is there any way to print / get the memory consumption taken by sql in
> postgresql 9.x ?  Can we also get/print the data size returned by Sql ?
>
> There is no parameters in log_line_prefix in postgresql.conf
>
> Please guide.
>
>
> --
> Regards,
> Shrinivas Devarkonda.
>
>

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


end of thread, other threads:[~2017-04-28 07:15 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-04-28 06:46 Memory consumption of a sql. Shrinivas Devarkonda <shrinivasdevarkonda@gmail.com>
2017-04-28 07:03 ` Stéphane KANSCHINE <stephane@hexack.fr>
2017-04-28 07:15 ` Steven Chang <stevenchang1213@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