Ask a Question related to PostgreSQL / PGSQL, Design and Development.
-
Tzahi Fadida #1
returning a setof tuples like a subquery was(RE: ERROR:cache lookup failed for type 0 )
yes you were right it works now.
10x, sorry for the rookie mistake I jumped the gun on the last one.
If you will i have another question on the same subject.
I want to return a setof tuples without a predetermined return type
like a subquery with a join, I don't want to specify a type.
for example, new_join_alg_func(table1,table2).
when I use SETOF RECORD I have to specify a type, same goes
for anyelement.
Regards,
tzahi.
> -----Original Message-----
> From: [email]pgsql-general-owner@postgresql.org[/email]
> [mailto:pgsql-general-owner@postgresql.org] On Behalf Of Tom Lane
> Sent: Saturday, January 08, 2005 12:24 AM
> To: Tzahi Fadida
> Cc: [email]pgsql-general@postgresql.org[/email]
> Subject: Re: [GENERAL] ERROR: cache lookup failed for type 0
>
>
> Tzahi Fadida <tzahi_ml@myrealbox.com> writes:>> > well, I tried the heap_deformtuple and I am getting now: select
> > testgetrows(); server closed the connection unexpectedly
> You didn't palloc the values array. Any reasonable compiler
> would have warned you about that BTW. If you don't have
> compiler warnings enabled, learn to use them.
>
> Also, I'd recommend using the tupledesc from the just-opened
> lRel; fetching it via an independent path is just asking for trouble.
>
> regards, tom lane
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 7: don't forget to increase your free space map settings
>
>
---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend
Tzahi Fadida Guest
-
cfquery cache stores failed queries
cfquery cache still stores failed queries. This was reported years ago... -
ERROR: cache lookup failed for type 0
Tzahi Fadida <tzahi_ml@myrealbox.com> writes: Um. The "clean" way to do this is to use BlessTupleDesc and then heap_formtuple. That requires... -
ERROR: cache lookup failed for type 0
Hi, I am learning how to use the c functions and my function below works when I do: select testgetrows(); but when I do select * from... -
midl\oleaut32.dll : error MIDL2020 : error generating type library : LayOut failed : IXMLDOMNode
Hi there Im new to C++ and have inherited a C++ dll that wont compile. Its coplaing about the following midl\oleaut32.dll : error MIDL2020 :... -
A subquery returning two columns
Fo any version of Oracle How do I base a query (or DELETE, UPDATE statements) on a subquery if it returns two columns (other than concatenating...



Reply With Quote

