Writing plpgsql not in a function (directly from plsql)? - Mailing list pgsql-novice

From Vitaly Belman
Subject Writing plpgsql not in a function (directly from plsql)?
Date
Msg-id fa96e3c604100214592899f2be@mail.gmail.com
Whole thread Raw
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: date_trunc'd timestamp index possible?
Next
From: "Madhukar Gole"
Date:
Subject: Help needed to set parameters in postgresql.conf