Skip site navigation (1) Skip section navigation (2)

Re: pgsql/src/backend/access/transam (xact.c)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql/src/backend/access/transam (xact.c)
Date: 2000-11-10 00:46:50
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-committers
Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> I thought there were some cases where looking up the index on pg_index
> lead to an infinite recursion.  Maybe that is gone now.

No, that behavior is still there, and the special-case code for it
is still there in catcache.c (I did try taking it out just to see
what would happen ... sure 'nuff, infinite recursion).

But the routines in indexing.c weren't bringing anything to the party,
except for a restatement of the scankeys needed for various system
indexes.  And the syscache has that same info already.  Everytime we did
a tuple fetch for a syscache, the routine in indexing.c was redoing
ScanKeyEntryInitialize() calls to recompute the same scankey information
already present in the syscache.  Waste of time, particularly the
fmgr_info() call.

I left a couple of the indexing.c routines in place because there were
hardwired calls to them in relcache.c.  But most of them aren't needed,
and they certainly aren't valuable enough to expect people to make
another one everytime they make a new syscache ...

			regards, tom lane

In response to


pgsql-committers by date

Next:From: Bruce MomjianDate: 2000-11-10 00:55:36
Subject: Re: pgsql/src/backend/access/transam (xact.c)
Previous:From: Bruce MomjianDate: 2000-11-10 00:38:44
Subject: Re: pgsql/src/backend/access/transam (xact.c)

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group