Re: [HACKERS] VACUUM ANALYZE Problem

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: jamesh(at)interpath(dot)com (James Hughes)
Cc: vadim(at)sable(dot)krasnoyarsk(dot)su, hackers(at)postgreSQL(dot)org, wieck(at)sapserv(dot)debis(dot)de
Subject: Re: [HACKERS] VACUUM ANALYZE Problem
Date: 1998-02-03 19:28:26
Message-ID: 199802031928.OAA21828@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>
>
>
> On Tue, 3 Feb 1998, Vadim B. Mikheev wrote:
>
> : James Hughes wrote:
> : >
> : > After poking arround some more, I found that the "vacuum analyze" is
> : > causing problems with the "<" and ">" operators. The "> 0" in the SELECT
> : > for "/d <table>" and "/dS" commands in psql cause the error.
> : >
> : > I verified that any simple query using the "<" or ">" operators fail
> : > with the same message...
> : >
> : > ERROR: fmgr_info: function 0: cache lookup failed
> : >
> : > ...after using the "vacuum analyse" command.
> : > But, only after vacuuming any relation that was created and populated by
> : > me. Vacumming system catalogs poses no problems.
> :
> : Well, I found that this problem was caused by selfuncs.c:gethilokey():
> :
> : static ScanKeyData key[3] = {
> : {0, Anum_pg_statistic_starelid, F_OIDEQ},
> : {0, Anum_pg_statistic_staattnum, F_INT2EQ},
> : {0, Anum_pg_statistic_staop, F_OIDEQ}
> :
> : : skankeys are hardcoded without call to ScanKeyEntryInitialize() =>
> : without initialization of sk_func.fn_oid required, I assume, by
> : new PL support code. Patch for this place follows...
> : One should check all places where ScanKeyData is used.
> : Jan, could you do this ?
> :
>
> THANKS! I'll patch my code and check the other instances.

James, are you going to submit a patch for all the source code?

--
Bruce Momjian
maillist(at)candle(dot)pha(dot)pa(dot)us

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1998-02-03 19:30:09 Re: [HACKERS] Re: [QUESTIONS] MySQL benchmark page
Previous Message Bruce Momjian 1998-02-03 19:26:40 Re: [HACKERS] subquery syntax broken