Re: Performance across multiple schemas

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: robins(at)pobox(dot)com
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Performance across multiple schemas
Date: 2007-08-28 13:49:26
Message-ID: 23414.1188308966@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Robins <tharakan(at)gmail(dot)com> writes:
> Could someone confirm as to whether a query across multiple schemas is known
> to have any kind of a degraded performance ?

Schemas are utterly, utterly irrelevant to performance.

I'm guessing you missed analyzing one of the tables, or forgot an index,
or something like that. Also, if you did anything "cute" like use the
same table name in more than one schema, you need to check the
possibility that some query is selecting the wrong one of the tables.

The explain output you showed is no help because the expense is
evidently down inside one of the functions in the SELECT output list.

One thing you should probably try before getting too frantic is
re-ANALYZEing all the tables and then starting a fresh session to
clear any cached plans inside the functions. If it's still slow
then it'd be worth digging deeper.

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Andrew Sullivan 2007-08-28 14:26:52 Re: server performance issues - suggestions for tuning
Previous Message Robins 2007-08-28 13:44:06 Re: Performance across multiple schemas