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

From: Vitaly Belman <vitalyb(at)gmail(dot)com>
To: Postgresql Novice <pgsql-novice(at)postgresql(dot)org>
Subject: Writing plpgsql not in a function (directly from plsql)?
Date: 2004-10-02 21:59:00
Message-ID: fa96e3c604100214592899f2be@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)hotmail(dot)com
Yahoo!: VitalyBe

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Bruno Wolff III 2004-10-03 01:16:41 Re: Mislabeled timestamp functions (was Re: [SQL] [NOVICE] date_trunc'd
Previous Message Bruno Wolff III 2004-10-02 20:04:51 Re: Mislabeled timestamp functions (was Re: [SQL] [NOVICE] date_trunc'd