pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: M Simms <hmmm@ewtoo.org>
To: pgsql-sql@postgresql.org
Subject: oops and a question
Date: Thu, 28 May 1998 19:56:01 +0100
Message-ID: <356DB341.7CB2@ewtoo.org> (raw)

I think I may have just sent my subscribe to the wrong address.

Oh well, never mind.

I have a question. Ive been looking through the documentation, and
cannot seem to find anything that may help me.

I am going to be running quite a large database using posrgresql in a
few weeks time, and Im just setting it up now. The program that
interfaces with the database could be called a number of times at once
(under linux, its a setuid program for the database manipulation). Now,
one of the operatins this database is going to need to do is incriment a
value in the database.

Looking through the documentation I can fnd no way to make sure that
whilst I am incrimentng a value from x to x+1, another process wont come
along and try and incriment x before the first has finished its
incriment, and thus I lose out on one count.

Any idea on how to ensure it will not happen in this way, or am I going
to have to write a separate client to handle connections on a socket
that is the ONLY process that will incriment this number?

Thanx for any help anyone can suggest

					M Simms



Message-ID: <356DB341.7CB2@ewtoo.org>
Permalink:  ../356DB341.7CB2@ewtoo.org/
Also on:    postgresql.org/message-id/356DB341.7CB2@ewtoo.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: hmmm@ewtoo.org
  Subject: Re: oops and a question
  In-Reply-To: <356DB341.7CB2@ewtoo.org>
  References: <356DB341.7CB2@ewtoo.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox