Permalink
Browse files

Don't mention pgxs as you cannot compile with it

  • Loading branch information...
1 parent a29a001 commit 65e19ab3f9d2acb59d1df29b1ba62bee826bb8e4 @gleu committed Apr 6, 2012
Showing with 14 additions and 17 deletions.
  1. +13 −11 INSTALL
  2. +1 −6 Makefile
View
24 INSTALL
@@ -4,22 +4,21 @@ log_functions Install
To install log_functions, you can untar the log_functions tarball
anywhere you want.
-You'll need to compile it. There are two ways to do that:
+You'll need to compile it. There is only one way to do that:
-* In the PostgreSQL source code directory, inside the contrib sub-directory
+* go into your PostgreSQL source code directory
+* go into the contrib sub-directory
+* put the log_functions source directory inside the contrib sub-directory of PostgreSQL
+* do "make", then "make install"
- Put the log_functions source directory inside the contrib subdirectory
- of PostgreSQL.
- Do "make", then "make install"
-
-* Using pgxs
-
- Do "make USE_PGXS=1", then "make USE_PGXS=1 install"
+You can also compile log_functions on Windows. You'll need to use the
+build.bat script, that you will find in the src/tools/msvc directory of the
+PostgreSQL source code directory.
Once it's installed, you'll need to configure PostgreSQL to make use of it:
-* shared_preload_libraries='log_functions'
-* custom_variable_classes
+* shared_preload_libraries = 'log_functions'
+* custom_variable_classes = 'log_functions'
There are five optional parameters that allow you to select which logs you want:
@@ -29,6 +28,9 @@ There are five optional parameters that allow you to select which logs you want:
* log_functions.log_statement_begin
* log_functions.log_statement_end
+By default, only log_functions.log_statement_begin, and
+log_functions.log_statement_begin are off. The other parameters are on.
+
Once the configuration is done, restart PostgreSQL.
You can also decide to use it only from time to time. If you want to do that,
View
@@ -3,15 +3,10 @@
MODULE_big = log_functions
OBJS = log_functions.o
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-else
subdir = contrib/log_functions
top_builddir = ../..
include $(top_builddir)/src/Makefile.global
include $(top_srcdir)/contrib/contrib-global.mk
-endif
+
override CFLAGS += -DINCLUDE_PACKAGE_SUPPORT=0 -I$(top_builddir)/src/pl/plpgsql/src

0 comments on commit 65e19ab

Please sign in to comment.