Re: [BUGS] BUG #3841: core dump in uuid-ossp

2007-12-30 Thread Alvaro Herrera
Tom Lane wrote: > Alvaro Herrera <[EMAIL PROTECTED]> writes: > > if (err != NULL) > > ereport(ERROR, > > (errmsg("OSSP uuid failure: %s", err))); > > else > > ereport(ERROR, > > (errmsg("OSSP uuid failure: error code %d", rc))); > > Maybe "OS

Re: [BUGS] BUG #3841: core dump in uuid-ossp

2007-12-27 Thread Tom Lane
Alvaro Herrera <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >> Can we throw some more specific SQLSTATE than the default "internal >> error" here? > Hmm. I looked at the extant list, and found that the contrib/xml2 code > uses ERRCODE_EXTERNAL_ROUTINE_EXCEPTION whereas pgcrypto uses > ERRCODE_EX

Re: [BUGS] BUG #3841: core dump in uuid-ossp

2007-12-27 Thread Alvaro Herrera
Tom Lane wrote: > Alvaro Herrera <[EMAIL PROTECTED]> writes: > > if (err != NULL) > > ereport(ERROR, > > (errmsg("OSSP uuid failure: %s", err))); > > else > > ereport(ERROR, > > (errmsg("OSSP uuid failure: error code %d", rc))); > > Maybe "OS

Re: [BUGS] BUG #3841: core dump in uuid-ossp

2007-12-27 Thread Tom Lane
Alvaro Herrera <[EMAIL PROTECTED]> writes: > if (err != NULL) > ereport(ERROR, > (errmsg("OSSP uuid failure: %s", err))); > else > ereport(ERROR, > (errmsg("OSSP uuid failure: error code %d", rc))); Maybe "OSSP uuid library failure"? Otherwi

Re: [BUGS] BUG #3841: core dump in uuid-ossp

2007-12-27 Thread Alvaro Herrera
Tom Lane wrote: > Alvaro Herrera <[EMAIL PROTECTED]> writes: > > Please try the attached patch. > > Most of the invocations of pguuid_complain will be outright lies as to > which function is complaining. Please rethink the error message. Doh! Sorry. How about this: static void pguuid_complain

Re: [BUGS] BUG #3841: core dump in uuid-ossp

2007-12-27 Thread Tom Lane
Alvaro Herrera <[EMAIL PROTECTED]> writes: > Please try the attached patch. Most of the invocations of pguuid_complain will be outright lies as to which function is complaining. Please rethink the error message. regards, tom lane ---(end of broadc

Re: [BUGS] BUG #3841: core dump in uuid-ossp

2007-12-27 Thread Alvaro Herrera
Alvaro Herrera wrote: > Dmitriy wrote: > > > in sql console: > > postgres=# select uuid_nil(); > > server closed the connection unexpectedly > > This probably means the server terminated abnormally > > before or while processing the request. > > Thanks for the report. I think the proble

Re: [BUGS] BUG #3841: core dump in uuid-ossp

2007-12-27 Thread Alvaro Herrera
Dmitriy wrote: > in sql console: > postgres=# select uuid_nil(); > server closed the connection unexpectedly > This probably means the server terminated abnormally > before or while processing the request. Thanks for the report. I think the problem here is that we're not checking th

[BUGS] BUG #3841: core dump in uuid-ossp

2007-12-27 Thread Dmitriy
The following bug has been logged online: Bug reference: 3841 Logged by: Dmitriy Email address: [EMAIL PROTECTED] PostgreSQL version: 8.3.beta4 Operating system: FreeBSD 6.2-RELEASE Description:core dump in uuid-ossp Details: in sql console: postgres=# select uuid_