RE: Scan by TID (was RE: [HACKERS] How to add a new build-in operator)

From: "Hiroshi Inoue" <Inoue(at)tpf(dot)co(dot)jp>
To: "Bruce Momjian" <maillist(at)candle(dot)pha(dot)pa(dot)us>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "pgsql-hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: RE: Scan by TID (was RE: [HACKERS] How to add a new build-in operator)
Date: 1999-10-12 02:17:50
Message-ID: 002401bf1457$fbcd28a0$2801007e@cadzone.tpf.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> -----Original Message-----
> From: Bruce Momjian [mailto:maillist(at)candle(dot)pha(dot)pa(dot)us]
> Sent: Tuesday, October 12, 1999 4:14 AM
> To: Tom Lane
> Cc: Hiroshi Inoue; pgsql-hackers
> Subject: Re: Scan by TID (was RE: [HACKERS] How to add a new build-in
> operator)
>
>
> > "Hiroshi Inoue" <Inoue(at)tpf(dot)co(dot)jp> writes:
> > > Yes,I have done a part of my story.
> > > I would add new type of path and scan by which we are able to access
> > > tids directly.
> >
> > Yes, new path type, new plan type, probably a new access method if
> > you want to keep things clean in the executor, cost-estimation routines
> > in the planner, etc. etc.
> >
> > Looks like a lot of work, and a lot of added code bulk that will
> > have to be maintained. I haven't figured out why you think it's
> > worth it... tids are so transient that I don't see much need for
> > finding tuples by them...
>
> That's why I just suggested a more short-circuited option of snatching
> tid oids from expressions, and doing a heap_fetch directly at that point
> to avoid the index scan. Seems it could be done in just one file.
>

I have thought the way as Tom says and I have a prospect to do it.
But it would take a lot of work.

Where to snatch and return to(or exit from) planner/executor
in your story ?

Hiroshi Inoue
Inoue(at)tpf(dot)co(dot)jp(dot)

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Sergio A. Kessler 1999-10-12 03:12:25 Re: Scripts (was Re: [HACKERS] Re: [INTERFACES] Next release is 7.0(?))
Previous Message Tom Lane 1999-10-12 01:28:15 Re: [HACKERS] psql Week 2