On Sat, Sep 09, 2000 at 11:24:00AM -0500, Jim Blandy wrote:
> > > + Every transaction is assigned a name. You can open a transaction
> > > + by name, and resume work on it, or find out the name of an existing
> > > + transaction. You can also list all the transactions currently
> > > + present in the database. */
> > Can we get a clarification on the construction of that name? Specifically,
> > what characters will be used in the name? [A-Za-z0-9] ?
> Sure, whatever you want.
> I was going to use PID.TIME, where PID and TIME are both strings of
> ASCII digits, and check for clashes. 99% of the time it'd be faster
> than a more centralized allocation algorithm. Would that be okay?
If two different machines can be in the same database (NFS-mounted or
whatever) at the same time, that's not unique enough. But you
probably don't want to allow that anyway.
Also, TIME probably needs to be more precise than seconds since epoch,
because several transactions might arrive in one second. Adding the
microsecond count from gettimeofday() should be good enough.
Received on Sat Oct 21 14:36:08 2006