From: | "Merlin Moncure" <merlin(dot)moncure(at)rcsonline(dot)com> |
---|---|
To: | "Jim C(dot) Nasby" <decibel(at)decibel(dot)org> |
Cc: | "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: userlock changes for 8.1/8.2 |
Date: | 2005-01-25 13:19:05 |
Message-ID: | 6EE64EF3AB31D5448D0007DD34EEB3412A75E0@Herge.rcsinc.local |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> > [ yawn... ] Create a table with a "name" column, put some rows in
it,
> > lock the rows.
>
> What would guarantee that the OIDs of those rows don't conflict with
> some other OIDs in the system?
>
> BTW, this becomes a real issue if you're trying to write code that is
> meant to be incorporated into other PostgreSQL applications, which
might
> also be using user_lock. Having a text-based means to identify locks
> greatly reduces the odds of conflicting with a userlock being used by
an
> existing application.
I prefer sequences to OIDs in virtually every aspect, including this
one. However, it would be nice to have system generated unique tuple
identifier. There isn't one currently that would fit in the userlock
restriction of 48 bits. Any identifier derived from system columns
probably would take 96-128 bits (for example ctid/tableoid combo).
IMO, the current behavior is ok, meaning I don't necessarily feel that
there should be a candidate system key to use for them. However I would
discourage the use of OIDs with them.
Merlin
From | Date | Subject | |
---|---|---|---|
Next Message | Fabien COELHO | 2005-01-25 14:10:33 | Re: French site with postgresql name |
Previous Message | Christopher Browne | 2005-01-25 12:03:28 | Re: Much Ado About COUNT(*) |