Re: Conditionnal validation for transaction

From: <mgould(at)isstrucksoftware(dot)net>
To: mailinglist(at)tdeo(dot)fr, pgsql-general(at)postgresql(dot)org
Subject: Re: Conditionnal validation for transaction
Date: 2012-03-19 15:36:34
Message-ID: 20120319083634.c760ddbd7c0975bc4b045766db7d895c.3b37863806.wbe@email16.secureserver.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

2. The short answer is No. I've got the same issue. I come from a
different sql that had a CREATE VARAIBLE which was good for the session.
With PostGres, I've created a sessionsettings table and a bunch of
functions to get by variable and use the value. My perceived downside
is that this causes a lot of calls to be made to get the data instead of
setting them one time (for most items). I've been told that the table
will probably be cached so it will cost very little.

Michael Gould
Intermodal Software Solutions, LLC
904-226-0978

-------- Original Message --------
Subject: [GENERAL] Conditionnal validation for transaction
From: Florent THOMAS <mailinglist(at)tdeo(dot)fr>
Date: Mon, March 19, 2012 8:28 am
To: pgsql-general(at)postgresql(dot)org

Hy all of you,

1 - Is there a way to have conditions for committing transactions like
in oracle :
http://www.scribd.com/doc/42831667/47/Validation-conditionnelle-de-transaction-62

2 - Is there a way to declare local variables for a SQL statement
without beiing in a function?

regards

Browse pgsql-general by date

  From Date Subject
Next Message Simon Riggs 2012-03-19 15:57:34 Re: Conditionnal validation for transaction
Previous Message Florent THOMAS 2012-03-19 15:28:10 Conditionnal validation for transaction