pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: a <372660931@qq.com>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: How do I get the SQL statement in a trigger?
Date: Thu, 10 May 2018 18:23:25 +0800
Message-ID: <tencent_6EF46BDD28A4F2AA52209B4B@qq.com> (raw)

Hi I would like to write a trigger that recorded every sql statement under the effected entry. So if it is possible to retrieve the sql statement within a trigger??

view thread (6+ messages)  latest in thread

Message-ID: <tencent_6EF46BDD28A4F2AA52209B4B@qq.com>
Permalink:  ../tencent_6EF46BDD28A4F2AA52209B4B@qq.com/
Also on:    postgresql.org/message-id/tencent_6EF46BDD28A4F2AA52209B4B@qq.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: 372660931@qq.com
  Subject: Re: How do I get the SQL statement in a trigger?
  In-Reply-To: <tencent_6EF46BDD28A4F2AA52209B4B@qq.com>
  References: <tencent_6EF46BDD28A4F2AA52209B4B@qq.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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