Re: Looking for auto starting procedures

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: Looking for auto starting procedures
Дата
Msg-id 4CF802E5.3010509@gmail.com
обсуждение исходный текст
Ответ на Re: Looking for auto starting procedures  (<mabra@manfbraun.de>)
Ответы Re: Looking for auto starting procedures  (<mabra@manfbraun.de>)
Список pgsql-general
On 12/02/2010 12:27 PM, mabra@manfbraun.de wrote:
> Hello !
>
> a)
>
> The idea with to test a RAISE statement with an prefix, could
> be good. But I am just that new, I could not make it working.
> I have not understand, where I can issue direct sql statements
> and it looks like, the RAISE is not possible with plSql:
>
> mbtest=# RAISE NOTICE 'mynotice: %', 'hello';
> ERROR:  syntax error at or near "RAISE"
> LINE 1: RAISE NOTICE 'mynotice: %', 'hello';
>

It is available in plpgsql:
http://www.postgresql.org/docs/9.0/interactive/plpgsql-errors-and-messages.html

If you are running 9.0+ you can use DO to run it at the psql prompt:
http://www.postgresql.org/docs/9.0/interactive/sql-do.html

--
Adrian Klaver
adrian.klaver@gmail.com

В списке pgsql-general по дате отправления:

Предыдущее
От: "James B. Byrne"
Дата:
Сообщение: Re: PG84 and SELinux
Следующее
От: "James B. Byrne"
Дата:
Сообщение: Dumping a table from one database and adding it to another