select sql slow inside function

Поиск
Список
Период
Сортировка
От Gary Fu
Тема select sql slow inside function
Дата
Msg-id i6or2u$2s15$1@news.hub.org
обсуждение исходный текст
Ответы Re: select sql slow inside function  (Sergey Konoplev <gray.ru@gmail.com>)
Список pgsql-general
Hi,

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

Thanks,
Gary

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

Предыдущее
От: Julia Jacobson
Дата:
Сообщение: Extracting data from BYTEA column to binary file using libpq
Следующее
От: "Daniel Verite"
Дата:
Сообщение: Re: Extracting data from BYTEA column to binary file using libpq