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

Re: SearchSysCache

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: uwcssa <uwcssa(at)gmail(dot)com>
Cc: "Bruce Momjian" <bruce(at)momjian(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: SearchSysCache
Date: 2007-01-02 21:36:06
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
uwcssa <uwcssa(at)gmail(dot)com> writes:
> My program (indirectly) calls the following function twice,
> tuple = SearchSysCache(STATRELATT, ObjectIdGetDatum(relid),
> Int16GetDatum(colnum),  0, 0);
> The first time it assigns NULL to tuple, while the second time it
> assigns a valid pointer. Why is it like that?

You did an ANALYZE in between, perhaps?  That's the only operation
that puts new rows in pg_statistic.

			regards, tom lane

In response to

pgsql-hackers by date

Next:From: Bill MoranDate: 2007-01-02 21:47:19
Subject: Patch to log usage of temporary files
Previous:From: uwcssaDate: 2007-01-02 21:31:25
Subject: SearchSysCache

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