Re: [GENERAL] how to find which tables required indexes in postgresql

2013-04-10 Thread Shaun Thomas
On 04/10/2013 06:31 AM, Zahid Quadri wrote: please suggest if there is any way which i can find which tables need indexes in postgresql. If you have 8.4 or newer, you can look in pg_stat_statements for queries that use a lot of time. Check the where clauses for columns or transforms that can

Re: [GENERAL] how to find which tables required indexes in postgresql

2013-04-10 Thread Michael Paquier
On Wed, Apr 10, 2013 at 10:19 PM, JotaComm wrote: > Hello, > > > 2013/4/10 Thomas Kellerer > >> Zahid Quadri, 10.04.2013 13:31: >> >> hi,, >>> >>> please suggest if there is any way which i can find which tables need >>> indexes in postgresql. >>> >> > You have some possibilities: > > - the log

Re: [GENERAL] how to find which tables required indexes in postgresql

2013-04-10 Thread Chris Curvey
On Wed, Apr 10, 2013 at 9:19 AM, JotaComm wrote: > Hello, > > > 2013/4/10 Thomas Kellerer > >> Zahid Quadri, 10.04.2013 13:31: >> >> hi,, >>> >>> please suggest if there is any way which i can find which tables need >>> indexes in postgresql. >>> >> > You have some possibilities: > > - the log

Re: [GENERAL] how to find which tables required indexes in postgresql

2013-04-10 Thread JotaComm
Hello, 2013/4/10 Thomas Kellerer > Zahid Quadri, 10.04.2013 13:31: > > hi,, >> >> please suggest if there is any way which i can find which tables need >> indexes in postgresql. >> > You have some possibilities: - the log file (slow queries) - statistics with old information (see the ANALYZE

Re: [GENERAL] how to find which tables required indexes in postgresql

2013-04-10 Thread Thomas Kellerer
Zahid Quadri, 10.04.2013 13:31: hi,, please suggest if there is any way which i can find which tables need indexes in postgresql. Tables don't need indexes. Queries do. You will need to show us the queries in question (e.g. those that are slow) in order to decide which index is helpful. Th

Re: [GENERAL] how to find which tables required indexes in postgresql

2013-04-10 Thread Atri Sharma
Sent from my iPad On 10-Apr-2013, at 17:01, Zahid Quadri wrote: > hi,, > > please suggest if there is any way which i can find which tables need indexes > in postgresql. > > > > If the table under consideration has lots of data,and queries on it are very slow,you could consider addin

[GENERAL] how to find which tables required indexes in postgresql

2013-04-10 Thread Zahid Quadri
hi,, please suggest if there is any way which i can find which tables need indexes in postgresql.