From: | Simon Riggs <simon(at)2ndQuadrant(dot)com> |
---|---|
To: | Bruce Momjian <bruce(at)momjian(dot)us> |
Cc: | pgsql-docs <pgsql-docs(at)postgresql(dot)org> |
Subject: | Re: Incorrect description of xmax and xip in functions docs |
Date: | 2008-09-08 06:56:35 |
Message-ID: | 1220856995.3913.62.camel@ebony.2ndQuadrant |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-docs |
On Sun, 2008-09-07 at 08:31 -0400, Bruce Momjian wrote:
> Simon Riggs wrote:
> >
> > On Sat, 2008-09-06 at 21:31 -0400, Bruce Momjian wrote:
> > > Applied, and attached.
> >
> > Thanks.
> >
> > > > And for txid_visible_in_snapshot() comment added:
> > > > "Function should not be used with subtransaction xids. It is possible
> > > > that this function will return a true result for a subtransaction xid
> > > > that was actually still in progress at the time of the snapshot".
> > >
> > > I think the cleaner solution is to throw an appropriate error if a
> > > subtransaction xid is used, rather than adding documentation.
> >
> > Or maybe check subtrans for it, as it really should be doing.
>
> Yea, that's what I meant. You can't be sure everyone is going to read
> the documentation but they are sure to see the function results or error
> message.
In fact, neither is possible. We cannot assume subtrans is available on
the system on which the check is made, neither can we identify which
xids are subtransactions and which are not.
The only way is to document it.
--
Simon Riggs www.2ndQuadrant.com
PostgreSQL Training, Services and Support
From | Date | Subject | |
---|---|---|---|
Next Message | Greg Sabino Mullane | 2008-09-08 20:39:07 | Re: BUG #4410: Indexes not seen right away |
Previous Message | Tom Lane | 2008-09-07 21:18:31 | Re: BUG #4410: Indexes not seen right away |