Re: [PERFORM] tsvector_update_trigger performance?

2009-06-25 Thread Dimitri Fontaine
Also consider on update triggers that you could want to run anyway -- dim Le 25 juin 2009 à 07:45, Craig Ringer cr...@postnewspapers.com.au a écrit : On Wed, 2009-06-24 at 21:03 -0700, Chris St Denis wrote: This sounds like something that should just be on by default, not a trigger. Is

Re: [PERFORM] Implications of having large number of users

2009-06-25 Thread Mike Ivanov
I'd be glad to hear any opinions/suggestions. Many thanks to everyone who responded! Mike -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance

Re: [PERFORM] Nested Loop Killer on 8.1

2009-06-25 Thread Josh Berkus
Dave, Is there further optimizations we can do to change the plan? Is this perhaps addressed in a later release? Given the left joins, a later release might help; I know we did a lot to improve left join plans in 8.3. It would be worth testing if you can test an upgrade easily. -- Josh

Re: [PERFORM] Nested Loop Killer on 8.1

2009-06-25 Thread Greg Stark
On Wed, Jun 24, 2009 at 1:43 PM, Dave Northdno...@signiant.com wrote: Essentially, we're seeing a query plan that is taking 95 secs with a nested loop execution plan and 1 sec with a merge join plan.  We've tried increasing the default_statistics_target to 1000 and re-analyzed but the same

Re: [PERFORM] Nested Loop Killer on 8.1

2009-06-25 Thread Mark Mielke
On 06/25/2009 04:36 PM, Greg Stark wrote: AND web_user_property_directory_outbox.prop_key like 'location_node_directory_outbox' Why use like for a constant string with no % or _ characters? If you used = the planner might be able to come up with a better estimate Any reason why

Re: [PERFORM] Nested Loop Killer on 8.1

2009-06-25 Thread Tom Lane
Greg Stark gsst...@mit.edu writes: On Wed, Jun 24, 2009 at 1:43 PM, Dave Northdno...@signiant.com wrote: Why use like for a constant string with no % or _ characters? If you used = the planner might be able to come up with a better estimate. Uh, it appears to me the string *does* contain _

Re: [PERFORM] Nested Loop Killer on 8.1

2009-06-25 Thread Greg Stark
On Thu, Jun 25, 2009 at 10:05 PM, Tom Lanet...@sss.pgh.pa.us wrote: Uh, it appears to me the string *does* contain _ characters; perhaps the OP has neglected to escape those? Sigh. Indeed. -- greg http://mit.edu/~gsstark/resume.pdf -- Sent via pgsql-performance mailing list

[PERFORM] slow DELETE on 12 M row table

2009-06-25 Thread Janet Jacobsen
Hi. We are running Postgres 8.3.7 on an eight-processor Linux system. Because the machine has very little local disk, the database files are on a file system running GPFS. The machine is mostly dedicated to processing images. After the images are processed, the image attributes and processing

Re: [PERFORM] slow DELETE on 12 M row table

2009-06-25 Thread Greg Stark
On Fri, Jun 26, 2009 at 3:33 AM, Janet Jacobsenjsjacob...@lbl.gov wrote: (1) is my interpretation of the posts correct, i.e., if I am deleting rows from table1, where the pkey of table 1 is a fkey in table 2, then do I need to create an index on the fkey field in table 2? Exactly right. The

Re: [PERFORM] slow DELETE on 12 M row table

2009-06-25 Thread Richard Huxton
Greg Stark wrote: waiting means it's blocked trying to acquire a lock. Some open transaction has the table you're trying to index locked. Look in pg_locks and pg_stat_activity to find out who. Or you might find CREATE INDEX CONCURRENTLY fits your situation.