execute if statement

From: Peter Kroon <plakroon(at)gmail(dot)com>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: execute if statement
Date: 2012-12-01 19:11:01
Message-ID: CAOh+DOkYFsMFC0PESFB57dPYTtnsYk=dDdKYU=8WPOS5a7FTKw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

How can I achieve this?

EXECUTE '

if 1=1 then
raise notice ''%'', ''notice has been raised...'';
end if;

';

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Raymond O'Donnell 2012-12-01 19:18:37 Re: execute if statement
Previous Message Dmitriy Igrishin 2012-12-01 16:58:52 Re: pg_listening_channels()