Re: Parallel Scaling of a pgplsql problem - Mailing list pgsql-performance

From Venki Ramachandran
Subject Re: Parallel Scaling of a pgplsql problem
Date
Msg-id 1335408018.29771.YahooMailNeo@web184514.mail.ne1.yahoo.com
Whole thread Raw
In response to Re: Parallel Scaling of a pgplsql problem  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Parallel Scaling of a pgplsql problem
List pgsql-performance
Thanks Tom, clock_timestamp() worked. Appreciate it!!! and Sorry was hurrying to get this done at work and hence did not read through.

Can you comment on how you would solve the original problem? Even if I can get  the 11 seconds down to 500 ms for one pair, running it for 300k pairs will take multiple hours. How can one write a combination of a bash script/pgplsql code so as to use all 8 cores of a server. I am seeing that this is just executing in one session/process.

thanks and regards, Venki


From: Tom Lane <tgl@sss.pgh.pa.us>
To: Venki Ramachandran <venki_ramachandran@yahoo.com>
Cc: Pavel Stehule <pavel.stehule@gmail.com>; Samuel Gendler <sgendler@ideasculptor.com>; "pgsql-performance@postgresql.org" <pgsql-performance@postgresql.org>
Sent: Wednesday, April 25, 2012 2:52 PM
Subject: Re: [PERFORM] Parallel Scaling of a pgplsql problem

Venki Ramachandran <venki_ramachandran@yahoo.com> writes:
> Replacing current_timestamp() with transaction_timestamp() and statement_timestamp() did not help!!!. 

You did not read the documentation you were pointed to.  Use
clock_timestamp().

            regards, tom lane


pgsql-performance by date:

Previous
From: Greg Smith
Date:
Subject: Re: Configuration Recommendations
Next
From: Jan Nielsen
Date:
Subject: Re: Parallel Scaling of a pgplsql problem