pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedHow to get the DML Commands exceuted from functions
2+ messages / 2 participants
[nested] [flat]
* How to get the DML Commands exceuted from functions
@ 2007-03-23 05:14 Anoo Pillai <anoo.postgresql@gmail.com>
0 siblings, 0 replies; 2+ messages in thread
From: Anoo Pillai @ 2007-03-23 05:14 UTC (permalink / raw)
To: pgsql-admin; pgsql-general@postgresql.org
Hi All,
There are a few plpgsql functions in our application, When the functions are
called, I would like to see the commands executed from the functions ( the
selects, inserts, updates and Deletes written in the function body)
I am from SQL server world and there exists a tool SQL Profiler for the same
purpose. I am looking for something like that
Thanks in advance
Anoo.S
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: How to get the DML Commands exceuted from functions
@ 2007-03-23 05:47 Karthikeyan Sundaram <skarthi98@hotmail.com>
0 siblings, 0 replies; 2+ messages in thread
From: Karthikeyan Sundaram @ 2007-03-23 05:47 UTC (permalink / raw)
To: Anoo Pillai <anoo.postgresql@gmail.com>; pgsql-admin; pgsql-general@postgresql.org
CREATE OR REPLACE FUNCTION xyz() returns int4 as
$body$
DECLARE
....
BEGIN
IF (TG_OP = 'DELETE') THEN n_id = OLD.campaign_id; EXECUTE 'DELETE FROM cn_mapping WHERE campaign_id = '||quote_literal(n_id); RETURN 0; END IF;
END;
$body$
LANGUAGE 'plpgsql' VOLATILE;
Date: Fri, 23 Mar 2007 10:44:49 +0530From: anoo.postgresql@gmail.comTo: pgsql-admin@postgresql.org; pgsql-general@postgresql.orgSubject: [ADMIN] How to get the DML Commands exceuted from functions
Hi All,
There are a few plpgsql functions in our application, When the functions are called, I would like to see the commands executed from the functions ( the selects, inserts, updates and Deletes written in the function body)
I am from SQL server world and there exists a tool SQL Profiler for the same purpose. I am looking for something like that
Thanks in advance
Anoo.S
_________________________________________________________________
Take a break and play crossword puzzles - FREE!
http://games.msn.com/en/flexicon/default.htm?icid=flexicon_ wlmemailtaglinemarch07=
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2007-03-23 05:47 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-03-23 05:14 How to get the DML Commands exceuted from functions Anoo Pillai <anoo.postgresql@gmail.com>
2007-03-23 05:47 Re: How to get the DML Commands exceuted from functions Karthikeyan Sundaram <skarthi98@hotmail.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox