Queries within a function - Mailing list pgsql-performance

From Mridula Mahadevan
Subject Queries within a function
Date
Msg-id 0A59BA5B590B7E4A8D441196A9F17E904C68825D26@corpmail11.calpurnia.com
Whole thread Raw
Responses Re: Queries within a function  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: Queries within a function  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Queries within a function  ("Ing. Marcos Orti­z Valmaseda" <mlortiz@uci.cu>)
Re: Queries within a function  (Віталій Тимчишин <tivv00@gmail.com>)
List pgsql-performance

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

pgsql-performance by date:

Previous
From: Robert Haas
Date:
Subject: Re: [HACKERS] Re: Faster CREATE DATABASE by delaying fsync (was 8.4.1 ubuntu karmic slow createdb)
Next
From: Andres Freund
Date:
Subject: Re: [HACKERS] Re: Faster CREATE DATABASE by delaying fsync (was 8.4.1 ubuntu karmic slow createdb)