Thread: show application_name
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.
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!
On 05/05/2012 11:14, Maada Moseray wrote: > Will the admin please take me off this forum. Thanks. Hi there, You can remove yourself from this mailing list - see the instructions at the bottom of every post. However, if you still have problems after trying that, write again and I'm sure the list owner will help you. Ray. -- Raymond O'Donnell :: Galway :: Ireland rod@iol.ie
Thanks Raymond. <br />Unfortunately I cannot see anything at the bottom of my post. So, if the system admin can pleaseatke me off I will be grateful. <br />Thanks.<br /><br /><div class="gmail_quote">On Sat, May 5, 2012 at 3:47 AM,Raymond O'Donnell <span dir="ltr"><<a href="mailto:rod@iol.ie" target="_blank">rod@iol.ie</a>></span> wrote:<br/><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 05/05/201211:14, Maada Moseray wrote:<br /> > Will the admin please take me off this forum. Thanks.<br /><br /> Hi there,<br/><br /> You can remove yourself from this mailing list - see the instructions at<br /> the bottom of every post.However, if you still have problems after<br /> trying that, write again and I'm sure the list owner will help you.<br/><br /> Ray.<br /><span class="HOEnZb"><font color="#888888"><br /><br /> --<br /> Raymond O'Donnell :: Galway ::Ireland<br /><a href="mailto:rod@iol.ie">rod@iol.ie</a><br /></font></span></blockquote></div><br /><br clear="all" /><br/>-- <br />Saful, saful kaetch monkey!<br />