Re: show application_name - Mailing list pgadmin-support

From Maada Moseray
Subject Re: show application_name
Date
Msg-id CAOLGv7bRDe4R3ZqgBL7KXzwY22gdNWyvt8j_N1fsEWuWW=E_KQ@mail.gmail.com
Whole thread Raw
In response to show application_name  (Luiz Eduardo <dudulond@gmail.com>)
Responses Re: show application_name
List pgadmin-support
Will the admin please take me off this forum. Thanks.

On 4/17/12, Luiz Eduardo <dudulond@gmail.com> wrote:
> Olá pessoal,
> gostaria de saber como é possível saber o nome da aplicação que está rodando
> através da query do postgreSQL
> Estou criado uma função em PL/SQL da seguinte forma:
>
> CREATE OR REPLACE FUNCTION audit()
>     RETURNS trigger AS
> $BODY$
> declare
>     sApplication text;
> begin
>     execute 'show application_name' into sApplication;
> end;
> $BODY$
>
> LANGUAGE plpgsql VOLATILE
> COST 100;
> ALTER FUNCTION audit() OWNER TO solution;
>
> O objetivo é saber se a alteração de um registro foi feito pelo sistema ou
> diretamente no postgreSQL
>
> obrigado desde já
> att,
> Luiz Eduardo A. Londero
>
> --
> View this message in context:
> http://postgresql.1045698.n5.nabble.com/show-application-name-tp5647490p5647490.html
> Sent from the PostgreSQL - pgadmin support mailing list archive at
> Nabble.com.
>
> --
> Sent via pgadmin-support mailing list (pgadmin-support@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgadmin-support
>


--
Saful, saful kaetch monkey!


pgadmin-support by date:

Previous
From: Guillaume Lelarge
Date:
Subject: Re: 1.15 : wxw 2.9.3 : Object browser
Next
From: Raymond O'Donnell
Date:
Subject: Re: show application_name