From: | Віталій Тимчишин <tivv00(at)gmail(dot)com> |
---|---|
To: | Mridula Mahadevan <mmahadevan(at)stratify(dot)com> |
Cc: | "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org> |
Subject: | Re: Queries within a function |
Date: | 2010-02-03 16:10:46 |
Message-ID: | 331e40661002030810p445dd862i3eb9f3c025943d1d@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
2010/2/2 Mridula Mahadevan <mmahadevan(at)stratify(dot)com>
> Hi,
>
> I am running a bunch of queries within a function, creating some temp
> tables and populating them. When the data exceeds say, 100k the queries
> start getting really slow and timeout (30 min). when these are run outside
> of a transaction(in auto commit mode), they run in a few seconds. Any ideas
> on what may be going on and any postgresql.conf parameters etc that might
> help?
>
> Thanks
>
Have you tried to analyze temp tables after you've populated them? Because
AFAIK it won't do it automatically for tables created, filled and then used
in same transaction.
From | Date | Subject | |
---|---|---|---|
Next Message | Reid Thompson | 2010-02-03 16:19:32 | Re: Re: Optimizing Postgresql server and FreeBSD for heavy read and writes |
Previous Message | Nikolas Everett | 2010-02-03 15:54:13 | Re: queries with subquery constraints on partitioned tables not optimized? |