From: | Zeugswetter Andreas <andreas(dot)zeugswetter(at)telecom(dot)at> |
---|---|
To: | "'pgsql-hackers(at)hub(dot)org'" <pgsql-hackers(at)hub(dot)org> |
Subject: | Re: [HACKERS] PL/pgSQL - for discussion (ELOG) |
Date: | 1998-03-13 10:03:12 |
Message-ID: | 01BD4E6F.9FF34AA0@pc9358.sd.spardat.at |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
>> As indicated above there is an ELOG statement that can
>> throw messages into the PostgreSQL elog mechanism.
>>
>> ELOG level 'format' [identifiers];
> ^^^^^^^^^^
>NO, pls - too postgres-ish! Just let ABORT to have 'format' etc and add
>PRINT (or something like this) to put some messages to application (via NOTICE).
>What are used in Oracle, Sybase etc here ?
Yes I was going to comment on this too:
Informix: raise exception -273,0,'You are not user administrator.'; --or
raise exception -100;
Oracle: raise program_error; -- where program_error is one of many Orcl predefined error numbers
I think we will need error numbers in the future that map directly to some text.
This would also help Michael with the ESQL/C preprocessor.
Andreas
From | Date | Subject | |
---|---|---|---|
Next Message | Zeugswetter Andreas | 1998-03-13 10:12:21 | Re: [HACKERS] PL/pgSQL - for discussion (RETURN) |
Previous Message | Jan Wieck | 1998-03-13 09:31:01 | Re: [HACKERS] PL/pgSQL - for discussion |