Thread: plpgsql syntax

plpgsql syntax

From
Kemin Zhou
Date:
I just want to bring up a point for discussion:
for the function definition is treated as a long string right now.  Why 
not add an additional token so that we don't have to write 10 single quotes.

for example
create function a_func() return integer as
.....
end a_func
after as and before end a_func marks the definition body. Would this be 
better than the ' '?
Kemin





**********************************************************************
Proprietary or confidential information belonging to Ferring Holding SA or to one of its affiliated companies may be
containedin the message. If you are not the addressee indicated in this message (or responsible for the delivery of the
messageto such person), please do not copy or deliver this message to anyone. In such case, please destroy this message
andnotify the sender by reply e-mail. Please advise the sender immediately if you or your employer do not consent to
e-mailfor messages of this kind. Opinions, conclusions and other information in this message represent the opinion of
thesender and do not necessarily represent or reflect the views and opinions of Ferring.
 
**********************************************************************



Re: plpgsql syntax

From
Yasir Malik
Date:
> for example
> create function a_func() return integer as
> .....
> end a_func
>
> after as and before end a_func marks the definition body. Would this be 
> better than the ' '?

I guess having a parser that gave better error messages would be nice, 
too.

Yasir


Re: plpgsql syntax

From
Tom Lane
Date:
Kemin Zhou <kemin.zhou@ferring.com> writes:
> I just want to bring up a point for discussion:
> for the function definition is treated as a long string right now.  Why 
> not add an additional token so that we don't have to write 10 single quotes.

Something's already been done about this for 8.0.
        regards, tom lane