Re: unsigned int4 - Mailing list pgsql-general

From Bruce Momjian
Subject Re: unsigned int4
Date
Msg-id 200004040314.XAA11758@candle.pha.pa.us
Whole thread Raw
In response to unsigned int4  (Scott M Jackson <scottmo@pnl.gov>)
List pgsql-general
> I looked in the FAQs, lists, docs, etc but couldn't find an answer to my
> question.
> Is there a way to specify an unsigned int, such that it would create an
> ERROR condition if a transaction
> were to attempt to cause a particular value to go negative. This would
> be very useful to me.
> I would like to be able to use the automatic rollback feature of WORK
> blocks if a debit is generated that would
> subtract more than it's positive balance. I feel this would be helpful
> due to the concurrent nature of our bank
> application.

Oid should be unsigned int.  Not sure it is completely implemented, but
it should be.


--
  Bruce Momjian                        |  http://www.op.net/~candle
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

pgsql-general by date:

Previous
From: "Robert W. Berger"
Date:
Subject: Re: SELECT speed with LIKE
Next
From: ghoffman@ucsd.edu (Gary Hoffman)
Date:
Subject: Fetching record of the day