Re: Problem trying to load trigger

From: Michael Gould <mgould(at)intermodalsoftwaresolutions(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Problem trying to load trigger
Date: 2009-08-02 20:03:17
Message-ID: fa19ce0e4b18fd475a539d3c96c833fe@intermodalsoftwaresolutions.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thanks to everyone who answered. Getting used to PostGres's unique syntax
can take time getting used to.

Best Regards

Michael Gould

"Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Michael Gould <mgould(at)intermodalsoftwaresolutions(dot)net> writes:
>> CREATE OR REPLACE FUNCTION iss.accessor_trigger() RETURNS "trigger" AS
$$
>> BEGIN
>
>> IF (TG_WHEN = 'BEFORE') THEN
>> IF (TG_OP = 'INSERT') THEN
>> NEW.createdatetime := current_timestamp
>> NEW.createuser := current_user
>
>
> You've forgotten to end these statements with semicolons ...
>
> regards, tom lane
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Janet Jacobsen 2009-08-03 00:25:48 Re: questions on (parallel) COPY and when to REINDEX
Previous Message Dennis Gearon 2009-08-02 19:45:42 Use of Postgres in REST/JSON with BLOBS