PostgreSQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsDatabasesPostgreSQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 16th, 2012, 06:33 PM
mestre_leo mestre_leo is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Posts: 2 mestre_leo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 m 55 sec
Reputation Power: 0
Tuning SQL

Hey guys,

I'm doing a final paper of college and this is about tuning of sql.
I'm using the package DBMS_SQLTUNE of Oracle Database to take some recommendations of a particular sql statement. And i want to know if somebody knows some command in PostgreSQL that do something like that..

And also i'm accessing this table 'V$SQLAREA' of Oracle Database to take some informations about every sql that is runing on database.. And i want to know the same thing.. if exist some command in PostgreSQL that do something like that..

Thanks a lot for your help..
Att.

Reply With Quote
  #2  
Old April 17th, 2012, 01:58 AM
shammat shammat is offline
Contributing User
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Oct 2003
Location: Germany
Posts: 2,685 shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 1 Month 3 Weeks 3 Days 19 h 53 m 13 sec
Reputation Power: 284
Quote:
Originally Posted by mestre_leo
And i want to know if somebody knows some command in Mysql that do something like that..
So why are you asking in the PostgreSQL forum?

But no, neither MySQL nor PostgreSQL have someting similar to DBMS_SQLTUNE.

The closest thing to V$SQLAREA in PostgreSQL is probably pg_stat_activity, but that's more like V$SESSION as it only shows the current statements, not the parsed ones.

I have no idea about MySQL as I don't use it.

Reply With Quote
  #3  
Old April 19th, 2012, 08:10 PM
mestre_leo mestre_leo is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Posts: 2 mestre_leo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 m 55 sec
Reputation Power: 0
Sorry my mistake,
i was asking about PostgreSQL..

I read about pg_stat_activity and i ended finding the pg_stat_statements, that is what i really need.. I will try to use here!
Are you sure that doens't exist anything that can return recommendations about the SQL statement, like what we need to do reduce the execution time of the SQL.
For example, create a index in some column, etc..

thanks for
your help

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesPostgreSQL Help > Tuning SQL

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap