Unix Technical Forum

Store Procedures

This is a discussion on Store Procedures within the Pgsql General forums, part of the PostgreSQL category; --> Hello. I been having "problems" with and application, and i want to store in the data base the changes(update) ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-09-2008, 02:39 PM
Cesar Alvarez
 
Posts: n/a
Default Store Procedures

Hello.
I been having "problems" with and application, and i want to store in
the data base the changes(update) made to a specific table.
what i need is to see how 2 fields specific change there values, to do
that i plan to make a temporal table with the fields before and after
plus the time the changes where made... can i do this with store
procedures??

here are the 2 fields are:
"cajas" INTEGER,
"unidades" INTEGER,

in the temporal table will be
"before_cajas" INTEGER,
"before_unidades" INTEGER,
"after_cajas" INTEGER,
"after_unidades" INTEGER,

Regards Cesar Alvarez.

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-09-2008, 02:39 PM
Richard Broersma Jr
 
Posts: n/a
Default Re: Store Procedures

> what i need is to see how 2 fields specific change there values, to do
> that i plan to make a temporal table with the fields before and after
> plus the time the changes where made... can i do this with store
> procedures??


http://www.varlena.com/varlena/GeneralBits/104.php

Check out this discussion on this link. It is very similar to what you want to do. If fact, my
experience is that "generalbits" is an excellent cookbook for and learning Postgresql developer.

Regards,
Richard Broersma Jr.

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-09-2008, 02:39 PM
Cesar Alvarez
 
Posts: n/a
Default Re: Store Procedures

Richard Broersma Jr wrote:
>> what i need is to see how 2 fields specific change there values, to do
>> that i plan to make a temporal table with the fields before and after
>> plus the time the changes where made... can i do this with store
>> procedures??
>>

>
> http://www.varlena.com/varlena/GeneralBits/104.php
>
> Check out this discussion on this link. It is very similar to what you want to do. If fact, my
> experience is that "generalbits" is an excellent cookbook for and learning Postgresql developer.
>
> Regards,
> Richard Broersma Jr.
>
>

thanks
i think this helps me a lot, im gona play with the triggers and all that.

Cesar Alvarez
Web Development Asesor and Software Enginner.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:29 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com