From: | Achilleus Mantzios <achill(at)matrix(dot)gatewaynet(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org, <pgsql-sql(at)postgresql(dot)org> |
Subject: | 7.3.1 function problem: ERROR: cache lookup failed for type 0 |
Date: | 2003-01-07 21:55:33 |
Message-ID: | Pine.LNX.4.44.0301071943200.9521-100000@matrix.gatewaynet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-performance pgsql-sql |
Hi i had written a C function to easily convert an int4 to its
equivalent 1x1 int4[] array.
It worked fine under 7.1,7.2.
Now under 7.3.1 i get the following message whenever i try to:
dynacom=# select itoar(3126);
ERROR: cache lookup failed for type 0
Surprisingly though when i do something like :
dynacom=# select defid from machdefs where itoar(3126) ~ parents and
level(parents) = 1 order by description,partno;
defid
-------
3137
3127
3130
3129
3133
3136
3135
3128
3131
3132
3134
3138
(12 rows)
it works fine, but then again when i try to EXPLAIN the above (successful)
statement i also get:
dynacom=# EXPLAIN select defid from machdefs where itoar(3126) ~ parents
and
level(parents) = 1 order by description,partno;
ERROR: cache lookup failed for type 0
Any clues of what could be wrong??
The definition of the function is:
CREATE FUNCTION "itoar" (integer) RETURNS integer[] AS
'$libdir/itoar', 'itoar' LANGUAGE 'c' WITH ( iscachable,isstrict );
I also tried without the iscachable option with no luck
(since it seems to complain about *type* 0)
==================================================================
Achilleus Mantzios
S/W Engineer
IT dept
Dynacom Tankers Mngmt
Nikis 4, Glyfada
Athens 16610
Greece
tel: +30-10-8981112
fax: +30-10-8981877
email: achill(at)matrix(dot)gatewaynet(dot)com
mantzios(at)softlab(dot)ece(dot)ntua(dot)gr
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2003-01-07 22:03:36 | Re: table schema causes crash |
Previous Message | Achilleus Mantzios | 2003-01-07 21:05:22 | Re: [SQL] [PERFORM] 7.3.1 index use / performance |
From | Date | Subject | |
---|---|---|---|
Next Message | Achilleus Mantzios | 2003-01-07 22:32:56 | Re: 7.3.1 function problem: ERROR: cache lookup failed |
Previous Message | Achilleus Mantzios | 2003-01-07 21:05:22 | Re: [SQL] [PERFORM] 7.3.1 index use / performance |
From | Date | Subject | |
---|---|---|---|
Next Message | Achilleus Mantzios | 2003-01-07 22:32:56 | Re: 7.3.1 function problem: ERROR: cache lookup failed |
Previous Message | Achilleus Mantzios | 2003-01-07 21:05:22 | Re: [SQL] [PERFORM] 7.3.1 index use / performance |