why does documentation use "END CASE" when that doesn't work - Mailing list pgsql-general

From Susan Cassidy
Subject why does documentation use "END CASE" when that doesn't work
Date
Msg-id CAE3Q8ong3-3kSYXSNBUmCd2by_U0A=6DesbMiTnDLonJ9-OrEQ@mail.gmail.com
Whole thread Raw
Responses Re: why does documentation use "END CASE" when that doesn't work  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: why does documentation use "END CASE" when that doesn't work  (Jov <zhao6014@gmail.com>)
List pgsql-general
The documentation says:
CASE search-expression   WHEN expression [, expression [ ... ]] THEN     statements [ WHEN expression [, expression [ ... ]] THEN     statements   ... ] [ ELSE     statements ]
END CASE;

And it repeats the "END CASE" phrase in other examples.  

However, that doesn't work. You have to just use "END".

Shouldn't the documentation be fixed?
Susan


pgsql-general by date:

Previous
From: Thom Brown
Date:
Subject: Re: How can I use the crosstab() function?
Next
From: Tom Lane
Date:
Subject: Re: why does documentation use "END CASE" when that doesn't work