Skip site navigation (1) Skip section navigation (2)

Re: Question for postgreSQL

From: Darko Prenosil <darko(dot)prenosil(at)finteh(dot)hr>
To: Miljan Jeremić <miljan(at)micro(dot)co(dot)yu>,pgadmin-hackers(at)postgresql(dot)org
Subject: Re: Question for postgreSQL
Date: 2004-03-25 08:33:34
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgadmin-hackers
On Wednesday 24 March 2004 15:27, Miljan Jeremić wrote:
> Dear Sir's,
> I have one problem with type trigger in example:
> CREATE FUNCTION emp_stamp() RETURNS trigger AS '
>     ....
> How to create type triger for this function?
> How create type for function that returned primary key, in pd AdminII
> function is check_primary_key().
	You don't need to create any type for trigger procedures. From inside of 
trigger procedure You can acces two rows(tuples): NEW and OLD, and Your 
trigger function must RETURN NEW if you want to allow data changes, or OLD if 
You want to discard changes. 
Also, this is more pgsql-hackers(at)postgresql(dot)org kind of question...


Regards !
(Pozdrav !) 

In response to

pgadmin-hackers by date

Next:From: cvsDate: 2004-03-25 09:33:43
Subject: CVS Commit by andreas: Allow initial selection of language "Default"
Previous:From: Miljan JeremićDate: 2004-03-24 14:27:18
Subject: Question for postgreSQL

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group