From: | Dave Page <dpage(at)pgadmin(dot)org> |
---|---|
To: | Kieran McCusker <kieran(dot)mccusker(at)kwest(dot)info> |
Cc: | pgadmin-support(at)postgresql(dot)org |
Subject: | Re: Slow opening of Table -> Properties... -> Columns |
Date: | 2009-05-12 08:02:27 |
Message-ID: | 937d27e10905120102s41494c1aw49539180c16d669a@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-support |
Hi
On Mon, May 11, 2009 at 8:40 AM, Kieran McCusker
<kieran(dot)mccusker(at)kwest(dot)info> wrote:
> Hi
>
> 2009-05-11 08:10:17 QUERY : Set query (kwest:5432): SELECT
> format_type(t.oid,NULL) AS typname, CASE WHEN typelem > 0 THEN typelem ELSE
> t.oid END as elemoid, typlen, typtype, t.oid, nspname,
> (SELECT COUNT(1) FROM pg_type t2 WHERE t2.typname = t.typname) > 1 AS
> isdup
> FROM pg_type t
> JOIN pg_namespace nsp ON typnamespace=nsp.oid
> WHERE (NOT (typname = 'unknown' AND nspname = 'pg_catalog')) AND
> typisdefined AND typtype IN ('b', 'c', 'd', 'e')AND typname NOT IN (SELECT
> relname FROM pg_class WHERE relnamespace = typnamespace AND relkind != 'c'
> UNION SELECT '_' || relname FROM pg_class WHERE relnamespace = typnamespace
> AND relkind != 'c') AND nsp.nspname NOT LIKE 'information_schema'
> ORDER BY CASE WHEN typtype='d' THEN 0 ELSE 1 END, (t.typelem>0)::bool, 1
>
> The last query is where the time went - Running it in a query window it took
> 235 seconds.
>
> Let me know if I can provide anything else
EXPLAIN ANALYZE output for the query would be most helpful.
Thanks.
--
Dave Page
EnterpriseDB UK: http://www.enterprisedb.com
From | Date | Subject | |
---|---|---|---|
Next Message | Kevin Field | 2009-05-12 13:33:51 | pgAdmin3 1.10 beta3 on win32 clipboard bug |
Previous Message | andrey_sobol | 2009-05-12 06:12:02 | Missing russian symbols in LogFile console for win1251 |