Re: Revoke "drop database" even for superusers? - Mailing list pgsql-general

From Pavan Deolasee
Subject Re: Revoke "drop database" even for superusers?
Date
Msg-id CABOikdPx-02oX+cBhs4yX3HHuPcLS2nscnii3YX5GhnLMo0yRg@mail.gmail.com
Whole thread Raw
In response to Re: Revoke "drop database" even for superusers?  (Edson Richter <edsonrichter@hotmail.com>)
Responses Re: Revoke "drop database" even for superusers?  (Guillaume Lelarge <guillaume@lelarge.info>)
List pgsql-general


On Sun, Dec 2, 2012 at 7:53 AM, Edson Richter <edsonrichter@hotmail.com> wrote:
Em 01/12/2012 22:22, Chris Angelico escreveu:

On Sun, Dec 2, 2012 at 10:20 AM, Edson Richter <edsonrichter@hotmail.com> wrote:
I've put both files in ~/deny_drop folder, and executed "make":

# LANG=C make
Makefile:13: ../../src/Makefile.global: No such file or directory
Makefile:14: /contrib/contrib-global.mk: No such file or directory
make: *** No rule to make target `/contrib/contrib-global.mk'. Stop.
The most common thing to do before running 'make' is to look for a
configure script:

$ ./configure
$ make

ChrisA


Yes, that was my first tought. But there is no configure script in the folder.
Must be something else...


While I haven't looked at the code, the error message looks very similar to what you will see while building contrib modules. So try this:

$ export USE_PGXS=1
$ export PATH=$path_to_your_pg_config$:$PATH

Set the PATH so that the correct pg_config command is used. It must come from the same installation that your server is running.

$ make clean
$ make
$ make install

Thanks,
Pavan

--
Pavan Deolasee
http://www.linkedin.com/in/pavandeolasee

pgsql-general by date:

Previous
From: Edson Richter
Date:
Subject: Re: Revoke "drop database" even for superusers?
Next
From: Jeff Janes
Date:
Subject: Re: query performance, though it was timestamps,maybe just table size?