Writing plpgsql not in a function (directly from plsql)?

Поиск
Список
Период
Сортировка
От Vitaly Belman
Тема Writing plpgsql not in a function (directly from plsql)?
Дата
Msg-id fa96e3c604100214592899f2be@mail.gmail.com
обсуждение исходный текст
Список pgsql-novice
Is it possible to write plpgsq from psql? I don't want to write a
function just to write a little script, for example, I'd like to write
something like:

begin;
if 1 > 3 then
   raise notice 'Hi';
end if;
commit;

--
 ICQ: 1912453
 AIM: VitalyB1984
 MSN: tmdagent@hotmail.com
 Yahoo!: VitalyBe

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: date_trunc'd timestamp index possible?
Следующее
От: "Madhukar Gole"
Дата:
Сообщение: Help needed to set parameters in postgresql.conf