Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Hackers > Re: Syntax deci...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 7 of 21 Topic 9345 of 10122
Post > Topic >>

Re: Syntax decisions for pl/pgsql RAISE extension

by pavel.stehule@[EMAIL PROTECTED] ("Pavel Stehule") May 12, 2008 at 08:15 PM

2008/5/12 Tom Lane <tgl@[EMAIL PROTECTED]
>:
> "Brendan Jurd" <direvus@[EMAIL PROTECTED]
> writes:
>> I agree that the % formatting in the RAISE message is weird, but it is
>> useful.
>
> Sure, I'm not proposing removing it.
>
>> What would we do if the user specifies a %-formatted message as well
>> as a MESSAGE option?
>
> Throw an error (just like if they specified the same option type twice).
>
>> I like "RAISE condition_name", can we sup****t it in conjunction with
>> the current syntax?  That is:
>
>>     RAISE level [condition] [string literal, [parameter, ...]] [USING
>> [option = value, ...]]
>
> Well, it's sort of a mess because level has to become optional in order
> to be Oracle-compatible (or PSM-compliant, if Kevin is correct).  We
> could get away with it only if the condition were not allowed to be
> a string literal, which I guess is tolerable but it's a bit annoying.
> It would get less annoying if we allowed user-declared exception names.
> I find the Oracle syntax for those to be spectacularly awful:
>
>        DECLARE
>           deadlock_detected EXCEPTION;
>           PRAGMA EXCEPTION_INIT(deadlock_detected, -60);
>
> but it sounds like SQL/PSM's syntax isn't so bad.  I could live with
> the re****ted
>
>        DECLARE
>           condition-name CONDITION FOR SQLSTATE VALUE character-literal
>
> However, that's a separate feature and I don't want to get into it as
> part of the current patch.
>
>                        regards, tom lane
>

Tom, it's exactly like my patch that you rejected two years ago.

http://archives.postgresql.org/pgsql-patches/2005-07/msg00176.php

Pavel

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
 




 21 Posts in Topic:
Syntax decisions for pl/pgsql RAISE extension
tgl@[EMAIL PROTECTED] (T  2008-05-12 12:53:18 
Re: Syntax decisions for pl/pgsql RAISE extension
Kevin.Grittner@[EMAIL PRO  2008-05-12 12:33:45 
Re: Syntax decisions for pl/pgsql RAISE extension
tgl@[EMAIL PROTECTED] (T  2008-05-12 14:43:59 
Re: Syntax decisions for pl/pgsql RAISE extension
direvus@[EMAIL PROTECTED]  2008-05-13 03:41:56 
Re: Syntax decisions for pl/pgsql RAISE extension
tgl@[EMAIL PROTECTED] (T  2008-05-12 14:10:50 
Re: Syntax decisions for pl/pgsql RAISE extension
pavel.stehule@[EMAIL PROT  2008-05-12 20:11:19 
Re: Syntax decisions for pl/pgsql RAISE extension
pavel.stehule@[EMAIL PROT  2008-05-12 20:15:18 
Re: Syntax decisions for pl/pgsql RAISE extension
tgl@[EMAIL PROTECTED] (T  2008-05-12 14:30:20 
Re: Syntax decisions for pl/pgsql RAISE extension
xzilla@[EMAIL PROTECTED]   2008-05-12 21:15:59 
Re: Syntax decisions for pl/pgsql RAISE extension
tgl@[EMAIL PROTECTED] (T  2008-05-12 22:41:11 
Re: Syntax decisions for pl/pgsql RAISE extension
pavel.stehule@[EMAIL PROT  2008-05-12 20:35:44 
Re: Syntax decisions for pl/pgsql RAISE extension
pavel.stehule@[EMAIL PROT  2008-05-12 20:40:46 
Re: Syntax decisions for pl/pgsql RAISE extension
pavel.stehule@[EMAIL PROT  2008-05-12 20:53:47 
Re: Syntax decisions for pl/pgsql RAISE extension
tgl@[EMAIL PROTECTED] (T  2008-05-12 15:47:08 
Re: Syntax decisions for pl/pgsql RAISE extension
pavel.stehule@[EMAIL PROT  2008-05-12 20:56:54 
Re: Syntax decisions for pl/pgsql RAISE extension
pavel.stehule@[EMAIL PROT  2008-05-13 05:53:57 
Re: Syntax decisions for pl/pgsql RAISE extension
tgl@[EMAIL PROTECTED] (T  2008-05-13 12:53:43 
Re: Syntax decisions for pl/pgsql RAISE extension
tgl@[EMAIL PROTECTED] (T  2008-05-13 21:55:53 
Re: Syntax decisions for pl/pgsql RAISE extension
Andreas.Zeugswetter@[EMAI  2008-05-14 10:29:52 
Re: Syntax decisions for pl/pgsql RAISE extension
tgl@[EMAIL PROTECTED] (T  2008-05-14 09:51:15 
Re: Syntax decisions for pl/pgsql RAISE extension
pavel.stehule@[EMAIL PROT  2008-05-13 19:55:55 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Sep 7 13:05:03 CDT 2008.