pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Douglas J Hunley <doug@hunley.homeip.net>
To: pgsql-performance@postgresql.org
Cc: Gregory Stark <stark@enterprisedb.com>
Subject: Re: upgraded to pgsql 8.2.4, getting worse performance then 7.4.x
Date: Wed, 6 Jun 2007 10:35:19 -0400
Message-ID: <200706061035.19976.doug@hunley.homeip.net> (raw)
In-Reply-To: <200706051034.04087.doug@hunley.homeip.net>
References: <200706020913.32241.doug@hunley.homeip.net>
	<87ps4bl91g.fsf@oxford.xeocode.com>
	<200706051034.04087.doug@hunley.homeip.net>

On Tuesday 05 June 2007 10:34:04 Douglas J Hunley wrote:
> On Monday 04 June 2007 17:11:23 Gregory Stark wrote:
> > Those plans look like they have a lot of casts to text in them. How have
> > you defined your indexes? Are your id columns really text?
>
> project table:
> Indexes:
>     "project_pk" PRIMARY KEY, btree (id)
>     "project_path" UNIQUE, btree (path)
>
> role table:
> Indexes:
>     "role_pk" PRIMARY KEY, btree (id)
>
> role_default_user table:
> Indexes:
>     "role_def_user_pk" PRIMARY KEY, btree (id)
>     "role_def_u_prj_idx" UNIQUE, btree (role_id, default_user_class_id,
> project_id)
>
> role_operation table:
> Indexes:
>     "role_operation_pk" PRIMARY KEY, btree (id)
>     "role_oper_obj_oper" btree (object_type_id, operation_category,
> operation_name)
>     "role_oper_role_id" btree (role_id)
>
> sfuser table:
> Indexes:
>     "sfuser_pk" PRIMARY KEY, btree (id)
>     "sfuser_username" UNIQUE, btree (username)
>
> projectmembership table:
> Indexes:
>     "pjmb_pk" PRIMARY KEY, btree (id)
>     "pjmb_projmember" UNIQUE, btree (project_id, member_id)
>     "pjmb_member" btree (member_id)
>
> relationship table:
> Indexes:
>     "relationship_pk" PRIMARY KEY, btree (id)
>     "relation_origin" btree (origin_id)
>     "relation_target" btree (target_id)
>     "relation_type" btree (relationship_type_name)
>
> field_value table:
> Indexes:
>     "field_value_pk" PRIMARY KEY, btree (id)
>     "f_val_fid_val_idx" UNIQUE, btree (field_id, value)
>     "field_class_idx" btree (value_class)
>     "field_value_idx" btree (value)
>
> item table:
> Indexes:
>     "item_pk" PRIMARY KEY, btree (id)
>     "item_created_by_id" btree (created_by_id)
>     "item_folder" btree (folder_id)
>     "item_name" btree (name)
>
> and yes, the 'id' column is always: character varying type
>
> > And you don't have a 7.4 install around to compare the plans do you?
>
> I have a 7.3.19 db, if that would be useful

Any insight given the above?

-- 
Douglas J Hunley (doug at hunley.homeip.net) - Linux User #174778
http://doug.hunley.homeip.net

"It is our moral duty to corrupt the young"



view thread (24+ messages)

Message-ID: <200706061035.19976.doug@hunley.homeip.net>
Permalink:  ../200706061035.19976.doug@hunley.homeip.net/
Also on:    postgresql.org/message-id/200706061035.19976.doug@hunley.homeip.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: doug@hunley.homeip.net, stark@enterprisedb.com
  Subject: Re: upgraded to pgsql 8.2.4, getting worse performance then 7.4.x
  In-Reply-To: <200706061035.19976.doug@hunley.homeip.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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