Re: Using CASE in plpgsql causes 'ERROR: cache lookup failed'

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Using CASE in plpgsql causes 'ERROR: cache lookup failed'
Дата
Msg-id 16679.1271286699@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Using CASE in plpgsql causes 'ERROR: cache lookup failed'  (Mario Splivalo <mario.splivalo@megafon.hr>)
Список pgsql-sql
Mario Splivalo <mario.splivalo@megafon.hr> writes:
> When I call 'service_something' function and provide nonexistent
> service_id I get this error:

> ERROR:  cache lookup failed for type 37

Hmm.  Looks like exec_eval_expr should be more careful about setting
a result datatype when the expression returns no rows.  NULL is NULL,
but it still has a defined datatype ...
        regards, tom lane


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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: graphing time series data
Следующее
От: Mario Splivalo
Дата:
Сообщение: CHECK constraints with plpgsql functions - check 'fires' BEFORE data modification?