Re: Slow opening of Table -> Properties... -> Columns
От | Dave Page |
---|---|
Тема | Re: Slow opening of Table -> Properties... -> Columns |
Дата | |
Msg-id | 937d27e10905120102s41494c1aw49539180c16d669a@mail.gmail.com обсуждение исходный текст |
Ответ на | Slow opening of Table -> Properties... -> Columns (Kieran McCusker <kieran.mccusker@kwest.info>) |
Список | pgadmin-support |
Hi On Mon, May 11, 2009 at 8:40 AM, Kieran McCusker <kieran.mccusker@kwest.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
В списке pgadmin-support по дате отправления: