| From: | Hannu Krosing <hannu(at)skype(dot)net> |
|---|---|
| To: | Slony General <slony1-general(at)gborg(dot)postgresql(dot)org> |
| Cc: | PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: Hashagg planning bug (8.0.1) |
| Date: | 2005-05-11 09:36:44 |
| Message-ID: | 1115804205.4883.10.camel@fuji.krosing.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On T, 2005-05-10 at 13:17 -0400, Tom Lane wrote:
> Rod Taylor <pg(at)rbt(dot)ca> writes:
> > It's the = operator that Slony adds for xxid comparisons. I didn't even
> > think of changes Slony would have made.
>
> > ssdb=# select * from pg_operator where oid = 716373;
> > oprname | oprnamespace | oprowner | oprkind | oprcanhash | oprleft | oprright | oprresult | oprcom | oprnegate | oprlsortop | oprrsortop | oprltcmpop | oprgtcmpop | oprcode | oprrest | oprjoin
> > ---------+--------------+----------+---------+------------+---------+----------+-----------+--------+-----------+------------+------------+------------+------------+---------------+---------+-----------
> > = | 2200 | 588 | b | t | 716353 | 716353 | 16 | 716373 | 716372 | 716371 | 716371 | 716371 | 716369 | _ssrep.xxideq | eqsel | eqjoinsel
> > (1 row)
>
> I think you need to have a word with the Slony boys. They shouldn't be
> marking the operator oprcanhash if they aren't providing a valid hash
> opclass for the datatype. Per the manual:
Why does slony use its own transaction id type (xxid) in the first
place, why can't we just use standard xid ?
Also, perhaps we could get the getcurrentxid() function accepted in
postgresql core, maybe as pg_get_current_xid(), perhaps together with
pg_oldest_running_xid() and pg_oldest_visible_xid() for determining if
there is any benefit from running vacuum.
I think that knowing current xid is something other applications besides
slony can benefit from.
--
Hannu Krosing <hannu(at)skype(dot)net>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Hannu Krosing | 2005-05-11 10:04:27 | Re: Table Partitioning, Part 1 |
| Previous Message | Tom Lane | 2005-05-11 05:28:16 | Re: lastval() |