]> git.pld-linux.org Git - packages/postgresql.git/commitdiff
- merged from DEVEL
authorwrobell <wrobell@pld-linux.org>
Wed, 19 Jan 2005 08:41:37 +0000 (08:41 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    postgresql-conf.patch -> 1.3
    postgresql-ecpg_link.patch -> 1.3
    postgresql.init -> 1.60

postgresql-conf.patch
postgresql-ecpg_link.patch
postgresql.init

index edfbb18b04d252d7d88aa2cb709df13248599800..673f5433d135b7e815746316dd05cbdcd2a808de 100644 (file)
@@ -1,27 +1,35 @@
---- postgresql-7.4beta1/src/backend/utils/misc/postgresql.conf.sample  2003-08-08 22:41:16.000000000 +0200
-+++ postgresql-7.4beta1/src/backend/utils/misc/postgresql.conf.sample.new      2003-08-08 22:40:08.000000000 +0200
-@@ -137,9 +137,9 @@
+--- postgresql-8.0.0beta2/src/backend/utils/misc/postgresql.conf.sample        2004-08-12 21:03:36.000000000 +0200
++++ postgresql-8.0.0beta2/src/backend/utils/misc/postgresql.conf.sample.new    2004-09-05 20:54:31.087203264 +0200
+@@ -164,7 +164,7 @@
  
- # - Syslog -
+ # - Where to Log -
  
--#syslog = 0                   # range 0-2; 0=stdout; 1=both; 2=syslog
+-#log_destination = 'stderr'   # Valid values are combinations of stderr,
++log_destination = 'syslog'    # Valid values are combinations of stderr,
+                                 # syslog and eventlog, depending on
+                                 # platform.
+@@ -180,8 +180,8 @@
+                             # so many kilobytes of log output.  0 to disable.
+ # These are relevant when logging to syslog:
 -#syslog_facility = 'LOCAL0'
 -#syslog_ident = 'postgres'
-+syslog = 2                    # range 0-2; 0=stdout; 1=both; 2=syslog
 +syslog_facility = 'LOCAL0'
 +syslog_ident = 'postgres'
  
- # - When to Log -
  
-@@ -170,9 +170,9 @@
+ # - When to Log -
+@@ -211,10 +211,10 @@
  #debug_print_rewritten = false
  #debug_print_plan = false
  #debug_pretty_print = false
 -#log_connections = false
 +log_connections = true
+ #log_disconnections = false
  #log_duration = false
--#log_pid = false
-+log_pid = true 
#log_statement = false
- #log_timestamp = false
- #log_hostname = false
+-#log_line_prefix = ''         # e.g. '<%u%%%d> ' 
++log_line_prefix = '<%p> '     # e.g. '<%u%%%d> ' 
                              # %u=user name %d=database name
+                               # %r=remote host and port
+                               # %p=PID %t=timestamp %i=command tag
index 9e17bdca13edcfc16aead881fa630e9175e42288..dc7b168f449e1b073088bd3fb5f594a6eb26e722 100644 (file)
@@ -1,11 +1,11 @@
---- postgresql-7.4.2-orig/src/interfaces/ecpg/compatlib/Makefile       2004-02-10 07:26:48.000000000 +0000
-+++ postgresql-7.4.2/src/interfaces/ecpg/compatlib/Makefile.orig       2004-03-11 07:20:25.000000000 +0000
-@@ -17,7 +17,7 @@
- SO_MINOR_VERSION= 1
- override CPPFLAGS := -I$(top_srcdir)/src/interfaces/ecpg/include -I$(libpq_srcdir) -I$(top_srcdir)/src/include/utils $(CPPFLAGS) $(THREAD_CPPFLAGS)
+--- postgresql-8.0.0beta2/src/interfaces/ecpg/compatlib/Makefile       2004-09-05 21:38:27.750369536 +0200
++++ postgresql-8.0.0beta2/src/interfaces/ecpg/compatlib/Makefile.new   2004-09-05 21:40:03.741776624 +0200
+@@ -20,7 +20,7 @@
+ override CPPFLAGS := -I$(top_srcdir)/src/interfaces/ecpg/include -I$(libpq_srcdir) \
+       -I$(top_srcdir)/src/include/utils $(CPPFLAGS)
+ override CFLAGS += $(PTHREAD_CFLAGS)
 -SHLIB_LINK = -L../ecpglib -lecpg -L../pgtypeslib -lpgtypes $(libpq) \
 +SHLIB_LINK = ../ecpglib/libecpg.so -L../pgtypeslib -lpgtypes $(libpq) \
-       $(filter -lintl -lssl -lcrypto -lkrb5 -lcrypt -lm, $(LIBS)) $(THREAD_LIBS)
+       $(filter -lintl -lssl -lcrypto -lkrb5 -lcrypt -lm, $(LIBS)) $(PTHREAD_LIBS)
  
  OBJS= informix.o
index b5d30c871718af477a567bbb66151c4f09b4cc20..f0a484efb936c3a41f801a506aeb65f2c70ed3f7 100644 (file)
@@ -69,13 +69,15 @@ fi
 pgstatus() {
        PG_STATUS="unknown"
        PG_PID="unknown"
-       status=`TMPDIR=/tmp su postgres -c "/usr/bin/pg_ctl -D $1 status"`
+       output=`TMPDIR=/tmp su postgres -c "/usr/bin/pg_ctl -D $1 status"`
+       status=`echo $?`
 
-       if echo "$status" | grep -q 'pg_ctl: postmaster or postgres not running'; then
+       if [ $status -eq 1 ]; then
                PG_STATUS="not running"
-       elif echo "$status" | grep -q 'pg_ctl: postmaster is running'; then
+       elif [ $status -eq 0 ]; then
                PG_STATUS="running"
-               PG_PID=`echo "$status" | sed 's/^pg_ctl:.*PID: \([0-9]\+\).*/\1/' | head -1`
+        # or maybe grab it from postmaster.pid file?
+               PG_PID=`echo "$output" | sed 's/^pg_ctl:.*PID: \([0-9]\+\).*/\1/' | head -1`
        fi
 }
 
@@ -91,6 +93,7 @@ pgstart() {
        TMPDIR=/tmp su postgres -c "/usr/bin/pg_ctl -w -D $1 start 2>&1 >/dev/null"
        sleep 1
        pgstatus "$1"
+
        if [ "$PG_STATUS" != "unknown" -a "$PG_PID" != "unknown" ]; then
                ok
        else
This page took 0.060896 seconds and 4 git commands to generate.