Re: [HACKERS] Trouble with amcheck - Mailing list pgsql-hackers

From Stephen Frost
Subject Re: [HACKERS] Trouble with amcheck
Date
Msg-id 20170915013128.GK4628@tamriel.snowman.net
Whole thread Raw
In response to Re: [HACKERS] Trouble with amcheck  (Peter Geoghegan <pg@bowt.ie>)
Responses Re: [HACKERS] Trouble with amcheck
List pgsql-hackers
Peter, Douglas,

* Peter Geoghegan (pg@bowt.ie) wrote:
> On Thu, Sep 14, 2017 at 5:03 PM, Douglas Doole <dougdoole@gmail.com> wrote:
> > I just cloned PostgreSQL to a new machine today (Ubuntu 17.04). "make
> > install" and "make check-world" run fine but "make installcheck-world" is
> > having trouble with amcheck:
> >
> > In contrib/amcheck/results:
> >
> > CREATE EXTENSION amcheck;
> > ERROR:  could not open extension control file
> > "/home/doole/pgCommunity/install/share/postgresql/extension/amcheck.control":
> > No such file or directory
> >
> > I expect I'm missing something in the machine set up, but I'm stumped as to
> > what.
>
> I think you need to build and install contrib, so that it is available
> to the server that you're running an installcheck against. amcheck is
> alphabetically first among contrib modules that have tests, IIRC.

Yes, I was working with someone earlier today who ran into exactly the
same issue.  If you don't 'make world' or make the individual contrib
modules, then 'make installcheck-world' isn't going to work.

I do think it'd be nice if we could provide a better error message in
such a case..

Thanks!

Stephen

pgsql-hackers by date:

Previous
From: Stephen Frost
Date:
Subject: Re: [HACKERS] Process startup infrastructure is a mess
Next
From: Michael Paquier
Date:
Subject: Re: [HACKERS] Clarification in pg10's pgupgrade.html step 10(upgrading standby servers)