Re: TRIGGERS - access sql query_string that called it?

From: Richard Huxton <dev(at)archonet(dot)com>
To: Matthew Peter <survivedsushi(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: TRIGGERS - access sql query_string that called it?
Date: 2006-11-09 09:25:33
Message-ID: 4552F40D.2010307@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Matthew Peter wrote:
> Is it possible to access the entire sql query_string that called the trigger?

No. It doesn't necessarily exist in any useful form (think about what
happens with rules on a view, or triggers making updates which fire
other triggers - what is the "original" query?).

--
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2006-11-09 09:26:33 Re: dblink / plpgsql - definition list cheats for record
Previous Message Richard Huxton 2006-11-09 09:24:29 Re: RULE - special variables?