Re: Function call crashes server - Mailing list pgsql-hackers

From Zeugswetter Andreas SB SD
Subject Re: Function call crashes server
Date
Msg-id 46C15C39FEB2C44BA555E356FBCD6FA4961D8E@m0114.s-mxs.net
Whole thread Raw
In response to Function call crashes server  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: Function call crashes server  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
> Removing the special-case logic in ExecTypeFromTL yields
>
> regression=# SELECT update_pg_pwd();
> ERROR:  getTypeOutputInfo: Cache lookup of type 0 failed

Wouldn't it be nice to make this a feature that allows
stored procedures (void update_pg_pwd ()) ? Correctly register
this function to not return anything ? This is what the 0 is actually
supposed to mean here, no ? Such a proc would need a fmgr, that generates
an empty resultset.

Andreas


pgsql-hackers by date:

Previous
From: Oliver Elphick
Date:
Subject: Linux/mips compile should not use -mips2
Next
From: Thomas Lockhart
Date:
Subject: Re: Domains and type coercion