Re: Start up question about triggers

From: "Forums (at) Existanze" <forums(at)existanze(dot)com>
To: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Start up question about triggers
Date: 2006-06-22 13:09:04
Message-ID: 200606221309.k5MD90S3007695@auth-smtp.hol.gr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Sorry This is the complete message

Hello all,

I know that this question may be really simple, but I have decided to ask
here due to fact that I don't know how to search for this on google or on
the docs.

I created a trigger fuction which updates a specific row in some table A. Is
it possible to retain the query that was used to trigger the function. For
example

Table A
query_row_id
query_row



TABLE B
id
name





If I create a trigger on table B that says that after the insert command to
write the query into table A. So if I do

insert into B values(1,"Blah")

this will trigger my trigger. Is there any way to get the "insert into B
values(1,"Blah")? At the moment I can see only the type of query that it is
(INSERT UPDATE DELETE)

best regards,
Fotis

_____

From: pgsql-sql-owner(at)postgresql(dot)org [mailto:pgsql-sql-owner(at)postgresql(dot)org]
On Behalf Of Forums @ Existanze
Sent: 22 June 2006 12:19
To: pgsql-sql(at)postgresql(dot)org
Subject: [SQL] Start up question about triggers

Hello all,

I know that this question may be really simple, but I have decided to ask
here due to fact that I don't know how to search for this on google or on
the docs.

I created a trigger fuction which updates a specific row in some table A. Is
it possible to retain the query that was used to trigger the function. For
example

Table A
query_row_id
query_row



TABLE B
id
name

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Richard Broersma Jr 2006-06-22 14:26:26 Re: Doubt in stored procedure
Previous Message Forums @ Existanze 2006-06-22 09:19:00 Start up question about triggers