Unix Technical Forum

storing transactions

This is a discussion on storing transactions within the Pgsql General forums, part of the PostgreSQL category; --> Hi all, I’ve been studying the whole evening and don’t seem to find an answer: I want to “store” ...


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, 12:41 PM
kaspro@web.de
 
Posts: n/a
Default storing transactions

Hi all,
I’ve been studying the whole evening and don’t seem to find an answer:
I want to “store” transactions on the server- like view’s, or, (sorry) as in M$ SQL Server CREATE OR REPLACE TRANSACTION xyz()........
Is this possible with postgres or do I have to store all these at the client side?!

Thanks heaps,
Chris

__________________________________________________ ___________________
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071...d=000000000066


---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-09-2008, 12:41 PM
Talha Khan
 
Posts: n/a
Default Re: storing transactions

You can save your transactions in an sql file and then run that file
whenever you need to run those transactions.

Regards
Talha Khan


On 10/3/06, kaspro@web.de <kaspro@web.de> wrote:
>
> Hi all,
> I've been studying the whole evening and don't seem to find an answer:
> I want to "store" transactions on the server- like view's, or, (sorry) as
> in M$ SQL Server CREATE OR REPLACE TRANSACTION xyz()........
> Is this possible with postgres or do I have to store all these at the
> client side?!
>
> Thanks heaps,
> Chris
>
> __________________________________________________ ___________________
> Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> http://smartsurfer.web.de/?mc=100071...d=000000000066
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-09-2008, 12:41 PM
Ron Johnson
 
Posts: n/a
Default Re: storing transactions

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In this context, what is a "transaction"?

On 10/04/06 14:32, Talha Khan wrote:
> You can save your transactions in an sql file and then run that file
> whenever you need to run those transactions.
>
> Regards
> Talha Khan
>
>
> On 10/3/06, *kaspro@web.de <mailto:kaspro@web.de>* <kaspro@web.de
> <mailto:kaspro@web.de>> wrote:
>
> Hi all,
> I've been studying the whole evening and don't seem to find an answer:
> I want to "store" transactions on the server- like view's, or,
> (sorry) as in M$ SQL Server CREATE OR REPLACE TRANSACTION xyz()........
> Is this possible with postgres or do I have to store all these at
> the client side?!


- --
Ron Johnson, Jr.
Jefferson LA USA

Is "common sense" really valid?
For example, it is "common sense" to white-power racists that
whites are superior to blacks, and that those with brown skins
are mud people.
However, that "common sense" is obviously wrong.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFJA+SS9HxQb37XmcRAgRHAKDf0wqR78o2ImFV+le9gH 3ETX051ACcC25X
Y5N2tk9XweRCKSwVVMQFP1Q=
=zG8a
-----END PGP SIGNATURE-----

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-09-2008, 12:41 PM
Chris Mair
 
Posts: n/a
Default Re: storing transactions


> I’ve been studying the whole evening and don’t seem to find an answer:
> I want to “store” transactions on the server- like view’s, or, (sorry) as in M$ SQL Server CREATE OR REPLACE TRANSACTION xyz()........


Of course, it's possible.
What you need is
CREATE OR REPLACE FUNCTION xyz() RETURNS trigger AS ...
then
CREATE TRIGGER ... EXECUTE PROCEDURE xyz();


Look here for an example:
http://www.postgresql.org/docs/8.1/s...l-trigger.html

Bye,
Chris.



---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

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 05:25 AM.


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