From: | Sergey Konoplev <gray(dot)ru(at)gmail(dot)com> |
---|---|
To: | Gary Fu <gfu(at)sigmaspace(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: select sql slow inside function |
Date: | 2010-09-15 06:28:31 |
Message-ID: | AANLkTim=TiouRn6nURcMA0Jx0RDU5mwW8k5_nbuz6sqn@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi,
On 15 September 2010 01:56, Gary Fu <gfu(at)sigmaspace(dot)com> wrote:
> I have a function proc_TaskComplete that inserts a record to table
> TaskHistory and then calls another function proc_ExportTaskComplete, that
> will retrieve (select) the record just inserted based on an index column
> (TaskId) in that table TaskHistory. I noticed that the select sql (inside
> proc_ExportTaskComplete) will take 3 seconds. Under normal condition (psql)
> the select sql is fast enough with the index. Can anyone explain why and how
> to fix the problem ?
> My postgresql version is 8.4.4
Could you please provide a use-case?
>
> Thanks,
> Gary
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>
--
Sergey Konoplev
Blog: http://gray-hemp.blogspot.com /
Linkedin: http://ru.linkedin.com/in/grayhemp /
JID/GTalk: gray(dot)ru(at)gmail(dot)com / Skype: gray-hemp / ICQ: 29353802
From | Date | Subject | |
---|---|---|---|
Next Message | Johannes Öberg | 2010-09-15 09:20:14 | Force ARE in regexp string |
Previous Message | Dann Corbit | 2010-09-15 04:15:16 | Re: Search then Delete Performance |