pgxs
pgxs
От:
August Zajonc <augustz@augustz.com>
Дата:
Dear pgadmin friends, A quick question. The makefile for the /contrib adminpacks doesn't appear to use pgxs? In the case of a package managed postgresql server install, using pgxs is a really nice way of doing things for a variety of reasons. Is there any thought to making the 8.1 adminpack use pgxs. Is it using it somehow that I'm missing? Thanks, - August
Re: pgxs
От:
"Dave Page" <dpage@vale-housing.co.uk>
Дата:
> -----Original Message----- > From: pgadmin-hackers-owner@postgresql.org > [mailto:pgadmin-hackers-owner@postgresql.org] On Behalf Of > August Zajonc > Sent: 21 February 2006 03:20 > To: pgadmin-hackers@postgresql.org > Subject: [pgadmin-hackers] pgxs > > Dear pgadmin friends, > > A quick question. The makefile for the /contrib adminpacks doesn't > appear to use pgxs? > > In the case of a package managed postgresql server install, using pgxs > is a really nice way of doing things for a variety of reasons. > > Is there any thought to making the 8.1 adminpack use pgxs. Is it using > it somehow that I'm missing? Y'know, I coulda sworn it was, but clearly that is not the case. Please feel free to fix it :-) Regards, Dave.
Re: pgxs
От:
August Zajonc <augustz@augustz.com>
Дата:
Dave Page wrote: >> >> >> >> A quick question. The makefile for the /contrib adminpacks doesn't >> >> appear to use pgxs? >> >> > > > > Y'know, I coulda sworn it was, but clearly that is not the case. > > > > Please feel free to fix it :-) > > It's close. This works for me, but PLEASE test, as I just did a quick pass at it. This adds PGXS as an option, so shouldn't disrupt existing uses. Feedback welcome, hope it's helpful. - August Index: Makefile =================================================================== --- Makefile (revision 5023) +++ Makefile (working copy) @@ -1,11 +1,15 @@ -subdir = contrib/admin81 -top_builddir = ../.. -include $(top_builddir)/src/Makefile.global - MODULE_big = admin81 PG_CPPFLAGS = -I$(libpq_srcdir) DATA_built = admin81.sql DOCS = README.admin81 OBJS = admin81.o +ifdef USE_PGXS +PGXS := $(shell pg_config --pgxs) +include $(PGXS) +else +subdir = contrib/admin81 +top_builddir = ../.. +include $(top_builddir)/src/Makefile.global include $(top_srcdir)/contrib/contrib-global.mk +endif Index: README.admin81 =================================================================== --- README.admin81 (revision 5023) +++ README.admin81 (working copy) @@ -11,11 +11,18 @@ ============ You will need a PostgreSQL source tree which has been properly configured -for the local system using the 'configure' script. +for the local system using the 'configure' script, or you can use PGXS +which does not require the full source tree. -Copy this directory into the /contrib directory of the PostgreSQL source tree, -and then run the following commands as a users with appropriate privileges: +To install using PGXS simply run the following commands in this directory: +make USE_PGXS=1 +make USE_PGXS=1 install + +Otherwise, copy this directory into the /contrib directory of the PostgreSQL +source tree, and then run the following commands as a user with appropriate +privileges: + make make install
Re: pgxs
От:
"Dave Page" <dpage@vale-housing.co.uk>
Дата:
> -----Original Message----- > From: August Zajonc [mailto:augustz@augustz.com] > Sent: 21 February 2006 19:51 > To: Dave Page > Cc: pgadmin-hackers@postgresql.org > Subject: Re: [pgadmin-hackers] pgxs > > Dave Page wrote: > >> >> > >> >> A quick question. The makefile for the /contrib > adminpacks doesn't > >> >> appear to use pgxs? > >> >> > > > > > > Y'know, I coulda sworn it was, but clearly that is not the case. > > > > > > Please feel free to fix it :-) > > > > > It's close. This works for me, but PLEASE test, as I just did a quick > pass at it. This adds PGXS as an option, so shouldn't disrupt > existing uses. > > Feedback welcome, hope it's helpful. Works a treat here - thanks, patch applied! Regards, Dave.