Re: select sql slow inside function

Поиск
Список
Период
Сортировка
От Sergey Konoplev
Тема Re: select sql slow inside function
Дата
Msg-id AANLkTim=TiouRn6nURcMA0Jx0RDU5mwW8k5_nbuz6sqn@mail.gmail.com
обсуждение исходный текст
Ответ на select sql slow inside function  (Gary Fu <gfu@sigmaspace.com>)
Ответы Re: select sql slow inside function  (Gary Fu <gfu@sigmaspace.com>)
Список pgsql-general
Hi,

On 15 September 2010 01:56, Gary Fu <gfu@sigmaspace.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@postgresql.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.ru@gmail.com / Skype: gray-hemp / ICQ: 29353802

В списке pgsql-general по дате отправления:

Предыдущее
От: Dann Corbit
Дата:
Сообщение: Re: Search then Delete Performance
Следующее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: workaround steps for autovaccum problem