Re: [HACKERS] Function call crashes server

2002-03-21 Thread Tom Lane
"Zeugswetter Andreas SB SD" <[EMAIL PROTECTED]> writes: >> 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

Re: [HACKERS] Function call crashes server

2002-03-21 Thread Zeugswetter Andreas SB SD
> 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 n

Re: [HACKERS] Function call crashes server

2002-03-20 Thread Christopher Kings-Lynne
> regression=# SELECT update_pg_pwd(); > ERROR: getTypeOutputInfo: Cache lookup of type 0 failed > > which is not exactly pretty, but it beats a core dump. "SELECT NULL" > still works. Maybe the regression test database should have tests for all the built-in functions? Chris

Re: [HACKERS] Function call crashes server

2002-03-20 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > Feel free to wack it around. Removing the special-case logic in ExecTypeFromTL yields regression=# SELECT update_pg_pwd(); ERROR: getTypeOutputInfo: Cache lookup of type 0 failed which is not exactly pretty, but it beats a core dump. "SELECT NULL" s

Re: [HACKERS] Function call crashes server

2002-03-20 Thread Bruce Momjian
Tom Lane wrote: > Bruce Momjian <[EMAIL PROTECTED]> writes: > > If I do this as any user: > > SELECT update_pg_pwd(); > > it crashes all backends and causes a server-wide restart. Is this > > acceptable behavior? > > There are a number of things we might blame this on, all having to do > wit

Re: [HACKERS] Function call crashes server

2002-03-20 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > If I do this as any user: > SELECT update_pg_pwd(); > it crashes all backends and causes a server-wide restart. Is this > acceptable behavior? There are a number of things we might blame this on, all having to do with the overuse of type OID zero

Re: [HACKERS] Function call crashes server

2002-03-20 Thread Greg Copeland
Does the same thing here. Sounds like a serious problem to me too. Greg On Wed, 2002-03-20 at 20:46, Bruce Momjian wrote: > If I do this as any user: > > SELECT update_pg_pwd(); > > it crashes all backends and causes a server-wide restart. Is this > acceptable behavior? I am sure ther

[HACKERS] Function call crashes server

2002-03-20 Thread Bruce Momjian
If I do this as any user: SELECT update_pg_pwd(); it crashes all backends and causes a server-wide restart. Is this acceptable behavior? I am sure there are other cases too. Isn't it a problem that we let ordinary users crash the server and cause a restart? --