Re: ctid access is slow

From: Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: ctid access is slow
Date: 2005-08-23 21:48:50
Message-ID: 430B99C2.1030507@cheapcomplexdevices.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane wrote:
>
> It wouldn't be hard that I can see (just build hash and btree opclasses
> for tid), but I'm pretty unclear on why bother. There's no use-case for
> cross-table joins involving ctid, since you couldn't usefully store a
> ctid referencing another table. The example Ilja showed was quite
> artificial and should not convince anyone to expend effort on this.
> Perhaps there are more convincing examples, but let's see one.

Would it be useful for extremely static (read-only) data?

The largest tables in my database are read-only for many months
at a time (geospatial data which the vendor updates annually).
I've occasionally wondered if storing ctids in tables that link
to these tables rather than the traditional id column would help.

(I never really bothered, though; since normal index scans were
fast enough; and any future performance optimization will probably
cache this data in memcached instead.)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Robert Treat 2005-08-23 22:29:24 Re: ctid access is slow
Previous Message Mark Probert 2005-08-23 21:45:39 [newbie] server startup