pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
FATAL:  cache lookup failed for function 1003
5+ messages / 3 participants
[nested] [flat]

* FATAL:  cache lookup failed for function 1003
@ 2007-05-23 13:41  John Summerfield <postgres@herakles.homelinux.org>
  0 siblings, 1 reply; 5+ messages in thread

From: John Summerfield @ 2007-05-23 13:41 UTC (permalink / raw)
  To: pgsql-sql

Is this the right list for this? I'm off the 'net atm and can't easily 
check.

I'm running on self-built RHEL 4.

I built from cvs this morning, and get the above error. Running grep 
over the source doesn't show anything helpful to me.
The initdb command (sans --auth) works for psql (PostgreSQL) 7.4.6 so 
I'm guessing I'm close.

What might be the problem?

+ rm -rf /home/pgtest/postgres/data
+ mkdir -p --mode=0700 /home/pgtest/postgres/data
+ initdb --auth=trust
FATAL:  cache lookup failed for function 1003
child process exited with exit code 1
initdb: removing contents of data directory "/home/pgtest/postgres/data"
The files belonging to this database system will be owned by user "pgtest".
This user must also own the server process.

The database cluster will be initialized with locale en_AU.UTF-8.
The default database encoding has accordingly been set to UTF8.

fixing permissions on existing directory /home/pgtest/postgres/data ... ok
creating subdirectories ... ok
selecting default max_connections ... 100
selecting default shared_buffers/max_fsm_pages ... 24MB/153600
creating configuration files ... ok
creating template1 database in /home/pgtest/postgres/data/base/1 ...
real    0m1.088s
user    0m0.530s
sys     0m0.523s
[pgtest@bilby ~]$




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: FATAL:  cache lookup failed for function 1003
@ 2007-05-23 20:37  Alvaro Herrera <alvherre@commandprompt.com>
  parent: John Summerfield <postgres@herakles.homelinux.org>
  0 siblings, 1 reply; 5+ messages in thread

From: Alvaro Herrera @ 2007-05-23 20:37 UTC (permalink / raw)
  To: John Summerfield <postgres@herakles.homelinux.org>; +Cc: pgsql-sql

John Summerfield wrote:
> Is this the right list for this? I'm off the 'net atm and can't easily 
> check.
> 
> I'm running on self-built RHEL 4.
> 
> I built from cvs this morning, and get the above error. Running grep 
> over the source doesn't show anything helpful to me.
> The initdb command (sans --auth) works for psql (PostgreSQL) 7.4.6 so 
> I'm guessing I'm close.
> 
> What might be the problem?

Try doing a "make distclean" and recompile.

-- 
Alvaro Herrera                        http://www.advogato.org/person/alvherre
"Hay dos momentos en la vida de un hombre en los que no debería
especular: cuando puede permitírselo y cuando no puede" (Mark Twain)



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: FATAL:  cache lookup failed for function 1003
@ 2007-05-23 23:01  John Summerfield <postgres@herakles.homelinux.org>
  parent: Alvaro Herrera <alvherre@commandprompt.com>
  0 siblings, 2 replies; 5+ messages in thread

From: John Summerfield @ 2007-05-23 23:01 UTC (permalink / raw)
  To: pgsql-sql

Alvaro Herrera wrote:
> John Summerfield wrote:
> 
>>Is this the right list for this? I'm off the 'net atm and can't easily 
>>check.
>>
>>I'm running on self-built RHEL 4.
>>
>>I built from cvs this morning, and get the above error. Running grep 
>>over the source doesn't show anything helpful to me.
>>The initdb command (sans --auth) works for psql (PostgreSQL) 7.4.6 so 
>>I'm guessing I'm close.
>>
>>What might be the problem?
> 
> 
> Try doing a "make distclean" and recompile.

Thanks Alvaro


That (combined with another cvs update) cleared the problem. Should the
distclean be necessary?







^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: FATAL:  cache lookup failed for function 1003
@ 2007-05-23 23:10  Alvaro Herrera <alvherre@commandprompt.com>
  parent: John Summerfield <postgres@herakles.homelinux.org>
  1 sibling, 0 replies; 5+ messages in thread

From: Alvaro Herrera @ 2007-05-23 23:10 UTC (permalink / raw)
  To: John Summerfield <postgres@herakles.homelinux.org>; +Cc: pgsql-sql

John Summerfield wrote:
> Alvaro Herrera wrote:
> >John Summerfield wrote:
> >
> >>Is this the right list for this? I'm off the 'net atm and can't easily 
> >>check.
> >>
> >>I'm running on self-built RHEL 4.
> >>
> >>I built from cvs this morning, and get the above error. Running grep 
> >>over the source doesn't show anything helpful to me.
> >>The initdb command (sans --auth) works for psql (PostgreSQL) 7.4.6 so 
> >>I'm guessing I'm close.
> >>
> >>What might be the problem?
> >
> >
> >Try doing a "make distclean" and recompile.
> 
> Thanks Alvaro
> 
> 
> That (combined with another cvs update) cleared the problem. Should the
> distclean be necessary?

I use configure --enable-depend which removes the requirement.
Otherwise, yes, you need to do a make distclean everytime you do an
update.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: FATAL: cache lookup failed for function 1003
@ 2007-05-23 23:16  Tom Lane <tgl@sss.pgh.pa.us>
  parent: John Summerfield <postgres@herakles.homelinux.org>
  1 sibling, 0 replies; 5+ messages in thread

From: Tom Lane @ 2007-05-23 23:16 UTC (permalink / raw)
  To: John Summerfield <postgres@herakles.homelinux.org>; +Cc: pgsql-sql

John Summerfield <postgres@herakles.homelinux.org> writes:
> That (combined with another cvs update) cleared the problem. Should the
> distclean be necessary?

Yes, unless you configured with --enable-depend during your previous
build (and I wouldn't necessarily swear that --enable-depend catches
every possible dependency).

When in doubt --- especially if your build fails but the buildfarm seems
happy --- do a distclean & rebuild before investing any intellectual
effort in figuring out the problem.

My own practice, developed after a couple of unpleasant episodes of this
sort, is to make distclean before any cvs update.  Machine cycles are
cheap, my time isn't.  I've found that I can generally overlap the
rebuild time with useful work, or at least mail-reading ...

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2007-05-23 23:16 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-05-23 13:41 FATAL:  cache lookup failed for function 1003 John Summerfield <postgres@herakles.homelinux.org>
2007-05-23 20:37 ` Alvaro Herrera <alvherre@commandprompt.com>
2007-05-23 23:01   ` John Summerfield <postgres@herakles.homelinux.org>
2007-05-23 23:10     ` Alvaro Herrera <alvherre@commandprompt.com>
2007-05-23 23:16     ` Re: FATAL: cache lookup failed for function 1003 Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox