Caro Osvaldo,

Obrigado pelo retorno!
Att,

Emerson
2012/3/26 Osvaldo Kussama <[email protected]>

> Em 26/03/12, emerson lopes<[email protected]> escreveu:
> > Boa noite,
> >
> > Alguém sabe como preparar um gatilho ou função para ser executado após o
> > LOGON no pgadmin?
> >
> > Algo assim:
> >  CREATE OR REPLACE TRIGGER teste
> >     AFTER LOGON ON banco_de_dados
> >
>
>
> Do manual:
> CREATE [ CONSTRAINT ] TRIGGER name { BEFORE | AFTER | INSTEAD OF } {
> event [ OR ... ] }
>    ON table
>    [ FROM referenced_table_name ]
>    { NOT DEFERRABLE | [ DEFERRABLE ] { INITIALLY IMMEDIATE |
> INITIALLY DEFERRED } }
>    [ FOR [ EACH ] { ROW | STATEMENT } ]
>    [ WHEN ( condition ) ]
>    EXECUTE PROCEDURE function_name ( arguments )
>
> where event can be one of:
>
>    INSERT
>    UPDATE [ OF column_name [, ... ] ]
>    DELETE
>    TRUNCATE
>
> http://www.postgresql.org/docs/current/interactive/sql-createtrigger.html
>
> Ou seja: o que você deseja não foi implementado no PostgreSQL.
>
> Osvaldo
> _______________________________________________
> pgbr-geral mailing list
> [email protected]
> https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
>
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a