diff --git a/baselibs.conf b/baselibs.conf deleted file mode 100644 index 14c1825..0000000 --- a/baselibs.conf +++ /dev/null @@ -1,4 +0,0 @@ -libpq5 -postgresql-devel - requires -postgresql- - requires "libpq5- = " diff --git a/postgresql-9.1.3.tar.bz2 b/postgresql-9.1.3.tar.bz2 deleted file mode 100644 index ddc6b17..0000000 --- a/postgresql-9.1.3.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7a79800a624031c1d9bc9cdce73cb40050100ac50a82050cbf7bbbd16ac4d5d5 -size 15582454 diff --git a/postgresql-README.SuSE.de b/postgresql-README.SuSE.de deleted file mode 100644 index a4637c9..0000000 --- a/postgresql-README.SuSE.de +++ /dev/null @@ -1,43 +0,0 @@ -Die Konfigurationsvariablen für den PostgreSQL Server sind jetzt in -der Datei /etc/sysconfig/postgresql zu finden. Viele der -Kommandozeilenparameter können inzwischen auch in -/var/lib/pgsql/data/postgresql.conf gesetzt werden. - - -Vor einem Update der PostgreSQL Pakete, bei dem sich die Version -zumindest an der zweiten Stelle ändert (z.B. 7.3 auf 7.4) müssen Ihre -PostgreSQL Datenbanken mit dem Programm pg_dumpall gesichert -werden. Der übliche Aufruf hierfür sieht so aus: - - pg_dumpall > SAVE - -Die Sicherung sollte als Benutzer "postgres" durchgeführt werden. -Wenn die Sicherung erfolgreich war, kann der PostgreSQL-Server -angehalten werden (als root: "rcpostgresql stop"). Eventuell müssen -zusätzlich noch einige Konfigurationsdateien aus /var/lib/pgsql/data -gesichert werden, z.B. pg_hba.conf und postgresql.conf . -Achtung: seit Version 8.4 muss in pg_hba.conf "ident sameuser" durch -"ident" ersetzt werden. - -Danach können Sie die bisherigen Datenbankdateien löschen - - rm -r /var/lib/pgsql/data/* - -oder falls der Platz ausreicht verschieben, - - mv /var/lib/pgsql/data /var/lib/pgsql/data.old - -damit unter /var/lib/pgsql/data die neue Datenbankstruktur angelegt -werden kann. Diese wird beim ersten Start des neuen Datenbankservers -(als root:"rcpostgresql start") automatisch erstellt. - -Das Zurückspielen der gesicherten Datenbankinhalte und -Konfigurationsdateien muß wieder als Benutzer postgres durchgeführt -werden: - - psql template1 -f SAVE - -Wenn Sie nach eingehenden Tests sicher sind, daß nach der Migration -noch alles vorhanden ist und funktioniert, können Sie die -Sicherungsdatei und gegebenenfalls die bei Seite geschobenen alten -Datenbankdateien löschen. diff --git a/postgresql-README.SuSE.en b/postgresql-README.SuSE.en deleted file mode 100644 index 5e329ba..0000000 --- a/postgresql-README.SuSE.en +++ /dev/null @@ -1,40 +0,0 @@ -The configuration variables for the PostgreSQL server are now stored -in the /etc/sysconfig/postgresql file. Now, you can set many commando -line parameters in /var/lib/pgsql/data/postgresql.conf. - - -Before updating PostgreSQL packages whose version numbers are to -increase by at least the second decimal place or higher (for example, -6.4.x to 7.0.x or 7.1.x to 7.2.x), use the pg_dumpall program to back -up your PostgreSQL databases. A typical command for doing this is: - - pg_dumpall > SAVE - -Backups should be performed as user "postgres". Once the backup is -completed successfully, shut down the PostgreSQL server (as root: -"rcpostgresql stop"). Further configuration files in -/var/lib/pgsql/data, including pg_hba.conf and postgresql.conf, -may need to be backed up as well. -Note: since version 8.4, "ident sameuser" needs to be replaced with -"ident" in pg_hba.conf. - -Afterwards, delete the previous database files - - rm -r /var/lib/pgsql/data/* - -or, if you have enough space, move it to - - mv /var/lib/pgsql/data /var/lib/pgsql/data.old - -so that the new database structure can be created under -/var/lib/pgsql/data when you start the new database server for the -first time (as root:"rcpostgresql start"). - -The saved contents of the database and the configuration files will -then have to be played back as user postgres: - - psql template1 -f SAVE - -If, following exhaustive testing, you are certain that everything is -still available and functioning properly after the migration, delete -the backup file and the old database files. diff --git a/postgresql-atomic-builtins.patch b/postgresql-atomic-builtins.patch deleted file mode 100644 index af91ede..0000000 --- a/postgresql-atomic-builtins.patch +++ /dev/null @@ -1,173 +0,0 @@ -Description: Use gcc/intel cc builtin atomic operations for test-and-set, if available (http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/Atomic-Builtins.html). Remove the custom implementation for arm as it does not work with recent hardware (like -mthumb2). -Author: Martin Pitt - -Index: postgresql-9.1-9.1.2/configure.in -=================================================================== ---- postgresql-9.1-9.1.2.orig/configure.in 2011-12-01 22:47:20.000000000 +0100 -+++ postgresql-9.1-9.1.2/configure.in 2011-12-19 16:54:00.619535943 +0100 -@@ -1522,6 +1522,18 @@ - AC_SUBST(LDAP_LIBS_FE) - AC_SUBST(LDAP_LIBS_BE) - -+# gcc and intel compiler provide builtin functions for atomic test-and-set -+AC_MSG_CHECKING([whether the C compiler provides atomic builtins]) -+AC_TRY_LINK([], [int lock = 0; __sync_lock_test_and_set(&lock, 1); __sync_lock_release(&lock);], -+ [have_cc_atomics="yes"], -+ [have_cc_atomics="no"] -+) -+if test "$have_cc_atomics" = yes; then -+ AC_MSG_RESULT(yes) -+ AC_DEFINE(HAVE_CC_ATOMICS, 1, [Define to 1 if compiler provides atomic builtins]) -+else -+ AC_MSG_RESULT(no) -+fi - - # This test makes sure that run tests work at all. Sometimes a shared - # library is found by the linker, but the runtime linker can't find it. -Index: postgresql-9.1-9.1.2/configure -=================================================================== ---- postgresql-9.1-9.1.2.orig/configure 2011-12-01 22:47:20.000000000 +0100 -+++ postgresql-9.1-9.1.2/configure 2011-12-19 16:54:00.635535943 +0100 -@@ -23602,6 +23602,69 @@ - - - -+# gcc and intel compiler provide builtin functions for atomic test-and-set -+{ $as_echo "$as_me:$LINENO: checking whether the C compiler provides atomic builtins" >&5 -+$as_echo_n "checking whether the C compiler provides atomic builtins... " >&6; } -+cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+ -+int -+main () -+{ -+int lock = 0; __sync_lock_test_and_set(&lock, 1); __sync_lock_release(&lock); -+ ; -+ return 0; -+} -+_ACEOF -+rm -f conftest.$ac_objext conftest$ac_exeext -+if { (ac_try="$ac_link" -+case "(($ac_try" in -+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; -+ *) ac_try_echo=$ac_try;; -+esac -+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -+$as_echo "$ac_try_echo") >&5 -+ (eval "$ac_link") 2>conftest.er1 -+ ac_status=$? -+ grep -v '^ *+' conftest.er1 >conftest.err -+ rm -f conftest.er1 -+ cat conftest.err >&5 -+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 -+ (exit $ac_status); } && { -+ test -z "$ac_c_werror_flag" || -+ test ! -s conftest.err -+ } && test -s conftest$ac_exeext && { -+ test "$cross_compiling" = yes || -+ $as_test_x conftest$ac_exeext -+ }; then -+ have_cc_atomics="yes" -+else -+ $as_echo "$as_me: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+ have_cc_atomics="no" -+ -+fi -+ -+rm -rf conftest.dSYM -+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ -+ conftest$ac_exeext conftest.$ac_ext -+if test "$have_cc_atomics" = yes; then -+ { $as_echo "$as_me:$LINENO: result: yes" >&5 -+$as_echo "yes" >&6; } -+ -+cat >>confdefs.h <<\_ACEOF -+#define HAVE_CC_ATOMICS 1 -+_ACEOF -+ -+else -+ { $as_echo "$as_me:$LINENO: result: no" >&5 -+$as_echo "no" >&6; } -+fi - - # This test makes sure that run tests work at all. Sometimes a shared - # library is found by the linker, but the runtime linker can't find it. -Index: postgresql-9.1-9.1.2/src/include/pg_config.h.in -=================================================================== ---- postgresql-9.1-9.1.2.orig/src/include/pg_config.h.in 2011-12-01 22:47:20.000000000 +0100 -+++ postgresql-9.1-9.1.2/src/include/pg_config.h.in 2011-12-19 16:54:00.639535943 +0100 -@@ -87,6 +87,9 @@ - /* Define to 1 if you have the `cbrt' function. */ - #undef HAVE_CBRT - -+/* Define to 1 if compiler provides atomic builtins */ -+#undef HAVE_CC_ATOMICS -+ - /* Define to 1 if you have the `class' function. */ - #undef HAVE_CLASS - -Index: postgresql-9.1-9.1.2/src/include/storage/s_lock.h -=================================================================== ---- postgresql-9.1-9.1.2.orig/src/include/storage/s_lock.h 2011-12-01 22:47:20.000000000 +0100 -+++ postgresql-9.1-9.1.2/src/include/storage/s_lock.h 2011-12-19 16:56:31.135541667 +0100 -@@ -252,29 +252,6 @@ - #endif /* __ia64__ || __ia64 */ - - --#if defined(__arm__) || defined(__arm) --#define HAS_TEST_AND_SET -- --typedef unsigned char slock_t; -- --#define TAS(lock) tas(lock) -- --static __inline__ int --tas(volatile slock_t *lock) --{ -- register slock_t _res = 1; -- -- __asm__ __volatile__( -- " swpb %0, %0, [%2] \n" --: "+r"(_res), "+m"(*lock) --: "r"(lock) --: "memory"); -- return (int) _res; --} -- --#endif /* __arm__ */ -- -- - /* S/390 and S/390x Linux (32- and 64-bit zSeries) */ - #if defined(__s390__) || defined(__s390x__) - #define HAS_TEST_AND_SET -@@ -859,6 +836,24 @@ - - #endif /* !defined(HAS_TEST_AND_SET) */ - -+/************************************************************************* -+ * Use compiler provided atomic builtins if available (in particular, gcc and -+ * Intel provide them for many platforms). -+ */ -+#if !defined(HAS_TEST_AND_SET) && HAVE_CC_ATOMICS -+#define HAS_TEST_AND_SET -+typedef int slock_t; -+ -+#define TAS(lock) tas(lock) -+#define S_UNLOCK(lock) __sync_lock_release(lock) -+ -+static __inline__ int -+tas(volatile slock_t *lock) -+{ -+ return __sync_lock_test_and_set (lock, 1); -+} -+#endif -+ - - /* Blow up if we didn't have any way to do spinlocks */ - #ifndef HAS_TEST_AND_SET diff --git a/postgresql-bashprofile b/postgresql-bashprofile deleted file mode 100644 index 289318f..0000000 --- a/postgresql-bashprofile +++ /dev/null @@ -1,6 +0,0 @@ - -# Get PGDATA from /etc/sysconfig/postgresql -if test -f /etc/sysconfig/postgresql; then - eval eval $(sed -n '/^POSTGRES_DATADIR=/s//PGDATA=/p' /etc/sysconfig/postgresql) - export PGDATA -fi diff --git a/postgresql-conf.patch b/postgresql-conf.patch deleted file mode 100644 index a76de05..0000000 --- a/postgresql-conf.patch +++ /dev/null @@ -1,30 +0,0 @@ -Index: src/backend/utils/misc/postgresql.conf.sample -=================================================================== ---- src/backend/utils/misc/postgresql.conf.sample.orig -+++ src/backend/utils/misc/postgresql.conf.sample -@@ -273,13 +273,13 @@ - - # - Where to Log - - --#log_destination = 'stderr' # Valid values are combinations of -+log_destination = 'stderr' # Valid values are combinations of - # stderr, csvlog, syslog, and eventlog, - # depending on platform. csvlog - # requires logging_collector to be on. - - # This is used when logging to stderr: --#logging_collector = off # Enable capturing of stderr and csvlog -+logging_collector = on # Enable capturing of stderr and csvlog - # into log files. Required to be on for - # csvlogs. - # (change requires restart) -@@ -374,7 +374,8 @@ - #log_duration = off - #log_error_verbosity = default # terse, default, or verbose messages - #log_hostname = off --#log_line_prefix = '' # special values: -+log_line_prefix = '%t %d %u ' -+ # special values: - # %a = application name - # %u = user name - # %d = database name diff --git a/postgresql-firewall b/postgresql-firewall deleted file mode 100644 index 2391bdc..0000000 --- a/postgresql-firewall +++ /dev/null @@ -1,4 +0,0 @@ -## Name: PostgreSQL Server -## Description: Opens TCP port 5432 to allow remote connections to the PostgreSQL server. - -TCP="5432" diff --git a/postgresql-init b/postgresql-init deleted file mode 100644 index 8c3b99b..0000000 --- a/postgresql-init +++ /dev/null @@ -1,177 +0,0 @@ -#!/bin/sh -# Copyright (c) 1995-2004 SUSE Linux AG, Nuernberg, Germany. -# All rights reserved. -# -# Author: Kurt Garloff -# Please send feedback to http://www.suse.de/feedback/ -# -# /etc/init.d/postgresql -# and its symbolic link -# /(usr/)sbin/rcpostgresql -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -# -# System startup script for PostgreSQL -# -# LSB compatible service control script; see http://www.linuxbase.org/spec/ -# -### BEGIN INIT INFO -# Provides: postgresql -# Required-Start: $network $remote_fs -# Required-Stop: $network $remote_fs -# Default-Start: 3 5 -# Default-Stop: -# Description: Start the PostgreSQL master daemon -### END INIT INFO - -# Source SuSE config -PG_SYSCONFIG=/etc/sysconfig/postgresql -test -f $PG_SYSCONFIG && . $PG_SYSCONFIG - -# Shell functions sourced from /etc/rc.status: -# rc_check check and set local and overall rc status -# rc_status check and set local and overall rc status -# rc_status -v ditto but be verbose in local rc status -# rc_status -v -r ditto and clear the local rc status -# rc_failed set local and overall rc status to failed -# rc_reset clear local rc status (overall remains) -# rc_exit exit appropriate to overall rc status -. /etc/rc.status - -eval DATADIR=${POSTGRES_DATADIR:-~postgres/data} -OPTIONS=${POSTGRES_OPTIONS} -H=/usr/bin/postmaster -test -x $H || exit 5 -PIDFILE=$DATADIR/postmaster.pid - -# The echo return value for success (defined in /etc/rc.config). -rc_reset - -# Return values acc. to LSB for all commands but status: -# 0 - success -# 1 - generic or unspecified error -# 2 - invalid or excess argument(s) -# 3 - unimplemented feature (e.g. "reload") -# 4 - insufficient privilege -# 5 - program is not installed -# 6 - program is not configured -# 7 - program is not running -# -# Note that starting an already running service, stopping -# or restarting a not-running service as well as the restart -# with force-reload (in case signalling is not supported) are -# considered a success. - -pg_ctl () { - CMD="/usr/bin/pg_ctl $@" - su - postgres -c "LD_LIBRARY_PATH=$LD_LIBRARY_PATH $CMD" -} - -case "$1" in - start) - if [ ! -f $DATADIR/PG_VERSION ]; then - echo -n "Initializing the PostgreSQL database at location ${DATADIR}" - LANG_SYSCONFIG=/etc/sysconfig/language - test -f "$LANG_SYSCONFIG" && . $LANG_SYSCONFIG - LANG=${POSTGRES_LANG:-$RC_LANG} - INITDB=/usr/bin/initdb - install -d -o postgres -g postgres -m 700 ${DATADIR} && su - postgres -c \ - "$INITDB --locale=$LANG --auth=\"ident\" $DATADIR &> initlog" || - rc_failed - rc_status -v - rc_status || { - echo "You can find a log of the initialisation in ~postgres/initlog ." - rc_exit - } - fi - echo -n "Starting PostgreSQL" - ## remove old socket and pidfile, if they exist - ## and no daemon is running. - checkproc -p $PIDFILE $H || { - rm -f /tmp/.s.PGSQL.* $PIDFILE - } - pg_ctl start -s -w -p $H -D $DATADIR -o "\"$OPTIONS\"" - rc_status -v - ;; - - stop) - echo -n "Shutting down PostgreSQL" - if pg_ctl status -s -D $DATADIR >/dev/null - then - pg_ctl stop -s -D $DATADIR -m fast - else - rc_failed 0 - fi - rc_status -v - ;; - - try-restart) - ## Stop the service and if this succeeds (i.e. the - ## service was running before), start it again. - ## Note: try-restart is not (yet) part of LSB (as of 0.7.5) - $0 status && $0 restart - ;; - - restart) - ## Stop the service and regardless of whether it was - ## running or not, start it again. - $0 stop - $0 start - rc_status - ;; - - force-reload | reload) - echo -n "Reloading configuration for PostgreSQL" - pg_ctl reload -s -D $DATADIR - rc_status -v - ;; - - status) - echo -n "Checking for PostgreSQL: " - ## Check status with checkproc(8), if process is running - ## checkproc will return with exit status 0. - - # Status has a slightly different for the status command: - # 0 - service running - # 1 - service dead, but /var/run/ pid file exists - # 2 - service dead, but /var/lock/ lock file exists - # 3 - service not running - - # NOTE: checkproc returns LSB compliant status values. - pg_ctl status -s -D $DATADIR >/dev/null - if ! pg_ctl status -s -D $DATADIR >/dev/null - then - if test -f $DATADIR/postmaster.pid; then - rc_failed 1 - else - rc_failed 3 - fi - fi - rc_status -v - ;; - - probe) - rc_failed 3 - rc_status -v - ;; - - *) - echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}" - exit 1 - ;; -esac - -# Inform the caller not only verbosely and set an exit status. -rc_exit diff --git a/postgresql-libs.changes b/postgresql-libs.changes deleted file mode 100644 index e8343e9..0000000 --- a/postgresql-libs.changes +++ /dev/null @@ -1,1931 +0,0 @@ -------------------------------------------------------------------- -Mon Mar 12 08:54:39 UTC 2012 - max@suse.com - -- Security and bugfix release 9.1.3: - * Require execute permission on the trigger function for "CREATE - TRIGGER" (CVE-2012-0866, bnc#749299). - * Remove arbitrary limitation on length of common name in SSL - certificates (CVE-2012-0867, bnc#749301). - * Convert newlines to spaces in names written in pg_dump - comments (CVE-2012-0868, bnc#749303). - * See the release notes for the rest of the changes: - http://www.postgresql.org/docs/9.1/static/release.html - /usr/share/doc/packages/postgresql/HISTORY - -------------------------------------------------------------------- -Wed Jan 25 17:36:50 CET 2012 - mhrusecky@suse.cz - -- fixed build for arm - - using atomic builtins from gcc - - patch taken from upstream mailing list - -------------------------------------------------------------------- -Fri Dec 9 17:37:40 UTC 2011 - darin@darins.net - -- New version 9.1.2. For detailed release notes see: - http://www.postgresql.org/docs/9.1/static/release-9-1-2.html - -------------------------------------------------------------------- -Wed Oct 5 16:41:31 UTC 2011 - max@suse.com - -- New version 9.1.1. For detailed release notes, see: - http://www.postgresql.org/docs/9.1/static/release-9-1-1.html -- Stop using deprecated silent_mode in default config. -- postgresql-perl514.patch is no longer needed. -- Use %_smp_mflags for parallel make -- Keep the rpath when linking plperl [bnc#578053]. - -------------------------------------------------------------------- -Fri Sep 16 17:17:08 UTC 2011 - jengelh@medozas.de - -- Add postgresql-devel to baselibs - -------------------------------------------------------------------- -Wed Jun 8 16:40:03 UTC 2011 - max@novell.com - -- Revert the postgresql-libs package split for SLE in preparation - of submitting the package to SLE11-SP1. - -------------------------------------------------------------------- -Wed May 25 13:06:16 UTC 2011 - max@novell.com - -- Fix file name of last added patch and remove overlong comment. - -------------------------------------------------------------------- -Wed May 25 08:06:44 UTC 2011 - idonmez@novell.com - -- Add postgresql-9.0.4-perl514.patch: For Perl 5.14 GvCV(sv) is no - longer an lvalue and needs to be replaced by GvCV_set(sv, value) - -------------------------------------------------------------------- -Thu Apr 21 10:06:45 UTC 2011 - max@novell.com - -- Bugfix release: 9.0.4: - * This update contains a critical fix to the pg_upgrade utility - which prevents significant downtime issues. Do not use - pg_upgrade without installing this update first. - http://wiki.postgresql.org/wiki/20110408pg_upgrade_fix - * change SQLSTATE for Hot Standby warnings - * prevent bgwriter hang during recovery - * prevent recursive composite type creation - * disallow dropping tables whose triggers are still pending - * allow use of "replication" as a user name - * prevent a crash during GEQO planning - * improve join plans for tables with missing statistics - * fix error with SELECT FOR UPDATE in a subselect - * close PL/python array slice memory leak - * allow SSL connections for users with no home directory -- http://www.postgresql.org/docs/9.0/static/release-9-0-4.html - -------------------------------------------------------------------- -Fri Apr 1 10:23:05 UTC 2011 - nkrinner@novell.com - -- enabled --with-ossp-uuid - -------------------------------------------------------------------- -Fri Mar 4 15:02:11 UTC 2011 - max@novell.com - -- Fix the fix of the fix for the successors of postgresql-libs. - -------------------------------------------------------------------- -Mon Feb 21 01:09:08 CET 2011 - ro@suse.de - -- provide postgresql-libs in the specfile that actually builds - the libs package - -------------------------------------------------------------------- -Sat Feb 19 20:11:07 UTC 2011 - coolo@novell.com - -- fix update of libs - -------------------------------------------------------------------- -Thu Feb 17 11:38:42 UTC 2011 - max@novell.com - -- Move all of pgxs into the devel package to fix build of server - extensions. - -------------------------------------------------------------------- -Wed Feb 16 19:10:54 UTC 2011 - max@novell.com - -- Move pg_config from -server to -devel to fix build of certain - client apps and language bindings, but using pg_config on the - client side is still considered broken, because it tells what - got linked into the server binary not what got linked into libpq. - -------------------------------------------------------------------- -Tue Feb 8 18:23:22 UTC 2011 - max@novell.com - -- Remove unneeded PreReq from postgresql on postgresql-libs. - -------------------------------------------------------------------- -Fri Feb 4 11:40:12 UTC 2011 - max@suse.de - -- New version: 9.0.3. For the complete release notes, see - http://www.postgresql.org/docs/9.0/static/release.html -- Build libs and devel separate from the main package. -- Build the PL subpackages as part of the main package. -- Have separate packages for libpq and libecpg. -- Generate the main and lib spec files from postgresql.spec.in. - -------------------------------------------------------------------- -Wed Dec 8 13:00:12 UTC 2010 - max@novell.com - -- Fix LSB conformance of the init script (bnc#658014). - -------------------------------------------------------------------- -Thu Oct 7 17:34:57 CEST 2010 - max@suse.de - -- Security and bugfix release 8.4.5 (bnc#643771): - - * Use a separate interpreter for each calling SQL userid in - PL/Perl and PL/Tcl (CVE-2010-3433). - - * Prevent possible crashes in pg_get_expr() by disallowing it - from being called with an argument that is not one of the - system catalog columns it's intended to be used with. - - * Fix incorrect placement of placeholder evaluation. - - * Fix possible duplicate scans of UNION ALL member relations. - - * Fix "cannot handle unplanned sub-select" error. - - * Fix mishandling of whole-row Vars that reference a view or - sub-select and appear within a nested sub-select. - - * Fix mishandling of cross-type IN comparisons. - - * Fix computation of ANALYZE statistics for tsvector columns. - - * Improve planner's estimate of memory used by array_agg(), - string_agg(), and similar aggregate functions. - - * Fix failure to mark cached plans as transient. - - * Reduce PANIC to ERROR in some occasionally-reported btree - failure cases, and provide additional detail in the resulting - error messages. - - * Fix incorrect search logic for partial-match queries with GIN - indexes. - - * Prevent show_session_authorization() from crashing within - autovacuum processes. - - * Defend against functions returning setof record where not all - the returned rows are actually of the same rowtype. - - * Fix possible corruption of pending trigger event lists during - subtransaction rollback. - - * Fix possible failure when hashing a pass-by-reference function - result. - - * Improve merge join's handling of NULLs in the join columns. - - * Take care to fsync the contents of lockfiles (both - postmaster.pid and the socket lockfile) while writing them. - - * Avoid recursion while assigning XIDs to heavily-nested - subtransactions. - - * Avoid holding open old WAL segments in the walwriter process. - - * Fix log_line_prefix's %i escape, which could produce junk - early in backend startup. - - * Prevent misinterpretation of partially-specified relation - options for TOAST tables. - - * Fix inheritance count tracking in ALTER TABLE ... ADD - CONSTRAINT. - - * Fix possible data corruption in ALTER TABLE ... SET TABLESPACE - when archiving is enabled. - - * Allow CREATE DATABASE and ALTER DATABASE ... SET TABLESPACE to - be interrupted by query-cancel. - - * Improve CREATE INDEX's checking of whether proposed index - expressions are immutable. - - * Fix REASSIGN OWNED to handle operator classes and families. - - * Fix possible core dump when comparing two empty tsquery values. - - * Fix LIKE's handling of patterns containing % followed by _ - - * Re-allow input of Julian dates prior to 0001-01-01 AD. - - * Fix PL/pgSQL to throw an error, not crash, if a cursor is - closed within a FOR loop that is iterating over that cursor. - - * In PL/Python, defend against null pointer results from - PyCObject_AsVoidPtr and PyCObject_FromVoidPtr - - * In libpq, fix full SSL certificate verification for the case - where both host and hostaddr are specified. - - * Make psql recognize DISCARD ALL as a command that should not - be encased in a transaction block in autocommit-off mode. - - * Fix some issues in pg_dump's handling of SQL/MED objects. - - * Improve pg_dump and pg_restore's handling of non-seekable - archive files. This is important for proper functioning of - parallel restore. - - * Improve parallel pg_restore's ability to cope with selective - restore (-L option). - - * Fix ecpg to process data from RETURNING clauses correctly. - - * Fix some memory leaks in ecpg. - - * Improve contrib/dblink's handling of tables containing dropped - columns. - - * Fix connection leak after "duplicate connection name" errors - in contrib/dblink. - - * Fix contrib/dblink to handle connection names longer than 62 - bytes correctly. - - * Add hstore(text, text) function to contrib/hstore. - -------------------------------------------------------------------- -Thu May 27 10:52:05 CEST 2010 - max@suse.de - -- Security and bugfix release 8.4.4: - - * Enforce restrictions in plperl using an opmask applied to the - whole interpreter, instead of using Safe.pm. Recent - developments have convinced us that Safe.pm is too insecure to - rely on for making plperl trustable. This change removes use of - Safe.pm altogether, in favor of using a separate interpreter - with an opcode mask that is always applied. Pleasant side - effects of the change include that it is now possible to use - Perl's strict pragma in a natural way in plperl, and that - Perl's $a and $b variables work as expected in sort routines, - and that function compilation is significantly - faster. (CVE-2010-1169) - - * Prevent PL/Tcl from executing untrustworthy code from - pltcl_modules. PL/Tcl's feature for autoloading Tcl code from - a database table could be exploited for trojan-horse attacks, - because there was no restriction on who could create or insert - into that table. This change disables the feature unless - pltcl_modules is owned by a superuser. (However, the - permissions on the table are not checked, so installations that - really need a less-than-secure modules table can still grant - suitable privileges to trusted non-superusers.) Also, prevent - loading code into the unrestricted "normal" Tcl interpreter - unless we are really going to execute a pltclu - function. (CVE-2010-1170) - - * Fix data corruption during WAL replay of ALTER ... SET - TABLESPACE. When archive_mode is on, ALTER ... SET TABLESPACE - generates a WAL record whose replay logic was incorrect. It - could write the data to the wrong place, leading to - possibly-unrecoverable data corruption. Data corruption would - be observed on standby slaves, and could occur on the master as - well if a database crash and recovery occurred after committing - the ALTER and before the next checkpoint. - - * Fix possible crash if a cache reset message is received during - rebuild of a relcache entry. This error was introduced in 8.4.3 - while fixing a related failure. - - * Apply per-function GUC settings while running the language - validator for the function. - - * This avoids failures if the function's code is invalid without - the setting; an example is that SQL functions may not parse if - the search_path is not correct. - - * Do constraint exclusion for inherited UPDATE and DELETE target - tables when constraint_exclusion = partition. Due to an - oversight, this setting previously only caused constraint - exclusion to be checked in SELECT commands. - - * Do not allow an unprivileged user to reset superuser-only - parameter settings. Previously, if an unprivileged user ran - ALTER USER ... RESET ALL for himself, or ALTER DATABASE - ... RESET ALL for a database he owns, this would remove all - special parameter settings for the user or database, even ones - that are only supposed to be changeable by a superuser. Now, - the ALTER will only remove the parameters that the user has - permission to change. - - * Avoid possible crash during backend shutdown if shutdown occurs - when a CONTEXT addition would be made to log entries. In some - cases the context-printing function would fail because the - current transaction had already been rolled back when it came - time to print a log message. - - * Fix erroneous handling of %r parameter in recovery_end_command. - The value always came out zero. - - * Ensure the archiver process responds to changes in - archive_command as soon as possible. - - * Fix pl/pgsql's CASE statement to not fail when the case - expression is a query that returns no rows. - - * Update pl/perl's ppport.h for modern Perl versions. - - * Fix assorted memory leaks in pl/python. - - * Handle empty-string connect parameters properly in ecpg. - - * Prevent infinite recursion in psql when expanding a variable - that refers to itself. - - * Fix psql's \copy to not add spaces around a dot within \copy - (select ...). Addition of spaces around the decimal point in a - numeric literal would result in a syntax error. - - * Avoid formatting failure in psql when running in a locale - context that doesn't match the client_encoding. - - * Fix unnecessary "GIN indexes do not support whole-index scans" - errors for unsatisfiable queries using contrib/intarray - operators. - - * Ensure that contrib/pgstattuple functions respond to cancel - interrupts promptly. - - * Make server startup deal properly with the case that shmget() - returns EINVAL for an existing shared memory segment. - - This behavior has been observed on BSD-derived kernels - including OS X. It resulted in an entirely-misleading startup - failure complaining that the shared memory request size was too - large. - -------------------------------------------------------------------- -Thu Apr 29 11:56:05 CEST 2010 - max@suse.de - -- Use %configure to pick up the default directories (bnc#600616). - -------------------------------------------------------------------- -Tue Mar 16 15:27:42 CET 2010 - max@suse.de - -- Security and bugfix release 8.4.3. - -------------------------------------------------------------------- -Thu Mar 11 18:23:38 CET 2010 - max@suse.de - -- Disable GSSAPI, XML, kerberos and make check in OBS for SLES9. - -------------------------------------------------------------------- -Thu Mar 11 17:57:38 CET 2010 - max@suse.de - -- Fix build for SLES9 - -------------------------------------------------------------------- -Tue Feb 9 14:42:29 CET 2010 - max@suse.de - -- Fix package descriptions. - -------------------------------------------------------------------- -Wed Dec 16 16:19:20 CET 2009 - max@suse.de - -- Security and bugfix release 8.4.2: - - * CVE-2009-4136: Protect against indirect security threats - caused by index functions changing session-local state. This - change prevents allegedly-immutable index functions from - possibly subverting a superuser's session. - - * CVE-2009-4034: Reject SSL certificates containing an embedded - null byte in the common name (CN) field. This prevents - unintended matching of a certificate to a server or client - name during SSL validation. - - * Fix hash index corruption. The 8.4 change that made hash - indexes keep entries sorted by hash value failed to update the - bucket splitting and compaction routines to preserve the - ordering. So application of either of those operations could - lead to permanent corruption of an index, in the sense that - searches might fail to find entries that are present. To deal - with this, it is recommended to REINDEX any hash indexes you - may have after installing this update. - - * Fix possible crash during backend-startup-time cache - initialization - - * Avoid crash on empty thesaurus dictionary - - * Prevent signals from interrupting VACUUM at unsafe times. This - fix prevents a PANIC if a VACUUM FULL is cancelled after it's - already committed its tuple movements, as well as transient - errors if a plain VACUUM is interrupted after having truncated - the table. - - * Fix possible crash due to integer overflow in hash table size - calculation. This could occur with extremely large planner - estimates for the size of a hashjoin's result. - - * Fix crash if a DROP is attempted on an internally-dependent - object. - - * Fix very rare crash in inet/cidr comparisons. - - * Ensure that shared tuple-level locks held by prepared - transactions are not ignored. - - * Fix premature drop of temporary files used for a cursor that is - accessed within a subtransaction. - - * Fix memory leak in syslogger process when rotating to a new CSV - logfile. - - * Fix memory leak in postmaster when re-parsing "pg_hba.conf". - - * Make FOR UPDATE/SHARE in the primary query not propagate into - WITH queries. - - * Fix bug with a WITH RECURSIVE query immediately inside another - one. - - * Fix concurrency bug in hash indexes. Concurrent insertions - could cause index scans to transiently report wrong results. - - * Fix incorrect logic for GiST index page splits, when the split - depends on a non-first column of the index. - - * Fix wrong search results for a multi-column GIN index with - fastupdate enabled. - - * Fix bugs in WAL entry creation for GIN indexes. These bugs were - masked when full_page_writes was on, but with it off a WAL - replay failure was certain if a crash occurred before the next - checkpoint. - - * Don't error out if recycling or removing an old WAL file fails - at the end of checkpoint. It's better to treat the problem as - non-fatal and allow the checkpoint to complete. Future - checkpoints will retry the removal. Such problems are not - expected in normal operation, but have been seen to be caused - by misdesigned Windows anti-virus and backup software. - - * Ensure WAL files aren't repeatedly archived on Windows. This is - another symptom that could happen if some other process - interfered with deletion of a no-longer-needed file. - - * Fix PAM password processing to be more robust. The previous - code is known to fail with the combination of the Linux - pam_krb5 PAM module with Microsoft Active Directory as the - domain controller. It might have problems elsewhere too, since - it was making unjustified assumptions about what arguments the - PAM stack would pass to it. - - * Raise the maximum authentication token (Kerberos ticket) size - in GSSAPI and SSPI authentication methods. While the old - 2000-byte limit was more than enough for Unix Kerberos - implementations, tickets issued by Windows Domain Controllers - can be much larger. - - * Ensure that domain constraints are enforced in constructs like - ARRAY[...]::domain, where the domain is over an array type. - - * Fix foreign-key logic for some cases involving composite-type - columns as foreign keys. - - * Ensure that a cursor's snapshot is not modified after it is - created. This could lead to a cursor delivering wrong results - if later operations in the same transaction modify the data the - cursor is supposed to return. - - * Fix CREATE TABLE to properly merge default expressions coming - from different inheritance parent tables. This used to work but - was broken in 8.4. - - * Re-enable collection of access statistics for sequences. This - used to work but was broken in 8.3. - - * Fix processing of ownership dependencies during CREATE OR REPLACE - FUNCTION. - - * Fix incorrect handling of WHERE "x"="x" conditions. In some cases - these could get ignored as redundant, but they aren't -- they're - equivalent to "x" IS NOT NULL. - - * Fix incorrect plan construction when using hash aggregation to - implement DISTINCT for textually identical volatile - expressions. - - * Fix Assert failure for a volatile SELECT DISTINCT ON expression. - - * Fix ts_stat() to not fail on an empty tsvector value. - - * Make text search parser accept underscores in XML attributes. - - * Fix encoding handling in xml binary input. If the XML header - doesn't specify an encoding, we now assume UTF-8 by default; - the previous handling was inconsistent. - - * Fix bug with calling plperl from plperlu or vice versa. An - error exit from the inner function could result in crashes due - to failure to re-select the correct Perl interpreter for the - outer function. - - * Fix session-lifespan memory leak when a PL/Perl function is - redefined. - - * Ensure that Perl arrays are properly converted to PostgreSQL - arrays when returned by a set-returning PL/Perl function. This - worked correctly already for non-set-returning functions. - - * Fix rare crash in exception processing in PL/Python. - - * Fix ecpg problem with comments in DECLARE CURSOR statements. - - * Fix ecpg to not treat recently-added keywords as reserved - words. This affected the keywords CALLED, CATALOG, DEFINER, - ENUM, FOLLOWING, INVOKER, OPTIONS, PARTITION, PRECEDING, RANGE, - SECURITY, SERVER, UNBOUNDED, and WRAPPER. - - * Re-allow regular expression special characters in psql's \df - function name parameter. - - * In "contrib/pg_standby", disable triggering failover with a - signal on Windows. This never did anything useful, because - Windows doesn't have Unix-style signals, but recent changes - made it actually crash. - - * Put FREEZE and VERBOSE options in the right order in the VACUUM - command that "contrib/vacuumdb" produces. - - * Fix possible leak of connections when "contrib/dblink" - encounters an error. - - * Ensure psql's flex module is compiled with the correct system - header definitions. This fixes build failures on platforms - where --enable-largefile causes incompatible changes in the - generated code. - - * Make the postmaster ignore any application_name parameter in - connection request packets, to improve compatibility with - future libpq versions. - - * Update the timezone abbreviation files to match current reality - This includes adding IDT to the default timezone abbreviation - set. - -------------------------------------------------------------------- -Wed Dec 16 10:46:01 CET 2009 - jengelh@medozas.de - -- package documentation as noarch - -------------------------------------------------------------------- -Mon Dec 14 16:08:29 CET 2009 - jengelh@medozas.de - -- add baselibs.conf as a source - -------------------------------------------------------------------- -Wed Sep 16 18:00:20 UTC 2009 - crrodriguez@novell.com - -- use find_lang to package language files correctly - -------------------------------------------------------------------- -Thu Sep 10 12:06:36 CEST 2009 - max@suse.de - -- Security and bugfix release 8.4.1: - - * Fix WAL page header initialization at the end of archive - recovery. This could lead to failure to process the WAL in a - subsequent archive recovery. - * Fix "cannot make new WAL entries during recovery" error. - * Fix problem that could make expired rows visible after a crash. - This bug involved a page status bit potentially not being set - correctly after a server crash. - * Disallow RESET ROLE and RESET SESSION AUTHORIZATION inside - security-definer functions. This covers a case that was missed - in the previous patch that disallowed SET ROLE and SET SESSION - AUTHORIZATION inside security-definer functions. - (See CVE-2007-6600) - * Make LOAD of an already-loaded loadable module into a no-op. - * Formerly, LOAD would attempt to unload and re-load the module, - but this is unsafe and not all that useful. - * Make window function PARTITION BY and ORDER BY items always be - interpreted as simple expressions. In 8.4.0 these lists were - parsed following the rules used for top-level GROUP BY and - ORDER BY lists. But this was not correct per the SQL standard, - and it led to possible circularity. - * Fix several errors in planning of semi-joins. These led to - wrong query results in some cases where IN or EXISTS was used - together with another join. - * Fix handling of whole-row references to subqueries that are - within an outer join. An example is SELECT COUNT(ss.*) FROM - ... LEFT JOIN (SELECT ...) ss ON .... Here, ss.* would be - treated as ROW(NULL,NULL,...) for null-extended join rows, - which is not the same as a simple NULL. Now it is treated as a - simple NULL. - * Fix Windows shared-memory allocation code. This bug led to the - often-reported "could not reattach to shared memory" error - message. - * Fix locale handling with plperl. - This bug could cause the server's locale setting to change when - a plperl function is called, leading to data corruption. - * Fix handling of reloptions to ensure setting one option doesn't - force default values for others. - * Ensure that a "fast shutdown" request will forcibly terminate - open sessions, even if a "smart shutdown" was already in - progress. - * Avoid memory leak for array_agg() in GROUP BY queries. - * Treat to_char(..., 'TH') as an uppercase ordinal suffix with - 'HH'/'HH12'. It was previously handled as 'th' (lowercase). - * Include the fractional part in the result of EXTRACT(second) - and EXTRACT(milliseconds) for time and time with time zone - inputs. - This has always worked for floating-point datetime - configurations, but was broken in the integer datetime code. - * Fix overflow for INTERVAL 'x ms' when x is more than 2 million - and integer datetimes are in use. - * Improve performance when processing toasted values in index - scans. This is particularly useful for PostGIS. - * Fix a typo that disabled commit_delay. - * Output early-startup messages to postmaster.log if the server - is started in silent mode. Previously such error messages were - discarded, leading to difficulty in debugging. - * Remove translated FAQs. They are now on the wiki. The main FAQ - was moved to the wiki some time ago. - * Fix pg_ctl to not go into an infinite loop if postgresql.conf - is empty. - * Fix several errors in pg_dump's --binary-upgrade mode. - * pg_dump --binary-upgrade is used by pg_migrator. - * Fix contrib/xml2's xslt_process() to properly handle the - maximum number of parameters (twenty). - * Improve robustness of libpq's code to recover from errors - during COPY FROM STDIN. - - * Avoid including conflicting readline and editline header files - when both libraries are installed. - - * Work around gcc bug that causes "floating-point exception" - instead of "division by zero" on some platforms. - -------------------------------------------------------------------- -Mon Jul 27 20:24:35 CEST 2009 - poeml@suse.de - -- postgresql-8.4.0-sle10-timestamptz.patch added, and applied - _only_ on SLE10. It fixes a build failure due to a test case that - seems to be confused by daylight saving time in the time zone - that the test expects its result (PDT vs. PST). Since this - failure happened only on SLE10, I assume that the test case isn't - broken, and some peculiarity on that (rather old now) platform is - to blame (possibly too old timezone files). Also, the testcase is - checking correctness when converting timezones > 32 bit, which - actually seems to work. - -------------------------------------------------------------------- -Wed Jul 15 21:10:36 CEST 2009 - poeml@suse.de - -- replace "ident sameuser" with "ident" as auth method for the - initdb call in the init script, because the former doesn't work - with PostgreSQL 8.4. With the generated pg_hba.conf, PostgreSQL - failed to start. Added note to the upgrade READMEs. [bnc#522375] - -------------------------------------------------------------------- -Tue Jul 7 15:56:49 CEST 2009 - max@suse.de - -- New major release: 8.4.0 -- Improvements include: - * Windowing Functions - * Common Table Expressions and Recursive Queries - * Default and variadic parameters for functions - * Parallel Restore - * Column Permissions - * Per-database locale settings - * Improved hash indexes - * Improved join performance for EXISTS and NOT EXISTS queries - * Easier-to-use Warm Standby - * Automatic sizing of the Free Space Map - * Visibility Map (greatly reduces vacuum overhead for - slowly-changing tables) - * Version-aware psql (backslash commands work against older - servers) - * Support SSL certificates for user authentication - * Per-function runtime statistics - * Easy editing of functions in psql - * New contrib modules: pg_stat_statements, auto_explain, citext, - btree_gin - -------------------------------------------------------------------- -Wed May 6 17:57:43 CEST 2009 - max@suse.de - -- Remove dependency on local posixrules from horology test. - -------------------------------------------------------------------- -Mon Mar 23 18:12:42 CET 2009 - max@suse.de - -- Security release 8.3.7 - - * Fixes a vulnerability that allowed remote authenticated - users to cause a denial of service (stack consumption) - via mismatched encoding conversion requests. - - * Details of the other bugfixes contained in this and - previous releases can be found here: - http://www.postgresql.org/docs/8.3/static/release.html - /usr/share/doc/packages/postgresql/HISTORY - -- Users of GiST indexes should "REINDEX" them after installing - this update. - -- Re-added libpgport.a to the devel package, as some apps require - it, although it is meant to be internal to the PostgreSQL - backend. - -- Fix removal of leftover files on database startup (bnc#473644). - -------------------------------------------------------------------- -Wed Jan 7 12:34:56 CET 2009 - olh@suse.de - -- obsolete old -XXbit packages (bnc#437293) - -------------------------------------------------------------------- -Wed Nov 5 16:07:45 CET 2008 - max@suse.de - -- Bugfix release: 8.3.5 - * Fix GiST index corruption due to marking the wrong index - entry "dead" after a deletion. This would result in index - searches failing to find rows they should have found. - * Fix backend crash when the client encoding cannot represent a - localized error message. - * Fix possible crash in bytea-to-XML mapping. - * Fix possible crash when deeply nested functions are invoked - from a trigger. - * Improve optimization of "expression" IN ("expression-list") - queries. - * Fix mis-expansion of rule queries when a sub-SELECT appears - in a function call in FROM, a multi-row VALUES list, or a - RETURNING list. - * Fix Assert failure during rescan of an IS NULL search of - a GiST index. - * Fix memory leak during rescan of a hashed aggregation plan. - * Ensure an error is reported when a newly-defined PL/pgSQL - trigger function is invoked as a normal function. - * Force a checkpoint before "CREATE DATABASE" starts to copy - files This prevents a possible failure if files had recently - been deleted in the source database. - * Prevent possible collision of relfilenode numbers when moving - a table to another tablespace with "ALTER SET TABLESPACE". - * Fix incorrect text search headline generation when single - query item matches first word of text. - * Fix improper display of fractional seconds in interval - values when using a non-ISO datestyle in an - "--enable-integer-datetimes" build. - * Make ILIKE compare characters case-insensitively even when - they're escaped. - * Ensure "DISCARD" is handled properly by statement logging. - * Fix incorrect logging of last-completed-transaction time - during PITR recovery. - * Ensure SPI_getvalue and SPI_getbinval behave correctly when - the passed tuple and tuple descriptor have different numbers - of columns. - * Fix small memory leak when using libpq's gsslib parameter. - * Ensure libgssapi is linked into libpq if needed. - * Fix ecpg's parsing of "CREATE ROLE". - * Fix recent breakage of pg_ctl restart. - -------------------------------------------------------------------- -Thu Sep 25 13:19:09 CEST 2008 - max@suse.de - -- Bugfix release: 8.3.4 -- Issues fixed include autovacuum crashes reported by several - users, two Heap Only Tuple bugs, a foreign key failure - condition, a too-small lock address space, two Write Ahead Log - bugs, several planner mistakes, and numerous "corner condition" - bugs. - -------------------------------------------------------------------- -Fri Sep 5 10:15:20 CEST 2008 - max@suse.de - -- New version: 8.3.3 with countless bug fixes over 8.3.1. -- For details, see - http://www.postgresql.org/docs/8.3/static/release-8-3-2.html , - http://www.postgresql.org/docs/8.3/static/release-8-3-3.html , - or /usr/share/doc/packages/postgresql/HISTORY . - -------------------------------------------------------------------- -Thu Aug 28 23:23:58 CEST 2008 - cthiel@suse.de - -- fix init script - -------------------------------------------------------------------- -Mon May 19 18:31:54 CEST 2008 - schwab@suse.de - -- Fix broken configure check. - -------------------------------------------------------------------- -Fri May 9 10:25:15 CEST 2008 - aj@suse.de - -- Add baselibs.conf. - -------------------------------------------------------------------- -Fri Apr 18 11:37:38 CEST 2008 - max@suse.de - -- Removed static libs from postgresql-devel. -- Removed more old Obsoletes: tags. -- Fixed path to pid file in init script. -- Moved "make check" to %check section -- Silence some bogus rpmlint warnings - -------------------------------------------------------------------- -Thu Apr 10 14:23:15 CEST 2008 - max@suse.de - -- Adopt the 8.3.1 package from Peter Eisentraut's OBS project. -- New features in PostgreSQL 8.3 include: - * Full text search is integrated into the core database system - * Support for the SQL/XML standard, including new operators and - an XML data type - * Enumerated data types (ENUM) - * Arrays of composite types - * Universally Unique Identifier (UUID) data type - * Add control over whether NULLs sort first or last - * Updatable cursors - * Server configuration parameters can now be set on a - per-function basis - * User-defined types can now have type modifiers - * Automatically re-plan cached queries when table definitions - change or statistics are updated - * Numerous improvements in logging and statistics collection - * Support multiple concurrent autovacuum processes, and other - autovacuum improvements -- Remove old provides/obsoletes tags for way-back package renames. - -------------------------------------------------------------------- -Thu Apr 10 12:54:45 CEST 2008 - ro@suse.de - -- added baselibs.conf file to build xxbit packages - for multilib support - -------------------------------------------------------------------- -Thu Jan 10 14:34:16 CET 2008 - max@suse.de - -- Update to 8.2.6 to fix five security issues: - - Index Functions Privilege Escalation: CVE-2007-6600 - - Regular Expression Denial-of-Service: CVE-2007-4772, - CVE-2007-6067, CVE-2007-4769, #329282 - - DBLink Privilege Escalation: CVE-2007-6601, #328403 - -------------------------------------------------------------------- -Wed Jun 6 16:02:58 CEST 2007 - max@suse.de - -- New version: 8.2.4 -- The list of changes between the 8.1 and 8.2 series is too long - to reproduce here. It can be found under - /usr/share/doc/packages/postgresql/HISTORY when the postgresql - package is installed or online at http://www.postgresql.org. -- Splited the postgresql-pl package into individual packages for - PL/Perl, PL/Python and PL/Tcl. -- Added a config file for SuSEfirewall2 (#247370). - -------------------------------------------------------------------- -Thu Mar 29 14:32:16 CEST 2007 - rguenther@suse.de - -- Add bison, flex and zlib-devel BuildRequires. - -------------------------------------------------------------------- -Tue Oct 17 15:01:57 CEST 2006 - max@suse.de - -- New patchlevel release: 8.1.5 -- Disallow aggregate functions in "UPDATE" commands, except within - sub-SELECTs. The behavior of such an aggregate was unpredictable, - and in 8.1.X could cause a crash, so it has been disabled. -- Fix core dump when an untyped literal is taken as ANYARRAY. -- Fix core dump in duration logging for extended query protocol when - a "COMMIT" or "ROLLBACK" is executed. -- Fix mishandling of AFTER triggers when query contains a SQL function - returning multiple rows. -- Fix "ALTER TABLE ... TYPE" to recheck NOT NULL for USING clause. -- Fix string_to_array() to handle overlapping matches for the - separator string. -- Fix to_timestamp() for AM/PM formats. -- Fix autovacuum's calculation that decides whether "ANALYZE" is - needed. -- Fix corner cases in pattern matching for psql's \d commands. -- Fix index-corrupting bugs in /contrib/ltree. -- Numerous robustness fixes in ecpg. -- Fix backslash escaping in /contrib/dbmirror. -- Minor fixes in /contrib/dblink and /contrib/tsearch2. -- Efficiency improvements in hash tables and bitmap index scans. - -------------------------------------------------------------------- -Wed May 24 10:24:26 CEST 2006 - max@suse.de - -- Update to 8.1.4 to fix SQL injection vulnerabilities - (bug #177931, CVE-2006-2313, CVE-2006-2314). - -- Added a new postgresql-SECURITY-NOTICE file with an FAQ that - explains the issues. - -------------------------------------------------------------------- -Mon Feb 13 15:47:46 CET 2006 - max@suse.de - -- New version: 8.1.3 (#150376). -- Relaxed dependencies between subpackages to simplify future - updates. - -------------------------------------------------------------------- -Wed Jan 25 21:40:32 CET 2006 - mls@suse.de - -- converted neededforbuild to BuildRequires - -------------------------------------------------------------------- -Fri Jan 13 17:21:31 CET 2006 - max@suse.de - -- Moved from logrotate to PostgreSQL's own log rotation facility. -- Log files are now located under /var/lib/pgsql/data/pg_log . -- Improved error reporting on test suite failures. - -------------------------------------------------------------------- -Thu Dec 22 17:26:01 CET 2005 - max@suse.de - -- New version: 8.1.1 - -------------------------------------------------------------------- -Fri Jun 17 09:50:16 CEST 2005 - max@suse.de - -- Removed bogus %patch3 - -------------------------------------------------------------------- -Thu Jun 2 18:59:06 CEST 2005 - max@suse.de - -- Added postgresql-CAN-2005-1409-1410-fix.sh for fixing existing - installations, and referred to it in the SECURITY-NOTICE. - -------------------------------------------------------------------- -Tue May 17 18:56:40 CEST 2005 - max@suse.de - -- Added postgresql-SECURITY-NOTICE to describe the manual actions - that are needed to apply the bugfixes from 8.0.3 to existing - installations. - -------------------------------------------------------------------- -Tue May 10 18:06:54 CEST 2005 - max@suse.de - -- New patch release: 8.0.3 -- Fixes bug #82869, CAN-2005-1410, and CAN-2005-1409 -- Obsoletes postgresql-CAN-2005-0247.patch - -------------------------------------------------------------------- -Mon Apr 11 13:35:34 CEST 2005 - max@suse.de - -- New patch release: 8.0.2 - -------------------------------------------------------------------- -Mon Apr 4 16:11:06 CEST 2005 - uli@suse.de - -- hardwire thread safety to yes (test may hang QEMU) - -------------------------------------------------------------------- -Fri Apr 1 13:38:46 CEST 2005 - uli@suse.de - -- ignore regressions on ARM - -------------------------------------------------------------------- -Wed Mar 16 19:56:30 CET 2005 - max@suse.de - -- Prevent the wrapper libs from ending up in the provides list. - -------------------------------------------------------------------- -Mon Mar 14 18:14:27 CET 2005 - max@suse.de - -- Added postgresql-CAN-2005-0247.patch to fix bug #65692. - -------------------------------------------------------------------- -Fri Mar 11 20:55:19 CET 2005 - max@suse.de - -- Added some wrapper libs so that old postmaster binaries, back - to at least 8.1/SLES8 can still be started. -- Extended the init script to use the wrapper libs when needed. -- Setting a senseful umask when creating the postmaster backups - in %pre. - -------------------------------------------------------------------- -Mon Feb 7 11:41:18 CET 2005 - max@suse.de - -- New patch release: 8.0.1 -- Fixes a vulnerability in the LOAD command. - -------------------------------------------------------------------- -Wed Jan 19 11:23:32 CET 2005 - max@suse.de - -- Update to the final 8.0.0 release. - -------------------------------------------------------------------- -Wed Dec 22 20:36:21 CET 2004 - max@suse.de - -- New version: 8.0.0rc2 - -------------------------------------------------------------------- -Fri Dec 10 17:48:44 CET 2004 - max@suse.de - -- New version: 8.0.0rc1 -- Recoded README.SuSE.de to UTF-8. - -------------------------------------------------------------------- -Fri Dec 3 16:44:58 CET 2004 - max@suse.de - -- New version: 8.0.0beta5 - -------------------------------------------------------------------- -Thu Nov 18 15:50:27 CET 2004 - ro@suse.de - -- use kerberos-devel-packages - -------------------------------------------------------------------- -Mon Sep 6 16:26:22 CEST 2004 - max@suse.de - -- Created a separate spec file for the postgresql-pl subpackage. - -------------------------------------------------------------------- -Fri Aug 20 18:20:02 CEST 2004 - max@suse.de - -- New version: 7.4.5. - -------------------------------------------------------------------- -Thu Jul 15 12:20:38 CEST 2004 - max@suse.de - -- New version: 7.4.3. - -------------------------------------------------------------------- -Mon May 24 11:10:04 CEST 2004 - max@suse.de - -- Changed dependency of -devel from the main package to -libs - (Bug #40922). - -------------------------------------------------------------------- -Mon Apr 5 15:44:01 CEST 2004 - max@suse.de - -- Added postgresql-regression.patch to prevent test failures - during summertime/wintertime changes. - -------------------------------------------------------------------- -Thu Mar 11 16:38:39 CET 2004 - max@suse.de - -- New patch release: 7.4.2 - -------------------------------------------------------------------- -Fri Jan 16 11:53:23 CET 2004 - kukuk@suse.de - -- Add pam-devel to neededforbuild - -------------------------------------------------------------------- -Mon Jan 12 17:56:41 CET 2004 - max@suse.de - -- New version: 7.4.1 -- Write timestamps to /var/log/postgresql by default. - -------------------------------------------------------------------- -Thu Dec 18 20:49:09 CET 2003 - max@suse.de - -- Package the backend headers as well (make install-all-headers), - because they are needed for server-side modules written in C. - -------------------------------------------------------------------- -Tue Nov 18 13:20:55 CET 2003 - max@suse.de - -- Install pg_config_manual.h and port.h, because they are needed - by c.h (postgresql-include.patch). - -------------------------------------------------------------------- -Mon Nov 17 11:57:45 CET 2003 - max@suse.de - -- New version: 7.4. For details see - http://www.postgresql.org/docs/7.4/static/release.html, or - /usr/share/doc/packages/postgresql/html/release.html - -- Overhauled and simplified the spec file. - -- Building with Kerberos-Support. - -- Building thread-safe client libraries. - -- Architecture-dependent tweaks for the testsuite are not needed - anymore. - -- Better detection for embedded Python build options. - -------------------------------------------------------------------- -Mon Oct 20 10:15:43 CEST 2003 - schwab@suse.de - -- Fix last change. - -------------------------------------------------------------------- -Sat Oct 18 10:15:34 CEST 2003 - adrian@suse.de - -- ignore minor mis-calculation on mips -- build as user - -------------------------------------------------------------------- -Tue Sep 23 11:41:02 CEST 2003 - max@suse.de - -- Fixed version detection in the pre script of the server package. - (#31570) - -- Ignore errors from stop_on_removal (#31607). - -------------------------------------------------------------------- -Mon Sep 15 11:05:16 CEST 2003 - max@suse.de - -- Activated the patch, that fixes dbf2pg (#27427). The patch was - added to the package before, but accidentally didn't get applied. - -- Improved handling of old versions of the backend (#27114). - -- Stopping the server before uninstallation and restarting it - after update (#29038). - -------------------------------------------------------------------- -Fri Aug 29 17:50:23 CEST 2003 - mcihar@suse.cz - -- python bindings require same python version as it was built with - -------------------------------------------------------------------- -Thu Aug 14 17:24:23 CEST 2003 - max@suse.de - -- Added ServiceRestart to sysconfig template. - -------------------------------------------------------------------- -Thu Aug 14 14:40:41 CEST 2003 - ro@suse.de - -- fixed chown usage in init-script - -------------------------------------------------------------------- -Mon Aug 4 11:03:49 CEST 2003 - max@suse.de - -- New version: 7.3.4. - -- Adopted postgresql-multilib.patch from the official PostgreSQL - RPMs. This obsoletes postgresql-lib64.patch. - -- Use test-and-set locks for x86_64 instead of slow semaphores. - (postgresql-x86_64.patch, Bug #27308) - -- make use of %jobs for parallel builds. - -- Fix ownership of /etc/logrotate.d/postgresql (Bug #28431). - -- Changed the default locale for the server to "C" to avoid a hard - dependency to glibc-locale (bug #28338). - -- Enabled charset conversion for dbf2pg (Bug #27427). - -------------------------------------------------------------------- -Wed Jul 16 13:13:05 CEST 2003 - meissner@suse.de - -- fix hanging builds by another rework of the ppc64 - locking. Apparently we need to do exact stcwx. ; bne ; isync - sequences to stay correct. - -------------------------------------------------------------------- -Tue Jun 24 12:27:36 CEST 2003 - meissner@suse.de - -- Fixed the ppc/ppc64 locking, isync was at the wrong - position. Replaced full sync by lwsync. slock_ts can - be 32bit on ppc64 too, we just use lwarx/stwcx which - handle 32bit components. - -------------------------------------------------------------------- -Tue Jun 3 16:00:19 CEST 2003 - max@suse.de - -- New version: 7.3.3. - -- Remove unpackaged files. - -- pg_hba.conf: only allow local connections from the same user - by default. - -------------------------------------------------------------------- -Fri Mar 14 10:47:53 CET 2003 - max@suse.de - -- Fixed generation of sql files in contrib, and really install the - contrib stuff instead of just copying over the source tree - (Bug #25323, postgresql-contrib.patch). - -- Fixed the file-list of the server package. - -------------------------------------------------------------------- -Wed Mar 12 11:25:09 CET 2003 - max@suse.de - -- Fixed a typo in the init script (Bug #25115). - -------------------------------------------------------------------- -Thu Mar 6 15:59:50 CET 2003 - max@suse.de - -- Add support for LSB compatible exit codes for start and stop - to pg_ctl (postgresql-lsb.patch). - -- Use pg_ctl instead of startproc/killproc in init script, because - it waits until the server is completely fired up or shut down. - (Bug #24395) - -- Removed the libpq.so.2.0 link from the package, because it got - removed by ldconfig after installation anyways (Bug #24557). - -------------------------------------------------------------------- -Tue Feb 25 13:19:25 CET 2003 - max@suse.de - -- Mark manpages as documentation. -- Create the backup directory during install. - -------------------------------------------------------------------- -Mon Feb 24 17:35:36 CET 2003 - max@suse.de - -- Make a backup of the server binaries during update, and use the - old server as long as the data files are still in the old format. - -------------------------------------------------------------------- -Thu Feb 6 17:16:42 CET 2003 - max@suse.de - -- New patch release 7.3.2 which fixes several serious bugs. - See HISTORY for details. - -------------------------------------------------------------------- -Tue Jan 28 17:20:13 CET 2003 - max@suse.de - -- Added metadata for the sysconfig editor. - -------------------------------------------------------------------- -Mon Jan 20 12:17:22 CET 2003 - max@suse.de - -- New version: 7.3.1 - -- Removed old update scripts, because they don't work anymore. - -------------------------------------------------------------------- -Thu Jan 16 08:32:56 CET 2003 - bg@suse.de - -- Changed the expected test results for hppa to the correct files - -------------------------------------------------------------------- -Fri Nov 29 15:42:52 CET 2002 - max@suse.de - -- New version 7.3. - -- Compiling with PAM support. - -- Client libraries (perl, tcl, odbc, pgeasy, pq++) have been - taken out of the PostgreSQL core distribution and will be - built as separate packages in the future. - -- The plperl subpackage has been renamed to pl, and now contains - PL/Perl, PL/Python, and PL/Tcl. - -------------------------------------------------------------------- -Fri Sep 13 13:29:33 CEST 2002 - max@suse.de - -- Added circle_poly-overrun.patch to fix a couple of - buffer overruns. - -------------------------------------------------------------------- -Thu Sep 12 11:55:58 CEST 2002 - max@suse.de - -- Corrected symlink /usr/lib/libpq.so.2.0 [#19490]. -- Fixed ownership of /var/lib/pgsql [#19523]. - -------------------------------------------------------------------- -Fri Sep 6 11:34:53 CEST 2002 - max@suse.de - -- Recovered time stamps of source files and patches. - -------------------------------------------------------------------- -Mon Sep 2 17:56:17 CEST 2002 - max@suse.de - -- Updated to patch release 7.2.2 which fixes some security holes. -- Essential diff between 7.2.1 and 7.2.2 is included. - -------------------------------------------------------------------- -Tue Aug 20 12:26:37 CEST 2002 - mmj@suse.de - -- Correct PreReq - -------------------------------------------------------------------- -Mon Aug 19 09:42:50 CEST 2002 - kukuk@suse.de - -- Fix requires egenix-mx-base -> python-egenix-mx-base - -------------------------------------------------------------------- -Fri Aug 16 00:35:40 CEST 2002 - ro@suse.de - -- don't chmod 644 to directories - -------------------------------------------------------------------- -Wed Aug 14 14:47:34 CEST 2002 - ro@suse.de - -- added "missingok" to logrotate config - -------------------------------------------------------------------- -Fri Aug 9 10:55:05 CEST 2002 - max@suse.de - -- Removed sysconfig from neededforbuild. -- Using x-devel-packages instead of xf86. - -------------------------------------------------------------------- -Thu Aug 8 10:59:10 CEST 2002 - max@suse.de - -- Removed support for older SuSE versions. -- Moved log file cration from %post to rcpostgresql. -- Changed group for /etc/logrotate.d/postgresql. - -------------------------------------------------------------------- -Mon Aug 5 15:54:21 CEST 2002 - max@suse.de - -- Enabled the plperl subpackage. - -------------------------------------------------------------------- -Tue Jul 30 16:42:18 CEST 2002 - max@suse.de - -- Fixed regression tests for ppc64. - -------------------------------------------------------------------- -Fri Jul 12 11:24:52 CEST 2002 - max@suse.de - -- Re-enabled the regression tests. - -- Running test suite as nobody. - -- Adjusted ppc and lib64 patch to the scheme of the other - platform patches. - -- Better test-and-set assembler code for s390 and s390x. - -- Creating postgres user and group during RPM installation. - -------------------------------------------------------------------- -Tue Jun 18 11:53:05 CEST 2002 - meissner@suse.de - -- use the powerpc assembler tas() for ppc64 too with adjusted assembler - names. - -------------------------------------------------------------------- -Fri May 24 18:43:35 CEST 2002 - max@suse.de - -- New minor release: 7.2.1 - -- Temporaryly disabled the regression tests due to changes to - mktime() that caused some tests to fail. - -------------------------------------------------------------------- -Fri May 24 13:04:42 CEST 2002 - ke@suse.de - -- postgresql-python requires egenix-mx-base (DateTime) [# 14745]. - -------------------------------------------------------------------- -Wed May 22 14:21:02 CEST 2002 - meissner@suse.de - -- %_lib fixes for lib64 architectures. Now fails at the same point as i386. - -------------------------------------------------------------------- -Wed Mar 20 15:07:48 CET 2002 - max@suse.de - -- Changed postgresql package to PreReq postgresql-libs instead of - postgresql-lib which is obsolete. - -------------------------------------------------------------------- -Fri Mar 8 14:37:08 CET 2002 - poeml@suse.de - -- add missing / before %_lib, fixing the preinstall script of -libs - subpackage - -------------------------------------------------------------------- -Wed Mar 6 16:35:19 CET 2002 - max@suse.de - -- Fixed test-and-set assembler code for s390x. - -- Made finding of perl and python site-paths more portable. - -- Fixed detection of SuSE dist for older releases. - -- Some more %_libdir corrections. - -- Using -fPIC for building shared libs on all architectures. - -- Leaving out tk and python subpackages if tk and python - are not OK. - -------------------------------------------------------------------- -Mon Mar 4 17:57:29 CET 2002 - max@suse.de - -- Fixed creation of pkgIndex.tcl - -- Removed some python stuff from the spec file that is now part of - PostgreSQL's build system. - -- Removed unneeded executable permissions from a couple of files. - -------------------------------------------------------------------- -Wed Feb 13 14:30:49 CET 2002 - max@suse.de - -- added support for logrotate - -- changed sysconfig stuff and init script to run on both - schemes (<=7.3 and >=8.0). - -------------------------------------------------------------------- -Tue Feb 5 16:43:04 CET 2002 - max@suse.de - -- Updated to 7.2 final. - -- See the file /usr/share/doc/packages/postgresql/HISTORY - for changes and incompatibilities since version 7.1.x. - -- Adapted the init script to match the new versions of killproc - and PostgreSQL. - -------------------------------------------------------------------- -Mon Jan 28 08:44:00 CET 2002 - max@suse.de - -- Updated to 7.2rc2 -- Removed temporary header fix. -- Added a patch for autoconf-2.52 (disabled by derfault). -- Added english version of README.SuSE - -------------------------------------------------------------------- -Tue Jan 22 15:15:39 CET 2002 - max@suse.de - -- removed os.h. It's not needed anymore. -- fixed locations of internal header files (temporary). -- postgresql-python now obsoletes pygresql. -- updated the files lists. - -------------------------------------------------------------------- -Mon Jan 21 19:32:37 CET 2002 - max@suse.de - -- New version 7.2b5 - -------------------------------------------------------------------- -Tue Dec 18 17:39:42 CET 2001 - max@suse.de - -- Changed spec file to make use of %{_libdir} where appropriate. - -------------------------------------------------------------------- -Mon Dec 17 16:15:12 CET 2001 - max@suse.de - -- Removed the START_POSTGRES variable from the fillup template - and changed init script, and spec file to the new scheme. - -- Moved the remaining variables from /etc/rc.config to - /etc/sysconfig/postgresql. - -------------------------------------------------------------------- -Wed Sep 12 12:06:19 CEST 2001 - max@suse.de - -- New version (patch release): 7.1.3 - The ChangeLog says: - - Remove unused WAL segements of large transactions (Tom) - - Multiaction rule fix (Tom) - - Pl/pgSQL memory allocation fix (Jan) - - VACUUM buffer fix (Tom) - - Regression test fixes (Tom) - - pg_dump fixes for GRANT/REVOKE/comments on views, - user-defined types (Tom) - - Fix subselects with DISTINCT ON or LIMIT (Tom) - - BEOS fix - - Disable COPY TO/FROM a view (Tom) - - Cygwin build (Jason Tishler) - -- Fixed bug in init script. - It needed a file that comes only with postgresql-devel - -- Better Patch for PgTcl. It now sets the client encoding to - UNICODE (PostgreSQL's name for UTF-8) for Tcl versions >= 8.1 - instead of using Tcl's conversion functions to get the correct - string representation. - -- Added README.SuSE (only german, so far) - -- Some minor typo fixes in the spec file. - -------------------------------------------------------------------- -Mon Aug 27 10:49:07 CEST 2001 - utuerk@suse.de - -- removed postgresql.conf (now provided by susehelp) - -------------------------------------------------------------------- -Mon Jul 23 19:16:06 CEST 2001 - max@suse.de - -- Fixed %pre and %post scripts for YaST. - -------------------------------------------------------------------- -Thu Jul 19 16:30:48 CEST 2001 - max@suse.de - -- fixed regression tests for SPARC32. - -- fixed init script to warn about incompatible data files. - -- added patch for Pgtcl to use UTF8 for internal string - representation if compiled with Tcl >= 8.1 . - -- added pkgIndex.tcl to allow dynamic loading of Pgtcl using - Tcl's package mechanism. - -------------------------------------------------------------------- -Wed Jul 11 11:51:11 CEST 2001 - max@suse.de - -- fixed regression test to succeed on PPC with glibc-2.2.3 . - -------------------------------------------------------------------- -Tue Jul 10 11:02:12 CEST 2001 - max@suse.de - -- new version: 7.1.2 - -- packages again based on the official PostgreSQL RPMs. - -- architecture patches are no longer needed. - -- running the regression tests as part of the build process to - ensure that only correctly built binaries get packed in. - -- new subpackages: contrib, doc - -- renamed subpackage lib to libs to conform to the official RPMs - -- ToDo: (semi)automatic conversion for updates - from versions prior 7.1. - -------------------------------------------------------------------- -Mon May 7 22:37:05 CEST 2001 - mfabian@suse.de - -- bzip2 sources - -------------------------------------------------------------------- -Fri Apr 27 12:34:31 CEST 2001 - max@suse.de - -- updated the init script to be more LSB compliant according to - the current /etc/init.d/skeleton. - -------------------------------------------------------------------- -Thu Apr 12 13:23:53 CEST 2001 - max@suse.de - -- fix for deprecated declarations in readline 4.2. -- fixed permissons of some shared objects for the backend. -- recovered timestamps of sources. - -------------------------------------------------------------------- -Wed Apr 11 13:51:39 CEST 2001 - utuerk@suse.de - -- added postgresql.conf for susehelp - -------------------------------------------------------------------- -Thu Mar 22 18:51:02 CET 2001 - ro@suse.de - -- added split-aliases as provides - -------------------------------------------------------------------- -Thu Mar 22 00:35:04 CET 2001 - poeml@suse.de - -- 7.0.* does not work on PPC unless compiled with -O0 (7.1 will) - -------------------------------------------------------------------- -Wed Mar 7 13:57:16 CET 2001 - max@suse.de - -- added xshared and xdevel to neededforbuild - because X is no longer in the default buildsystem. - -------------------------------------------------------------------- -Fri Feb 23 00:10:25 CET 2001 - ro@suse.de - -- added readline/readline-devel to neededforbuild (split from bash) - -------------------------------------------------------------------- -Wed Jan 24 18:14:53 MET 2001 - max@suse.de - -- added missing "Provides:" entries to specfile. - -------------------------------------------------------------------- -Mon Jan 15 20:59:19 CET 2001 - max@suse.de - -- dropping the locale environment vars from the init script - as workarround for a locale related bug in the backend. - It shows up when the regression test runs on a backend that - has e.g. LC_CTYPE=de_DE . - -------------------------------------------------------------------- -Wed Nov 29 17:22:43 CET 2000 - max@suse.de - -- new version: 7.0.3 - -- spec file is based on Lamar Owen's source RPM of - PostgreSQL-7.0.3 for SuSE Linux 7.0 - -- renamed the whole package - postgres -> postgresql - pg_lib -> postgresql-lib - pg_serv -> postgresql-serv - pg_devel -> postgresql-devel - pg_tcl -> postgresql-tcl - pg_tk -> postgresql-tk - pg_odbc -> postgresql-odbc - pg_jdbc -> postgresql-jdbc - pg_pyth -> postgresql-python - pg_perl -> postgresql-perl - pg_test -> postgresql-test - -- renamed some files and scripts from *postgres* to *postgresql* - -- moved to the LSB-compliant init scheme - -- moved database initialisation from SuSEconfig.postgres - into the init script - -- changed postgresql-python to use Python2.0 instead of 1.5 - -------------------------------------------------------------------- -Sat Oct 28 19:51:03 CEST 2000 - kukuk@suse.de - -- Add python-devel to need for build - -------------------------------------------------------------------- -Tue Oct 24 00:28:16 CEST 2000 - bk@suse.de - -- integrated change from max: -- changed /sbin/init.d/postgres and SuSEconfig.postgres - to work arround YaST that quotes the value of POSTGRES_DATADIR - in /etc/rc.config when it gets changed. - -------------------------------------------------------------------- -Mon Sep 11 16:37:58 CEST 2000 - fober@suse.de - -- made postgres run&autobuild on s390: - -- src/include/port/linux.h, src/include/storage/s_lock.h: - s390-assembler test-and-set (thanks to Andreas Jaeger) - -- src/template/.similar, src/template/linux_s390: - created linux_s390-Template from linux_ppc. - TODO: is -O0 really needed? - -- regression test passes (with minor deviations in floating point - arithmetics) - - TODO: the regression test will not run out of the box as we install - it. this is the missing piece, either in postgres-source or in - .spec - - # missing files - cd $BUILD_ROOT/usr/src/packages/BUILD/postgresql-7.0.2/; - cp -avP src/backend/*.h $RPM_BUILD_ROOT/usr/lib/pgsql - cp -avP src/include $RPM_BUILD_ROOT/usr/lib/pgsql - cp -avP src/Makefile.port $RPM_BUILD_ROOT/usr/lib/pgsql - cp -avP src/Makefile.global $RPM_BUILD_ROOT/usr/lib/pgsql - - # directory structure - cd $RPM_BUILD_ROOT/usr/lib/pgsql - mkdir src - mv test src - ln -s src/test . - -------------------------------------------------------------------- -Mon Aug 28 21:59:03 MEST 2000 - max@suse.de - -- changed installation order to fix bug #3802 - -------------------------------------------------------------------- -Mon Jul 3 12:10:10 MEST 2000 - max@suse.de - -- Disabled fcntl(F_SETLK) on the postmaster socket to work arround - a kernel bug in Linux <= 2.2.16. -- New subpackage: pg_lib contains the shared libs for C and C++. - -------------------------------------------------------------------- -Thu Jun 29 18:35:54 CEST 2000 - schwab@suse.de - -- Fix spinlocks for ia64. -- Reenable ia64 patch on the other architectures. - -------------------------------------------------------------------- -Wed Jun 28 21:22:54 CEST 2000 - max@suse.de - -- disabled the ia64 patch when building for other architectures -- database unload+reload on updates works now -- moved some script and config files out of the diff into - source files of their own. -- template database creation moved from init script into SuSEconfig -- some minor cleanups - -------------------------------------------------------------------- -Tue Jun 20 13:36:41 CEST 2000 - schwab@suse.de - -- Add support for ia64. - -------------------------------------------------------------------- -Fri Jun 9 19:07:44 CEST 2000 - max@suse.de - -- New version: 7.0.2. -- Re-made the whole package based on the original PostgreSQL RPM. -- There is still a little work needed for clean updates from - PostgreSQL 6.x to 7.0.x -- Heavy testing needed before SuSE Linux 7.0. - -------------------------------------------------------------------- -Sun Apr 9 18:51:40 CEST 2000 - bk@suse.de - -- added suse update config macro -- added automake to list of packages needed for building postgres - -------------------------------------------------------------------- -Thu Feb 10 17:11:38 CET 2000 - ke@suse.de - -- add more source files from the official PostgreSQL package. -- start to apply patches from there. -- start to cleanup the spec file. -- start to resolve bug #1948. - -------------------------------------------------------------------- -Wed Feb 9 14:15:22 CET 2000 - ke@suse.de - -- add group tag. -- ./configure -> %build. -- New default for rc.config variable START_POSTGRES ("no"). - -------------------------------------------------------------------- -Fri Dec 10 16:20:36 MET 1999 - ke@suse.de - -- update: version 6.5.3. -- startup script: use -S to remove the socket. - -------------------------------------------------------------------- -Tue Oct 12 13:01:38 CEST 1999 - ro@suse.de - -- added tcld to neededforbuild - -------------------------------------------------------------------- -Mon Sep 13 17:23:57 CEST 1999 - bs@suse.de - -- ran old prepare_spec on spec file to switch to new prepare_spec. - -------------------------------------------------------------------- -Mon Aug 2 17:10:18 MEST 1999 - ke@suse.de - -- postgresql init script: remove the socket in /tmp before trying to - start the postmaster. - -------------------------------------------------------------------- -Thu Jul 29 18:17:30 MEST 1999 - ke@suse.de - -- update: version 6.5.1. - -------------------------------------------------------------------- -Tue Jul 20 15:18:15 MEST 1999 - ke@suse.de - -- remove MANPATH setting from /etc/postgres.{sh,csh} and from - /etc/pg_ifa.{sh,csh}. -- provide manpage links at /usr/share/man: - - /usr/lib/pgsql/man/man?/*.?.gz -> /urs/share/man/man?/*.?.pgsql.gz - -- now, you'll find all manpage in "pg_ifa". - -------------------------------------------------------------------- -Thu Mar 18 13:59:36 MET 1999 - ke@suse.de - -- compile an install "spi" (on popular demand...). - -------------------------------------------------------------------- -Wed Feb 10 10:00:28 MET 1999 - ke@suse.de - -- security fix: don't create pg_pwd with mode 666 (thanks to mt). - -------------------------------------------------------------------- -Mon Feb 1 16:53:22 MET 1999 - ke@suse.de - -- fix permissions of libs (thanks to mt). - -------------------------------------------------------------------- -Fri Jan 8 10:28:19 MET 1999 - ke@suse.de - -- update: version 6.4.2. - -------------------------------------------------------------------- -Tue Dec 1 11:53:32 MET 1998 - ke@suse.de - -- add /etc/profile.d/{postgres,pg_ifa}.csh (thanks to werner). -- new bootscript (thanks to werner). - -------------------------------------------------------------------- -Fri Nov 27 18:20:33 MET 1998 - ke@suse.de - -- link libpgtcl against libcrypt. - -------------------------------------------------------------------- -Thu Nov 12 15:15:48 MET 1998 - bs@suse.de - -- fixed spec file for new rpm. - -------------------------------------------------------------------- -Fri Oct 30 15:33:07 MET 1998 - ke@suse.de - -- update: version 6.4-BETA4. - -------------------------------------------------------------------- -Sun Sep 27 14:27:33 MEST 1998 - ke@suse.de - -- update: version pre6.4 (snapshot 1998-09-27). -- remove pgaccess (it's a separate package now). -- all libraries and binaries are under the separate hierarchy - /usr/lib/pgsql (on customers' request...). -- provide /etc/profile.d/{postgres,pg_ifa}.sh; .csh files are still - missing. - -------------------------------------------------------------------- -Mon Aug 24 18:00:54 MEST 1998 - ke@suse.de - -- shut down the postmaster before uninstalling. - -------------------------------------------------------------------- -Tue Aug 18 18:04:47 MEST 1998 - ke@suse.de - -- add pgaccess' GIFs (HTML documentation). - -------------------------------------------------------------------- -Sat Jul 25 12:10:59 MEST 1998 - ke@suse.de - -- Use `-n postgres' to make the `%post' script available. - -------------------------------------------------------------------- -Mon Jul 13 08:14:48 MEST 1998 - ke@suse.de - -- update pgaccess: version 0.88. - -------------------------------------------------------------------- -Thu May 28 11:34:36 MEST 1998 - ke@suse.de - -- New package split: rip out the base interfaces (libraries and database - tools); the new package is called pg_ifa (subpackage). -- update pgaccess: version 0.87. - -------------------------------------------------------------------- -Fri May 22 13:57:20 MEST 1998 - ke@suse.de - -- update: version 6.3.2 -- package split to ease maintainability and user updates; now, we've the - following packages: - postgres : base packages, essential interfaces included (libpq, - libpq++, libpqtcl and PgAccess). - pg_datab : initial database (needed only for the first - installation or in case of major number updates); if - not installed, the user has to invoke `initdb' - manually. - pg_iface : PostgreSQL interfaces (Perl, JDBC, more to come...). - -------------------------------------------------------------------- -Thu May 7 15:43:22 MEST 1998 - fehr@suse.de - -- add library -lXp for Motif 2.1 - -------------------------------------------------------------------- -Wed Feb 11 17:27:24 MET 1998 - fehr@suse.de - -- added the perl interface - -------------------------------------------------------------------- -Wed Dec 10 11:38:19 MET 1997 - ro@suse.de - -- build static and dynamic version of dbbrowser and mpsql - -------------------------------------------------------------------- -Wed Dec 3 11:48:45 MET 1997 - ro@suse.de - -- fixed /sbin/init.d/postgres (path, db-path, read rc.config) - moved logfile to /var/log - -------------------------------------------------------------------- -Tue Nov 18 22:40:01 MET 1997 - bs@suse.de - -- skipped man3/abort.3.gz - --------------------------------------------------------------------------- -Tue Nov 4 14:24:33 MET 1997 - fehr@suse.de - -- changed to version 6.2.1 of the new postgresSQL -- changed to version 1.5 of mpsql -- changed to version 0.2 of AppGEN -- added version 0.9 if dbbrowser -- prepare package for automatic build -- home Directory of postgrs user must now be /var/lib/postgres -- this Change is a major step since postgres95 it is possible - that some changes are incompatible with the previos postgres - versions. - --------------------------------------------------------------------------- -Mon Jun 9 13:23:32 MEST 1997 - fehr@suse.de - -- make symbolic link in /usr/doc/packages relative - --------------------------------------------------------------------------- -Sun Jun 1 20:43:17 CEST 1997 - bs@suse.de - -- moved fillup stuff to var/adm/fillup-templates - --------------------------------------------------------------------------- -Mon May 12 16:05:57 MEST 1997 - fehr@suse.de - -- added startup-script for /sbin/init.d -- added fillup for /etc/rc.config START_POSTGRES - diff --git a/postgresql-libs.spec b/postgresql-libs.spec deleted file mode 100644 index 25ab57f..0000000 --- a/postgresql-libs.spec +++ /dev/null @@ -1,281 +0,0 @@ -# -# spec file for package postgresql-libs -# -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. -# -# All modifications and additions to the file contributed by third parties -# remain the property of their copyright owners, unless otherwise agreed -# upon. The license for this file, and modifications and additions to the -# file, is the same license as for the pristine package itself (unless the -# license for the pristine package is not an Open Source License, in which -# case the license is the MIT License). An "Open Source License" is a -# license that conforms to the Open Source Definition (Version 1.9) -# published by the Open Source Initiative. - -# Please submit bugfixes or comments via http://bugs.opensuse.org/ -# - - -%if 0%{?sles_version} && %sles_version <= 11 -%define libs_package 1 -%else -%define libs_package 0 -%endif - -Name: postgresql-libs -%define _name postgresql -%define libpq libpq5 -%define libecpg libecpg6 -%define buildall 0 -%define extensiondir %_datadir/postgresql/extension -%if 0%{?suse_version} > 910 -BuildRequires: krb5-devel libxslt-devel -%endif -BuildRequires: openldap2-devel openssl-devel -Summary: Basic Clients and Utilities for PostgreSQL -Version: 9.1.3 -Release: 2 -%define pg_minor_version %(echo %version | sed -r 's/^([0-9]+\\.[0-9]+).*/\\1/') -License: BSD3c(or similar) -Group: Productivity/Databases/Tools -Source0: postgresql-%version.tar.bz2 -Source1: baselibs.conf -Source2: postgresql-README.SuSE.de -Source3: postgresql-README.SuSE.en -Source8: postgresql-sysconfig -Source9: postgresql-init -Source15: postgresql-bashprofile -Source16: postgresql-firewall -Source17: postgresql-rpmlintrc -Source100: postgresql-mkspecfiles -Source101: postgresql.spec.in -Patch1: postgresql-conf.patch -Patch2: postgresql-regress.patch -Patch3: postgresql-sle10-timestamptz.patch -Patch4: postgresql-plperl.patch -Patch5: postgresql-atomic-builtins.patch -Url: http://www.postgresql.org/ -BuildRoot: %{_tmppath}/%{name}-%{version}-build -Provides: postgresql = %pg_minor_version - -%description -PostgreSQL is an advanced object-relational database management system -that supports an extended subset of the SQL standard, including -transactions, foreign keys, subqueries, triggers, and user-defined -types and functions. - -This package contains the basic utility and client programs necessary -to maintain and work with local or remote PostgreSQL databases as well -as manual pages for the SQL commands that PostgreSQL supports. Full -HTML documentation for PostgreSQL can be found in the postgresql-docs -package. - -%if %libs_package - -%package libs -License: BSD 3-Clause -Summary: Shared Libraries Required for PostgreSQL Clients -Group: Productivity/Databases/Clients -# bug437293 -%ifarch ppc64 -Obsoletes: postgresql-libs-64bit -%endif -# -Provides: postgresql-libs = %pg_minor_version -PreReq: sh-utils fileutils - -%description libs -PostgreSQL is an advanced object-relational database management system -that supports an extended subset of the SQL standard, including -transactions, foreign keys, subqueries, triggers, user-defined types -and functions. - -This package provides the essential shared libraries for (almost) any -PostgreSQL client program or interface. You will need to install this -package in order to use any other PostgreSQL package or any clients -that need to connect to a PostgreSQL server. -%else - -%package -n %libpq -License: BSD3c(or similar) -Summary: Shared Libraries Required for PostgreSQL Clients -Group: Productivity/Databases/Clients -Provides: postgresql-libs = %version -Obsoletes: postgresql-libs < %version -# bug437293 -%ifarch ppc64 -Obsoletes: postgresql-libs-64bit -%endif - -%description -n %libpq -PostgreSQL is an advanced object-relational database management system -that supports an extended subset of the SQL standard, including -transactions, foreign keys, subqueries, triggers, user-defined types -and functions. - -This package provides the client library that most PostgreSQL client -program or language bindings are using. - -%package -n %libecpg -License: BSD3c(or similar) -Summary: Shared Libraries Required for PostgreSQL Clients -Group: Productivity/Databases/Clients -Provides: postgresql-libs:%_libdir/libecpg.so.6 - -%description -n %libecpg -PostgreSQL is an advanced object-relational database management system -that supports an extended subset of the SQL standard, including -transactions, foreign keys, subqueries, triggers, user-defined types -and functions. - -This package provides the runtime library of the embedded SQL C -preprocessor for PostgreSQL. -%endif - -%package -n %_name-devel -License: BSD3c(or similar) -Summary: PostgreSQL development header files and libraries -Group: Productivity/Databases/Tools -%if %libs_package -Requires: postgresql-libs -%else -Requires: %libpq %libecpg -%endif - -%description -n %_name-devel -PostgreSQL is an advanced object-relational database management system -that supports an extended subset of the SQL standard, including -transactions, foreign keys, subqueries, triggers, and user-defined -types and functions. - -This package contains the header files and libraries needed to compile -C applications which will directly interact with a PostgreSQL database -management server and the ECPG Embedded C Postgres preprocessor. You -need to install this package if you want to develop applications in C -which will interact with a PostgreSQL server. - - -%prep -%setup -q -n %_name-%version -# Keep the timestamp of configure, because patching it would otherwise -# confuse PostgreSQL's build system -touch -r configure tmp -%patch1 -%patch2 -# apply the following patch only on SLE10 -%if 0%{?suse_version} == 1010 -%patch3 -p1 -%endif -%patch4 -%ifarch %arm -%patch5 -p1 -%endif -touch -r tmp configure -rm tmp - -%build -export CFLAGS="%optflags $SP" -# uncomment the following line to enable the stack protector -# CFLAGS="$CFLAGS -fstack-protector" -%configure \ - --includedir=%_includedir/pgsql \ - --datadir=%_datadir/postgresql \ - --docdir=%_docdir \ - --disable-rpath \ - --enable-nls \ - --enable-thread-safety \ - --enable-integer-datetimes \ - --without-readline \ - --with-openssl \ - --with-ldap \ -%if 0%{?suse_version} > 910 - --with-gssapi \ - --with-libxml \ - --with-libxslt \ - --with-krb5 \ -%endif - --with-system-tzdata=/usr/share/zoneinfo -make -C src/backend %{?jobs:-j%jobs} libpq-recursive -make -C src/interfaces %{?jobs:-j%jobs} -make -C src/port %{?jobs:-j%jobs} libpgport.a -make -C src/bin/pg_config %{?jobs:-j%jobs} pg_config - -%install -SUBINSTALL=install -install -d %buildroot%_mandir/man1 -install doc/src/sgml/man1/{ecpg,pg_config}.1 %buildroot%_mandir/man1 -if test -n "$SUBINSTALL"; then -# Install them for postgresql-libs and uninstall them for postgresql -make -C src DESTDIR=%buildroot $SUBINSTALL-local -for dir in \ - config \ - src/bin/pg_config \ - src/interfaces \ - src/include \ - src/makefiles \ - src/port \ - src/test/regress -do - make -C $dir DESTDIR=%buildroot $SUBINSTALL -done -fi -# Don't ship static libraries, libpgport.a is needed, though. -rm -f $(ls %buildroot/%_libdir/*.a | grep -F -v libpgport.a) - -%find_lang libpq5-%{pg_minor_version} %libpq.lang -%find_lang ecpglib6-%{pg_minor_version} %libecpg.lang -cat %libpq.lang %libecpg.lang > postgresql-libs.lang -%find_lang ecpg-%{pg_minor_version} %_name-devel.lang -%find_lang pg_config-%{pg_minor_version} %_name-devel.lang -%if %libs_package - -%post -n postgresql-libs -p /sbin/ldconfig - -%postun -n postgresql-libs -p /sbin/ldconfig -%else - -%post -n %libpq -p /sbin/ldconfig - -%postun -n %libpq -p /sbin/ldconfig - -%post -n %libecpg -p /sbin/ldconfig - -%postun -n %libecpg -p /sbin/ldconfig -%endif - -%clean -rm -rf %buildroot -rm -f %my_provides - -%if %libs_package - -%files -n postgresql-libs -f postgresql-libs.lang -%else - -%files -n %libpq -f %libpq.lang -%endif -%defattr(-,root,root) -%_libdir/libpq.so.* -%if !%libs_package - -%files -n %libecpg -f %libecpg.lang -%defattr(-,root,root) -%endif -%_libdir/libecpg*.so.* -%_libdir/libpgtypes.so.* - -%files -n %_name-devel -f %_name-devel.lang -%defattr(-,root,root) -%doc %_mandir/man1/ecpg.1* -%_bindir/pg_config -%doc %_mandir/man1/pg_config.1* -%_bindir/ecpg -%_libdir/libpgport.a -%_libdir/lib*.so -%dir %_libdir/postgresql -%_libdir/postgresql/pgxs -%_includedir/pgsql -%dir %_datadir/postgresql -%_datadir/postgresql/pg_service.conf.sample - -%changelog diff --git a/postgresql-mkspecfiles b/postgresql-mkspecfiles deleted file mode 100644 index 0fa2b4c..0000000 --- a/postgresql-mkspecfiles +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash - -sed '/IF_LIBS/,/FI_LIBS/d - /IF_POSTGRES/d - /FI_POSTGRES/d -' postgresql.spec.in > postgresql.spec - -sed '/^Name: /s/$/-libs/ - /IF_POSTGRES/,/FI_POSTGRES/d - /IF_LIBS/d - /FI_LIBS/d -' postgresql.spec.in > postgresql-libs.spec diff --git a/postgresql-plperl.patch b/postgresql-plperl.patch deleted file mode 100644 index 96506fd..0000000 --- a/postgresql-plperl.patch +++ /dev/null @@ -1,30 +0,0 @@ -Index: config/perl.m4 -=================================================================== ---- config/perl.m4.orig -+++ config/perl.m4 -@@ -57,9 +57,7 @@ AC_DEFUN([PGAC_CHECK_PERL_CONFIGS], - AC_DEFUN([PGAC_CHECK_PERL_EMBED_LDFLAGS], - [AC_REQUIRE([PGAC_PATH_PERL]) - AC_MSG_CHECKING(for flags to link embedded Perl) --pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts` --pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'` --perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e ["s/ -arch [-a-zA-Z0-9_]*//g"]` -+perl_embed_ldflags=`$PERL -MExtUtils::Embed -e ldopts` - AC_SUBST(perl_embed_ldflags)dnl - if test -z "$perl_embed_ldflags" ; then - AC_MSG_RESULT(no) -Index: configure -=================================================================== ---- configure.orig -+++ configure -@@ -7157,9 +7157,7 @@ $as_echo "$perl_useshrplib" >&6; } - - { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5 - $as_echo_n "checking for flags to link embedded Perl... " >&6; } --pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts` --pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'` --perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"` -+perl_embed_ldflags=`$PERL -MExtUtils::Embed -e ldopts` - if test -z "$perl_embed_ldflags" ; then - { $as_echo "$as_me:$LINENO: result: no" >&5 - $as_echo "no" >&6; } diff --git a/postgresql-regress.patch b/postgresql-regress.patch deleted file mode 100644 index 12c5def..0000000 --- a/postgresql-regress.patch +++ /dev/null @@ -1,70 +0,0 @@ -Index: src/test/regress/expected/horology.out -=================================================================== ---- src/test/regress/expected/horology.out.orig -+++ src/test/regress/expected/horology.out -@@ -616,26 +616,26 @@ SELECT (timestamp with time zone 'tomorr - (1 row) - - -- timestamp with time zone, interval arithmetic around DST change --SET TIME ZONE 'CST7CDT'; --SELECT timestamp with time zone '2005-04-02 12:00-07' + interval '1 day' as "Apr 3, 12:00"; -+SET TIME ZONE 'CST6CDT'; -+SELECT timestamp with time zone '2005-04-02 12:00-06' + interval '1 day' as "Apr 3, 12:00"; - Apr 3, 12:00 - ------------------------------ - Sun Apr 03 12:00:00 2005 CDT - (1 row) - --SELECT timestamp with time zone '2005-04-02 12:00-07' + interval '24 hours' as "Apr 3, 13:00"; -+SELECT timestamp with time zone '2005-04-02 12:00-06' + interval '24 hours' as "Apr 3, 13:00"; - Apr 3, 13:00 - ------------------------------ - Sun Apr 03 13:00:00 2005 CDT - (1 row) - --SELECT timestamp with time zone '2005-04-03 12:00-06' - interval '1 day' as "Apr 2, 12:00"; -+SELECT timestamp with time zone '2005-04-03 12:00-05' - interval '1 day' as "Apr 2, 12:00"; - Apr 2, 12:00 - ------------------------------ - Sat Apr 02 12:00:00 2005 CST - (1 row) - --SELECT timestamp with time zone '2005-04-03 12:00-06' - interval '24 hours' as "Apr 2, 11:00"; -+SELECT timestamp with time zone '2005-04-03 12:00-05' - interval '24 hours' as "Apr 2, 11:00"; - Apr 2, 11:00 - ------------------------------ - Sat Apr 02 11:00:00 2005 CST -Index: src/test/regress/pg_regress.c -=================================================================== ---- src/test/regress/pg_regress.c.orig -+++ src/test/regress/pg_regress.c -@@ -72,7 +72,7 @@ static char *shellprog = SHELLPROG; - */ - #ifndef WIN32 - const char *basic_diff_opts = ""; --const char *pretty_diff_opts = "-C3"; -+const char *pretty_diff_opts = "-U5"; - #else - const char *basic_diff_opts = "-w"; - const char *pretty_diff_opts = "-w -C3"; -Index: src/test/regress/sql/horology.sql -=================================================================== ---- src/test/regress/sql/horology.sql.orig -+++ src/test/regress/sql/horology.sql -@@ -116,11 +116,11 @@ SELECT (timestamp with time zone 'tomorr - SELECT (timestamp with time zone 'tomorrow' > 'now') as "True"; - - -- timestamp with time zone, interval arithmetic around DST change --SET TIME ZONE 'CST7CDT'; --SELECT timestamp with time zone '2005-04-02 12:00-07' + interval '1 day' as "Apr 3, 12:00"; --SELECT timestamp with time zone '2005-04-02 12:00-07' + interval '24 hours' as "Apr 3, 13:00"; --SELECT timestamp with time zone '2005-04-03 12:00-06' - interval '1 day' as "Apr 2, 12:00"; --SELECT timestamp with time zone '2005-04-03 12:00-06' - interval '24 hours' as "Apr 2, 11:00"; -+SET TIME ZONE 'CST6CDT'; -+SELECT timestamp with time zone '2005-04-02 12:00-06' + interval '1 day' as "Apr 3, 12:00"; -+SELECT timestamp with time zone '2005-04-02 12:00-06' + interval '24 hours' as "Apr 3, 13:00"; -+SELECT timestamp with time zone '2005-04-03 12:00-05' - interval '1 day' as "Apr 2, 12:00"; -+SELECT timestamp with time zone '2005-04-03 12:00-05' - interval '24 hours' as "Apr 2, 11:00"; - RESET TIME ZONE; - - diff --git a/postgresql-rpmlintrc b/postgresql-rpmlintrc deleted file mode 100644 index 5ffd750..0000000 --- a/postgresql-rpmlintrc +++ /dev/null @@ -1,6 +0,0 @@ -addFilter("useless-explicit-provides") -addFilter("unnecessary-buildrequires") -addFilter("patch-not-applied") -addFilter("non-standard-uid") -addFilter("file-not-in-%lang") -addFilter("no-dependency-on") diff --git a/postgresql-sle10-timestamptz.patch b/postgresql-sle10-timestamptz.patch deleted file mode 100644 index 42abbdb..0000000 --- a/postgresql-sle10-timestamptz.patch +++ /dev/null @@ -1,24 +0,0 @@ -Only for SLE10. On other platforms, the test works. -poeml, Mon Jul 27 19:12:40 CEST 2009 - -diff -uNr postgresql-8.4.0.orig/src/test/regress/expected/timestamptz.out postgresql-8.4.0/src/test/regress/expected/timestamptz.out ---- postgresql-8.4.0.orig/src/test/regress/expected/timestamptz.out 2009-03-22 02:12:32.000000000 +0100 -+++ postgresql-8.4.0/src/test/regress/expected/timestamptz.out 2009-07-27 19:11:39.280087000 +0200 -@@ -153,7 +153,7 @@ - SELECT '20500710 173201 Europe/Helsinki'::timestamptz; -- DST - timestamptz - ------------------------------ -- Sun Jul 10 07:32:01 2050 PDT -+ Sun Jul 10 07:32:01 2050 PST - (1 row) - - SELECT '20500110 173201 Europe/Helsinki'::timestamptz; -- non-DST -@@ -165,7 +165,7 @@ - SELECT '205000-07-10 17:32:01 Europe/Helsinki'::timestamptz; -- DST - timestamptz - -------------------------------- -- Thu Jul 10 07:32:01 205000 PDT -+ Thu Jul 10 07:32:01 205000 PST - (1 row) - - SELECT '205000-01-10 17:32:01 Europe/Helsinki'::timestamptz; -- non-DST diff --git a/postgresql-sysconfig b/postgresql-sysconfig deleted file mode 100644 index a3ac0ea..0000000 --- a/postgresql-sysconfig +++ /dev/null @@ -1,39 +0,0 @@ -## Path: Applications/PostgreSQL -## Description: The PostgreSQL Database System -## Type: string() -## Default: "~postgres/data" -## ServiceRestart: postgresql -# -# In which directory should the PostgreSQL database reside? -# -POSTGRES_DATADIR="~postgres/data" - -## Path: Applications/PostgreSQL -## Description: The PostgreSQL Database System -## Type: string() -## Default: "" -## ServiceRestart: postgresql -# -# The options that are given to the PostgreSQL master daemon on startup. -# See the manual pages for postmaster and postgres for valid options. -# -# Don't put "-D datadir" here since it is set by the startup script -# based on the variable POSTGRES_DATADIR above. -# -POSTGRES_OPTIONS="" - -## Path: Applications/PostgreSQL -## Description: The PostgreSQL Database System -## Type: string() -## Default: "C" -## ServiceRestart: "" -# -# Specifies the locale under which the PostgreSQL database location -# should be initialized and run. If needed, it has to be changed -# before PostgreSQL is started for the first time. To change the -# locale of an existsing PostgreSQL database location, it must be -# dumped, removed and initialized from scratch using the new locale. -# -# If unset or empty $RC_LANG from /etc/sysconfig/language is used. -# -POSTGRES_LANG="" diff --git a/postgresql.changes b/postgresql.changes deleted file mode 100644 index e8343e9..0000000 --- a/postgresql.changes +++ /dev/null @@ -1,1931 +0,0 @@ -------------------------------------------------------------------- -Mon Mar 12 08:54:39 UTC 2012 - max@suse.com - -- Security and bugfix release 9.1.3: - * Require execute permission on the trigger function for "CREATE - TRIGGER" (CVE-2012-0866, bnc#749299). - * Remove arbitrary limitation on length of common name in SSL - certificates (CVE-2012-0867, bnc#749301). - * Convert newlines to spaces in names written in pg_dump - comments (CVE-2012-0868, bnc#749303). - * See the release notes for the rest of the changes: - http://www.postgresql.org/docs/9.1/static/release.html - /usr/share/doc/packages/postgresql/HISTORY - -------------------------------------------------------------------- -Wed Jan 25 17:36:50 CET 2012 - mhrusecky@suse.cz - -- fixed build for arm - - using atomic builtins from gcc - - patch taken from upstream mailing list - -------------------------------------------------------------------- -Fri Dec 9 17:37:40 UTC 2011 - darin@darins.net - -- New version 9.1.2. For detailed release notes see: - http://www.postgresql.org/docs/9.1/static/release-9-1-2.html - -------------------------------------------------------------------- -Wed Oct 5 16:41:31 UTC 2011 - max@suse.com - -- New version 9.1.1. For detailed release notes, see: - http://www.postgresql.org/docs/9.1/static/release-9-1-1.html -- Stop using deprecated silent_mode in default config. -- postgresql-perl514.patch is no longer needed. -- Use %_smp_mflags for parallel make -- Keep the rpath when linking plperl [bnc#578053]. - -------------------------------------------------------------------- -Fri Sep 16 17:17:08 UTC 2011 - jengelh@medozas.de - -- Add postgresql-devel to baselibs - -------------------------------------------------------------------- -Wed Jun 8 16:40:03 UTC 2011 - max@novell.com - -- Revert the postgresql-libs package split for SLE in preparation - of submitting the package to SLE11-SP1. - -------------------------------------------------------------------- -Wed May 25 13:06:16 UTC 2011 - max@novell.com - -- Fix file name of last added patch and remove overlong comment. - -------------------------------------------------------------------- -Wed May 25 08:06:44 UTC 2011 - idonmez@novell.com - -- Add postgresql-9.0.4-perl514.patch: For Perl 5.14 GvCV(sv) is no - longer an lvalue and needs to be replaced by GvCV_set(sv, value) - -------------------------------------------------------------------- -Thu Apr 21 10:06:45 UTC 2011 - max@novell.com - -- Bugfix release: 9.0.4: - * This update contains a critical fix to the pg_upgrade utility - which prevents significant downtime issues. Do not use - pg_upgrade without installing this update first. - http://wiki.postgresql.org/wiki/20110408pg_upgrade_fix - * change SQLSTATE for Hot Standby warnings - * prevent bgwriter hang during recovery - * prevent recursive composite type creation - * disallow dropping tables whose triggers are still pending - * allow use of "replication" as a user name - * prevent a crash during GEQO planning - * improve join plans for tables with missing statistics - * fix error with SELECT FOR UPDATE in a subselect - * close PL/python array slice memory leak - * allow SSL connections for users with no home directory -- http://www.postgresql.org/docs/9.0/static/release-9-0-4.html - -------------------------------------------------------------------- -Fri Apr 1 10:23:05 UTC 2011 - nkrinner@novell.com - -- enabled --with-ossp-uuid - -------------------------------------------------------------------- -Fri Mar 4 15:02:11 UTC 2011 - max@novell.com - -- Fix the fix of the fix for the successors of postgresql-libs. - -------------------------------------------------------------------- -Mon Feb 21 01:09:08 CET 2011 - ro@suse.de - -- provide postgresql-libs in the specfile that actually builds - the libs package - -------------------------------------------------------------------- -Sat Feb 19 20:11:07 UTC 2011 - coolo@novell.com - -- fix update of libs - -------------------------------------------------------------------- -Thu Feb 17 11:38:42 UTC 2011 - max@novell.com - -- Move all of pgxs into the devel package to fix build of server - extensions. - -------------------------------------------------------------------- -Wed Feb 16 19:10:54 UTC 2011 - max@novell.com - -- Move pg_config from -server to -devel to fix build of certain - client apps and language bindings, but using pg_config on the - client side is still considered broken, because it tells what - got linked into the server binary not what got linked into libpq. - -------------------------------------------------------------------- -Tue Feb 8 18:23:22 UTC 2011 - max@novell.com - -- Remove unneeded PreReq from postgresql on postgresql-libs. - -------------------------------------------------------------------- -Fri Feb 4 11:40:12 UTC 2011 - max@suse.de - -- New version: 9.0.3. For the complete release notes, see - http://www.postgresql.org/docs/9.0/static/release.html -- Build libs and devel separate from the main package. -- Build the PL subpackages as part of the main package. -- Have separate packages for libpq and libecpg. -- Generate the main and lib spec files from postgresql.spec.in. - -------------------------------------------------------------------- -Wed Dec 8 13:00:12 UTC 2010 - max@novell.com - -- Fix LSB conformance of the init script (bnc#658014). - -------------------------------------------------------------------- -Thu Oct 7 17:34:57 CEST 2010 - max@suse.de - -- Security and bugfix release 8.4.5 (bnc#643771): - - * Use a separate interpreter for each calling SQL userid in - PL/Perl and PL/Tcl (CVE-2010-3433). - - * Prevent possible crashes in pg_get_expr() by disallowing it - from being called with an argument that is not one of the - system catalog columns it's intended to be used with. - - * Fix incorrect placement of placeholder evaluation. - - * Fix possible duplicate scans of UNION ALL member relations. - - * Fix "cannot handle unplanned sub-select" error. - - * Fix mishandling of whole-row Vars that reference a view or - sub-select and appear within a nested sub-select. - - * Fix mishandling of cross-type IN comparisons. - - * Fix computation of ANALYZE statistics for tsvector columns. - - * Improve planner's estimate of memory used by array_agg(), - string_agg(), and similar aggregate functions. - - * Fix failure to mark cached plans as transient. - - * Reduce PANIC to ERROR in some occasionally-reported btree - failure cases, and provide additional detail in the resulting - error messages. - - * Fix incorrect search logic for partial-match queries with GIN - indexes. - - * Prevent show_session_authorization() from crashing within - autovacuum processes. - - * Defend against functions returning setof record where not all - the returned rows are actually of the same rowtype. - - * Fix possible corruption of pending trigger event lists during - subtransaction rollback. - - * Fix possible failure when hashing a pass-by-reference function - result. - - * Improve merge join's handling of NULLs in the join columns. - - * Take care to fsync the contents of lockfiles (both - postmaster.pid and the socket lockfile) while writing them. - - * Avoid recursion while assigning XIDs to heavily-nested - subtransactions. - - * Avoid holding open old WAL segments in the walwriter process. - - * Fix log_line_prefix's %i escape, which could produce junk - early in backend startup. - - * Prevent misinterpretation of partially-specified relation - options for TOAST tables. - - * Fix inheritance count tracking in ALTER TABLE ... ADD - CONSTRAINT. - - * Fix possible data corruption in ALTER TABLE ... SET TABLESPACE - when archiving is enabled. - - * Allow CREATE DATABASE and ALTER DATABASE ... SET TABLESPACE to - be interrupted by query-cancel. - - * Improve CREATE INDEX's checking of whether proposed index - expressions are immutable. - - * Fix REASSIGN OWNED to handle operator classes and families. - - * Fix possible core dump when comparing two empty tsquery values. - - * Fix LIKE's handling of patterns containing % followed by _ - - * Re-allow input of Julian dates prior to 0001-01-01 AD. - - * Fix PL/pgSQL to throw an error, not crash, if a cursor is - closed within a FOR loop that is iterating over that cursor. - - * In PL/Python, defend against null pointer results from - PyCObject_AsVoidPtr and PyCObject_FromVoidPtr - - * In libpq, fix full SSL certificate verification for the case - where both host and hostaddr are specified. - - * Make psql recognize DISCARD ALL as a command that should not - be encased in a transaction block in autocommit-off mode. - - * Fix some issues in pg_dump's handling of SQL/MED objects. - - * Improve pg_dump and pg_restore's handling of non-seekable - archive files. This is important for proper functioning of - parallel restore. - - * Improve parallel pg_restore's ability to cope with selective - restore (-L option). - - * Fix ecpg to process data from RETURNING clauses correctly. - - * Fix some memory leaks in ecpg. - - * Improve contrib/dblink's handling of tables containing dropped - columns. - - * Fix connection leak after "duplicate connection name" errors - in contrib/dblink. - - * Fix contrib/dblink to handle connection names longer than 62 - bytes correctly. - - * Add hstore(text, text) function to contrib/hstore. - -------------------------------------------------------------------- -Thu May 27 10:52:05 CEST 2010 - max@suse.de - -- Security and bugfix release 8.4.4: - - * Enforce restrictions in plperl using an opmask applied to the - whole interpreter, instead of using Safe.pm. Recent - developments have convinced us that Safe.pm is too insecure to - rely on for making plperl trustable. This change removes use of - Safe.pm altogether, in favor of using a separate interpreter - with an opcode mask that is always applied. Pleasant side - effects of the change include that it is now possible to use - Perl's strict pragma in a natural way in plperl, and that - Perl's $a and $b variables work as expected in sort routines, - and that function compilation is significantly - faster. (CVE-2010-1169) - - * Prevent PL/Tcl from executing untrustworthy code from - pltcl_modules. PL/Tcl's feature for autoloading Tcl code from - a database table could be exploited for trojan-horse attacks, - because there was no restriction on who could create or insert - into that table. This change disables the feature unless - pltcl_modules is owned by a superuser. (However, the - permissions on the table are not checked, so installations that - really need a less-than-secure modules table can still grant - suitable privileges to trusted non-superusers.) Also, prevent - loading code into the unrestricted "normal" Tcl interpreter - unless we are really going to execute a pltclu - function. (CVE-2010-1170) - - * Fix data corruption during WAL replay of ALTER ... SET - TABLESPACE. When archive_mode is on, ALTER ... SET TABLESPACE - generates a WAL record whose replay logic was incorrect. It - could write the data to the wrong place, leading to - possibly-unrecoverable data corruption. Data corruption would - be observed on standby slaves, and could occur on the master as - well if a database crash and recovery occurred after committing - the ALTER and before the next checkpoint. - - * Fix possible crash if a cache reset message is received during - rebuild of a relcache entry. This error was introduced in 8.4.3 - while fixing a related failure. - - * Apply per-function GUC settings while running the language - validator for the function. - - * This avoids failures if the function's code is invalid without - the setting; an example is that SQL functions may not parse if - the search_path is not correct. - - * Do constraint exclusion for inherited UPDATE and DELETE target - tables when constraint_exclusion = partition. Due to an - oversight, this setting previously only caused constraint - exclusion to be checked in SELECT commands. - - * Do not allow an unprivileged user to reset superuser-only - parameter settings. Previously, if an unprivileged user ran - ALTER USER ... RESET ALL for himself, or ALTER DATABASE - ... RESET ALL for a database he owns, this would remove all - special parameter settings for the user or database, even ones - that are only supposed to be changeable by a superuser. Now, - the ALTER will only remove the parameters that the user has - permission to change. - - * Avoid possible crash during backend shutdown if shutdown occurs - when a CONTEXT addition would be made to log entries. In some - cases the context-printing function would fail because the - current transaction had already been rolled back when it came - time to print a log message. - - * Fix erroneous handling of %r parameter in recovery_end_command. - The value always came out zero. - - * Ensure the archiver process responds to changes in - archive_command as soon as possible. - - * Fix pl/pgsql's CASE statement to not fail when the case - expression is a query that returns no rows. - - * Update pl/perl's ppport.h for modern Perl versions. - - * Fix assorted memory leaks in pl/python. - - * Handle empty-string connect parameters properly in ecpg. - - * Prevent infinite recursion in psql when expanding a variable - that refers to itself. - - * Fix psql's \copy to not add spaces around a dot within \copy - (select ...). Addition of spaces around the decimal point in a - numeric literal would result in a syntax error. - - * Avoid formatting failure in psql when running in a locale - context that doesn't match the client_encoding. - - * Fix unnecessary "GIN indexes do not support whole-index scans" - errors for unsatisfiable queries using contrib/intarray - operators. - - * Ensure that contrib/pgstattuple functions respond to cancel - interrupts promptly. - - * Make server startup deal properly with the case that shmget() - returns EINVAL for an existing shared memory segment. - - This behavior has been observed on BSD-derived kernels - including OS X. It resulted in an entirely-misleading startup - failure complaining that the shared memory request size was too - large. - -------------------------------------------------------------------- -Thu Apr 29 11:56:05 CEST 2010 - max@suse.de - -- Use %configure to pick up the default directories (bnc#600616). - -------------------------------------------------------------------- -Tue Mar 16 15:27:42 CET 2010 - max@suse.de - -- Security and bugfix release 8.4.3. - -------------------------------------------------------------------- -Thu Mar 11 18:23:38 CET 2010 - max@suse.de - -- Disable GSSAPI, XML, kerberos and make check in OBS for SLES9. - -------------------------------------------------------------------- -Thu Mar 11 17:57:38 CET 2010 - max@suse.de - -- Fix build for SLES9 - -------------------------------------------------------------------- -Tue Feb 9 14:42:29 CET 2010 - max@suse.de - -- Fix package descriptions. - -------------------------------------------------------------------- -Wed Dec 16 16:19:20 CET 2009 - max@suse.de - -- Security and bugfix release 8.4.2: - - * CVE-2009-4136: Protect against indirect security threats - caused by index functions changing session-local state. This - change prevents allegedly-immutable index functions from - possibly subverting a superuser's session. - - * CVE-2009-4034: Reject SSL certificates containing an embedded - null byte in the common name (CN) field. This prevents - unintended matching of a certificate to a server or client - name during SSL validation. - - * Fix hash index corruption. The 8.4 change that made hash - indexes keep entries sorted by hash value failed to update the - bucket splitting and compaction routines to preserve the - ordering. So application of either of those operations could - lead to permanent corruption of an index, in the sense that - searches might fail to find entries that are present. To deal - with this, it is recommended to REINDEX any hash indexes you - may have after installing this update. - - * Fix possible crash during backend-startup-time cache - initialization - - * Avoid crash on empty thesaurus dictionary - - * Prevent signals from interrupting VACUUM at unsafe times. This - fix prevents a PANIC if a VACUUM FULL is cancelled after it's - already committed its tuple movements, as well as transient - errors if a plain VACUUM is interrupted after having truncated - the table. - - * Fix possible crash due to integer overflow in hash table size - calculation. This could occur with extremely large planner - estimates for the size of a hashjoin's result. - - * Fix crash if a DROP is attempted on an internally-dependent - object. - - * Fix very rare crash in inet/cidr comparisons. - - * Ensure that shared tuple-level locks held by prepared - transactions are not ignored. - - * Fix premature drop of temporary files used for a cursor that is - accessed within a subtransaction. - - * Fix memory leak in syslogger process when rotating to a new CSV - logfile. - - * Fix memory leak in postmaster when re-parsing "pg_hba.conf". - - * Make FOR UPDATE/SHARE in the primary query not propagate into - WITH queries. - - * Fix bug with a WITH RECURSIVE query immediately inside another - one. - - * Fix concurrency bug in hash indexes. Concurrent insertions - could cause index scans to transiently report wrong results. - - * Fix incorrect logic for GiST index page splits, when the split - depends on a non-first column of the index. - - * Fix wrong search results for a multi-column GIN index with - fastupdate enabled. - - * Fix bugs in WAL entry creation for GIN indexes. These bugs were - masked when full_page_writes was on, but with it off a WAL - replay failure was certain if a crash occurred before the next - checkpoint. - - * Don't error out if recycling or removing an old WAL file fails - at the end of checkpoint. It's better to treat the problem as - non-fatal and allow the checkpoint to complete. Future - checkpoints will retry the removal. Such problems are not - expected in normal operation, but have been seen to be caused - by misdesigned Windows anti-virus and backup software. - - * Ensure WAL files aren't repeatedly archived on Windows. This is - another symptom that could happen if some other process - interfered with deletion of a no-longer-needed file. - - * Fix PAM password processing to be more robust. The previous - code is known to fail with the combination of the Linux - pam_krb5 PAM module with Microsoft Active Directory as the - domain controller. It might have problems elsewhere too, since - it was making unjustified assumptions about what arguments the - PAM stack would pass to it. - - * Raise the maximum authentication token (Kerberos ticket) size - in GSSAPI and SSPI authentication methods. While the old - 2000-byte limit was more than enough for Unix Kerberos - implementations, tickets issued by Windows Domain Controllers - can be much larger. - - * Ensure that domain constraints are enforced in constructs like - ARRAY[...]::domain, where the domain is over an array type. - - * Fix foreign-key logic for some cases involving composite-type - columns as foreign keys. - - * Ensure that a cursor's snapshot is not modified after it is - created. This could lead to a cursor delivering wrong results - if later operations in the same transaction modify the data the - cursor is supposed to return. - - * Fix CREATE TABLE to properly merge default expressions coming - from different inheritance parent tables. This used to work but - was broken in 8.4. - - * Re-enable collection of access statistics for sequences. This - used to work but was broken in 8.3. - - * Fix processing of ownership dependencies during CREATE OR REPLACE - FUNCTION. - - * Fix incorrect handling of WHERE "x"="x" conditions. In some cases - these could get ignored as redundant, but they aren't -- they're - equivalent to "x" IS NOT NULL. - - * Fix incorrect plan construction when using hash aggregation to - implement DISTINCT for textually identical volatile - expressions. - - * Fix Assert failure for a volatile SELECT DISTINCT ON expression. - - * Fix ts_stat() to not fail on an empty tsvector value. - - * Make text search parser accept underscores in XML attributes. - - * Fix encoding handling in xml binary input. If the XML header - doesn't specify an encoding, we now assume UTF-8 by default; - the previous handling was inconsistent. - - * Fix bug with calling plperl from plperlu or vice versa. An - error exit from the inner function could result in crashes due - to failure to re-select the correct Perl interpreter for the - outer function. - - * Fix session-lifespan memory leak when a PL/Perl function is - redefined. - - * Ensure that Perl arrays are properly converted to PostgreSQL - arrays when returned by a set-returning PL/Perl function. This - worked correctly already for non-set-returning functions. - - * Fix rare crash in exception processing in PL/Python. - - * Fix ecpg problem with comments in DECLARE CURSOR statements. - - * Fix ecpg to not treat recently-added keywords as reserved - words. This affected the keywords CALLED, CATALOG, DEFINER, - ENUM, FOLLOWING, INVOKER, OPTIONS, PARTITION, PRECEDING, RANGE, - SECURITY, SERVER, UNBOUNDED, and WRAPPER. - - * Re-allow regular expression special characters in psql's \df - function name parameter. - - * In "contrib/pg_standby", disable triggering failover with a - signal on Windows. This never did anything useful, because - Windows doesn't have Unix-style signals, but recent changes - made it actually crash. - - * Put FREEZE and VERBOSE options in the right order in the VACUUM - command that "contrib/vacuumdb" produces. - - * Fix possible leak of connections when "contrib/dblink" - encounters an error. - - * Ensure psql's flex module is compiled with the correct system - header definitions. This fixes build failures on platforms - where --enable-largefile causes incompatible changes in the - generated code. - - * Make the postmaster ignore any application_name parameter in - connection request packets, to improve compatibility with - future libpq versions. - - * Update the timezone abbreviation files to match current reality - This includes adding IDT to the default timezone abbreviation - set. - -------------------------------------------------------------------- -Wed Dec 16 10:46:01 CET 2009 - jengelh@medozas.de - -- package documentation as noarch - -------------------------------------------------------------------- -Mon Dec 14 16:08:29 CET 2009 - jengelh@medozas.de - -- add baselibs.conf as a source - -------------------------------------------------------------------- -Wed Sep 16 18:00:20 UTC 2009 - crrodriguez@novell.com - -- use find_lang to package language files correctly - -------------------------------------------------------------------- -Thu Sep 10 12:06:36 CEST 2009 - max@suse.de - -- Security and bugfix release 8.4.1: - - * Fix WAL page header initialization at the end of archive - recovery. This could lead to failure to process the WAL in a - subsequent archive recovery. - * Fix "cannot make new WAL entries during recovery" error. - * Fix problem that could make expired rows visible after a crash. - This bug involved a page status bit potentially not being set - correctly after a server crash. - * Disallow RESET ROLE and RESET SESSION AUTHORIZATION inside - security-definer functions. This covers a case that was missed - in the previous patch that disallowed SET ROLE and SET SESSION - AUTHORIZATION inside security-definer functions. - (See CVE-2007-6600) - * Make LOAD of an already-loaded loadable module into a no-op. - * Formerly, LOAD would attempt to unload and re-load the module, - but this is unsafe and not all that useful. - * Make window function PARTITION BY and ORDER BY items always be - interpreted as simple expressions. In 8.4.0 these lists were - parsed following the rules used for top-level GROUP BY and - ORDER BY lists. But this was not correct per the SQL standard, - and it led to possible circularity. - * Fix several errors in planning of semi-joins. These led to - wrong query results in some cases where IN or EXISTS was used - together with another join. - * Fix handling of whole-row references to subqueries that are - within an outer join. An example is SELECT COUNT(ss.*) FROM - ... LEFT JOIN (SELECT ...) ss ON .... Here, ss.* would be - treated as ROW(NULL,NULL,...) for null-extended join rows, - which is not the same as a simple NULL. Now it is treated as a - simple NULL. - * Fix Windows shared-memory allocation code. This bug led to the - often-reported "could not reattach to shared memory" error - message. - * Fix locale handling with plperl. - This bug could cause the server's locale setting to change when - a plperl function is called, leading to data corruption. - * Fix handling of reloptions to ensure setting one option doesn't - force default values for others. - * Ensure that a "fast shutdown" request will forcibly terminate - open sessions, even if a "smart shutdown" was already in - progress. - * Avoid memory leak for array_agg() in GROUP BY queries. - * Treat to_char(..., 'TH') as an uppercase ordinal suffix with - 'HH'/'HH12'. It was previously handled as 'th' (lowercase). - * Include the fractional part in the result of EXTRACT(second) - and EXTRACT(milliseconds) for time and time with time zone - inputs. - This has always worked for floating-point datetime - configurations, but was broken in the integer datetime code. - * Fix overflow for INTERVAL 'x ms' when x is more than 2 million - and integer datetimes are in use. - * Improve performance when processing toasted values in index - scans. This is particularly useful for PostGIS. - * Fix a typo that disabled commit_delay. - * Output early-startup messages to postmaster.log if the server - is started in silent mode. Previously such error messages were - discarded, leading to difficulty in debugging. - * Remove translated FAQs. They are now on the wiki. The main FAQ - was moved to the wiki some time ago. - * Fix pg_ctl to not go into an infinite loop if postgresql.conf - is empty. - * Fix several errors in pg_dump's --binary-upgrade mode. - * pg_dump --binary-upgrade is used by pg_migrator. - * Fix contrib/xml2's xslt_process() to properly handle the - maximum number of parameters (twenty). - * Improve robustness of libpq's code to recover from errors - during COPY FROM STDIN. - - * Avoid including conflicting readline and editline header files - when both libraries are installed. - - * Work around gcc bug that causes "floating-point exception" - instead of "division by zero" on some platforms. - -------------------------------------------------------------------- -Mon Jul 27 20:24:35 CEST 2009 - poeml@suse.de - -- postgresql-8.4.0-sle10-timestamptz.patch added, and applied - _only_ on SLE10. It fixes a build failure due to a test case that - seems to be confused by daylight saving time in the time zone - that the test expects its result (PDT vs. PST). Since this - failure happened only on SLE10, I assume that the test case isn't - broken, and some peculiarity on that (rather old now) platform is - to blame (possibly too old timezone files). Also, the testcase is - checking correctness when converting timezones > 32 bit, which - actually seems to work. - -------------------------------------------------------------------- -Wed Jul 15 21:10:36 CEST 2009 - poeml@suse.de - -- replace "ident sameuser" with "ident" as auth method for the - initdb call in the init script, because the former doesn't work - with PostgreSQL 8.4. With the generated pg_hba.conf, PostgreSQL - failed to start. Added note to the upgrade READMEs. [bnc#522375] - -------------------------------------------------------------------- -Tue Jul 7 15:56:49 CEST 2009 - max@suse.de - -- New major release: 8.4.0 -- Improvements include: - * Windowing Functions - * Common Table Expressions and Recursive Queries - * Default and variadic parameters for functions - * Parallel Restore - * Column Permissions - * Per-database locale settings - * Improved hash indexes - * Improved join performance for EXISTS and NOT EXISTS queries - * Easier-to-use Warm Standby - * Automatic sizing of the Free Space Map - * Visibility Map (greatly reduces vacuum overhead for - slowly-changing tables) - * Version-aware psql (backslash commands work against older - servers) - * Support SSL certificates for user authentication - * Per-function runtime statistics - * Easy editing of functions in psql - * New contrib modules: pg_stat_statements, auto_explain, citext, - btree_gin - -------------------------------------------------------------------- -Wed May 6 17:57:43 CEST 2009 - max@suse.de - -- Remove dependency on local posixrules from horology test. - -------------------------------------------------------------------- -Mon Mar 23 18:12:42 CET 2009 - max@suse.de - -- Security release 8.3.7 - - * Fixes a vulnerability that allowed remote authenticated - users to cause a denial of service (stack consumption) - via mismatched encoding conversion requests. - - * Details of the other bugfixes contained in this and - previous releases can be found here: - http://www.postgresql.org/docs/8.3/static/release.html - /usr/share/doc/packages/postgresql/HISTORY - -- Users of GiST indexes should "REINDEX" them after installing - this update. - -- Re-added libpgport.a to the devel package, as some apps require - it, although it is meant to be internal to the PostgreSQL - backend. - -- Fix removal of leftover files on database startup (bnc#473644). - -------------------------------------------------------------------- -Wed Jan 7 12:34:56 CET 2009 - olh@suse.de - -- obsolete old -XXbit packages (bnc#437293) - -------------------------------------------------------------------- -Wed Nov 5 16:07:45 CET 2008 - max@suse.de - -- Bugfix release: 8.3.5 - * Fix GiST index corruption due to marking the wrong index - entry "dead" after a deletion. This would result in index - searches failing to find rows they should have found. - * Fix backend crash when the client encoding cannot represent a - localized error message. - * Fix possible crash in bytea-to-XML mapping. - * Fix possible crash when deeply nested functions are invoked - from a trigger. - * Improve optimization of "expression" IN ("expression-list") - queries. - * Fix mis-expansion of rule queries when a sub-SELECT appears - in a function call in FROM, a multi-row VALUES list, or a - RETURNING list. - * Fix Assert failure during rescan of an IS NULL search of - a GiST index. - * Fix memory leak during rescan of a hashed aggregation plan. - * Ensure an error is reported when a newly-defined PL/pgSQL - trigger function is invoked as a normal function. - * Force a checkpoint before "CREATE DATABASE" starts to copy - files This prevents a possible failure if files had recently - been deleted in the source database. - * Prevent possible collision of relfilenode numbers when moving - a table to another tablespace with "ALTER SET TABLESPACE". - * Fix incorrect text search headline generation when single - query item matches first word of text. - * Fix improper display of fractional seconds in interval - values when using a non-ISO datestyle in an - "--enable-integer-datetimes" build. - * Make ILIKE compare characters case-insensitively even when - they're escaped. - * Ensure "DISCARD" is handled properly by statement logging. - * Fix incorrect logging of last-completed-transaction time - during PITR recovery. - * Ensure SPI_getvalue and SPI_getbinval behave correctly when - the passed tuple and tuple descriptor have different numbers - of columns. - * Fix small memory leak when using libpq's gsslib parameter. - * Ensure libgssapi is linked into libpq if needed. - * Fix ecpg's parsing of "CREATE ROLE". - * Fix recent breakage of pg_ctl restart. - -------------------------------------------------------------------- -Thu Sep 25 13:19:09 CEST 2008 - max@suse.de - -- Bugfix release: 8.3.4 -- Issues fixed include autovacuum crashes reported by several - users, two Heap Only Tuple bugs, a foreign key failure - condition, a too-small lock address space, two Write Ahead Log - bugs, several planner mistakes, and numerous "corner condition" - bugs. - -------------------------------------------------------------------- -Fri Sep 5 10:15:20 CEST 2008 - max@suse.de - -- New version: 8.3.3 with countless bug fixes over 8.3.1. -- For details, see - http://www.postgresql.org/docs/8.3/static/release-8-3-2.html , - http://www.postgresql.org/docs/8.3/static/release-8-3-3.html , - or /usr/share/doc/packages/postgresql/HISTORY . - -------------------------------------------------------------------- -Thu Aug 28 23:23:58 CEST 2008 - cthiel@suse.de - -- fix init script - -------------------------------------------------------------------- -Mon May 19 18:31:54 CEST 2008 - schwab@suse.de - -- Fix broken configure check. - -------------------------------------------------------------------- -Fri May 9 10:25:15 CEST 2008 - aj@suse.de - -- Add baselibs.conf. - -------------------------------------------------------------------- -Fri Apr 18 11:37:38 CEST 2008 - max@suse.de - -- Removed static libs from postgresql-devel. -- Removed more old Obsoletes: tags. -- Fixed path to pid file in init script. -- Moved "make check" to %check section -- Silence some bogus rpmlint warnings - -------------------------------------------------------------------- -Thu Apr 10 14:23:15 CEST 2008 - max@suse.de - -- Adopt the 8.3.1 package from Peter Eisentraut's OBS project. -- New features in PostgreSQL 8.3 include: - * Full text search is integrated into the core database system - * Support for the SQL/XML standard, including new operators and - an XML data type - * Enumerated data types (ENUM) - * Arrays of composite types - * Universally Unique Identifier (UUID) data type - * Add control over whether NULLs sort first or last - * Updatable cursors - * Server configuration parameters can now be set on a - per-function basis - * User-defined types can now have type modifiers - * Automatically re-plan cached queries when table definitions - change or statistics are updated - * Numerous improvements in logging and statistics collection - * Support multiple concurrent autovacuum processes, and other - autovacuum improvements -- Remove old provides/obsoletes tags for way-back package renames. - -------------------------------------------------------------------- -Thu Apr 10 12:54:45 CEST 2008 - ro@suse.de - -- added baselibs.conf file to build xxbit packages - for multilib support - -------------------------------------------------------------------- -Thu Jan 10 14:34:16 CET 2008 - max@suse.de - -- Update to 8.2.6 to fix five security issues: - - Index Functions Privilege Escalation: CVE-2007-6600 - - Regular Expression Denial-of-Service: CVE-2007-4772, - CVE-2007-6067, CVE-2007-4769, #329282 - - DBLink Privilege Escalation: CVE-2007-6601, #328403 - -------------------------------------------------------------------- -Wed Jun 6 16:02:58 CEST 2007 - max@suse.de - -- New version: 8.2.4 -- The list of changes between the 8.1 and 8.2 series is too long - to reproduce here. It can be found under - /usr/share/doc/packages/postgresql/HISTORY when the postgresql - package is installed or online at http://www.postgresql.org. -- Splited the postgresql-pl package into individual packages for - PL/Perl, PL/Python and PL/Tcl. -- Added a config file for SuSEfirewall2 (#247370). - -------------------------------------------------------------------- -Thu Mar 29 14:32:16 CEST 2007 - rguenther@suse.de - -- Add bison, flex and zlib-devel BuildRequires. - -------------------------------------------------------------------- -Tue Oct 17 15:01:57 CEST 2006 - max@suse.de - -- New patchlevel release: 8.1.5 -- Disallow aggregate functions in "UPDATE" commands, except within - sub-SELECTs. The behavior of such an aggregate was unpredictable, - and in 8.1.X could cause a crash, so it has been disabled. -- Fix core dump when an untyped literal is taken as ANYARRAY. -- Fix core dump in duration logging for extended query protocol when - a "COMMIT" or "ROLLBACK" is executed. -- Fix mishandling of AFTER triggers when query contains a SQL function - returning multiple rows. -- Fix "ALTER TABLE ... TYPE" to recheck NOT NULL for USING clause. -- Fix string_to_array() to handle overlapping matches for the - separator string. -- Fix to_timestamp() for AM/PM formats. -- Fix autovacuum's calculation that decides whether "ANALYZE" is - needed. -- Fix corner cases in pattern matching for psql's \d commands. -- Fix index-corrupting bugs in /contrib/ltree. -- Numerous robustness fixes in ecpg. -- Fix backslash escaping in /contrib/dbmirror. -- Minor fixes in /contrib/dblink and /contrib/tsearch2. -- Efficiency improvements in hash tables and bitmap index scans. - -------------------------------------------------------------------- -Wed May 24 10:24:26 CEST 2006 - max@suse.de - -- Update to 8.1.4 to fix SQL injection vulnerabilities - (bug #177931, CVE-2006-2313, CVE-2006-2314). - -- Added a new postgresql-SECURITY-NOTICE file with an FAQ that - explains the issues. - -------------------------------------------------------------------- -Mon Feb 13 15:47:46 CET 2006 - max@suse.de - -- New version: 8.1.3 (#150376). -- Relaxed dependencies between subpackages to simplify future - updates. - -------------------------------------------------------------------- -Wed Jan 25 21:40:32 CET 2006 - mls@suse.de - -- converted neededforbuild to BuildRequires - -------------------------------------------------------------------- -Fri Jan 13 17:21:31 CET 2006 - max@suse.de - -- Moved from logrotate to PostgreSQL's own log rotation facility. -- Log files are now located under /var/lib/pgsql/data/pg_log . -- Improved error reporting on test suite failures. - -------------------------------------------------------------------- -Thu Dec 22 17:26:01 CET 2005 - max@suse.de - -- New version: 8.1.1 - -------------------------------------------------------------------- -Fri Jun 17 09:50:16 CEST 2005 - max@suse.de - -- Removed bogus %patch3 - -------------------------------------------------------------------- -Thu Jun 2 18:59:06 CEST 2005 - max@suse.de - -- Added postgresql-CAN-2005-1409-1410-fix.sh for fixing existing - installations, and referred to it in the SECURITY-NOTICE. - -------------------------------------------------------------------- -Tue May 17 18:56:40 CEST 2005 - max@suse.de - -- Added postgresql-SECURITY-NOTICE to describe the manual actions - that are needed to apply the bugfixes from 8.0.3 to existing - installations. - -------------------------------------------------------------------- -Tue May 10 18:06:54 CEST 2005 - max@suse.de - -- New patch release: 8.0.3 -- Fixes bug #82869, CAN-2005-1410, and CAN-2005-1409 -- Obsoletes postgresql-CAN-2005-0247.patch - -------------------------------------------------------------------- -Mon Apr 11 13:35:34 CEST 2005 - max@suse.de - -- New patch release: 8.0.2 - -------------------------------------------------------------------- -Mon Apr 4 16:11:06 CEST 2005 - uli@suse.de - -- hardwire thread safety to yes (test may hang QEMU) - -------------------------------------------------------------------- -Fri Apr 1 13:38:46 CEST 2005 - uli@suse.de - -- ignore regressions on ARM - -------------------------------------------------------------------- -Wed Mar 16 19:56:30 CET 2005 - max@suse.de - -- Prevent the wrapper libs from ending up in the provides list. - -------------------------------------------------------------------- -Mon Mar 14 18:14:27 CET 2005 - max@suse.de - -- Added postgresql-CAN-2005-0247.patch to fix bug #65692. - -------------------------------------------------------------------- -Fri Mar 11 20:55:19 CET 2005 - max@suse.de - -- Added some wrapper libs so that old postmaster binaries, back - to at least 8.1/SLES8 can still be started. -- Extended the init script to use the wrapper libs when needed. -- Setting a senseful umask when creating the postmaster backups - in %pre. - -------------------------------------------------------------------- -Mon Feb 7 11:41:18 CET 2005 - max@suse.de - -- New patch release: 8.0.1 -- Fixes a vulnerability in the LOAD command. - -------------------------------------------------------------------- -Wed Jan 19 11:23:32 CET 2005 - max@suse.de - -- Update to the final 8.0.0 release. - -------------------------------------------------------------------- -Wed Dec 22 20:36:21 CET 2004 - max@suse.de - -- New version: 8.0.0rc2 - -------------------------------------------------------------------- -Fri Dec 10 17:48:44 CET 2004 - max@suse.de - -- New version: 8.0.0rc1 -- Recoded README.SuSE.de to UTF-8. - -------------------------------------------------------------------- -Fri Dec 3 16:44:58 CET 2004 - max@suse.de - -- New version: 8.0.0beta5 - -------------------------------------------------------------------- -Thu Nov 18 15:50:27 CET 2004 - ro@suse.de - -- use kerberos-devel-packages - -------------------------------------------------------------------- -Mon Sep 6 16:26:22 CEST 2004 - max@suse.de - -- Created a separate spec file for the postgresql-pl subpackage. - -------------------------------------------------------------------- -Fri Aug 20 18:20:02 CEST 2004 - max@suse.de - -- New version: 7.4.5. - -------------------------------------------------------------------- -Thu Jul 15 12:20:38 CEST 2004 - max@suse.de - -- New version: 7.4.3. - -------------------------------------------------------------------- -Mon May 24 11:10:04 CEST 2004 - max@suse.de - -- Changed dependency of -devel from the main package to -libs - (Bug #40922). - -------------------------------------------------------------------- -Mon Apr 5 15:44:01 CEST 2004 - max@suse.de - -- Added postgresql-regression.patch to prevent test failures - during summertime/wintertime changes. - -------------------------------------------------------------------- -Thu Mar 11 16:38:39 CET 2004 - max@suse.de - -- New patch release: 7.4.2 - -------------------------------------------------------------------- -Fri Jan 16 11:53:23 CET 2004 - kukuk@suse.de - -- Add pam-devel to neededforbuild - -------------------------------------------------------------------- -Mon Jan 12 17:56:41 CET 2004 - max@suse.de - -- New version: 7.4.1 -- Write timestamps to /var/log/postgresql by default. - -------------------------------------------------------------------- -Thu Dec 18 20:49:09 CET 2003 - max@suse.de - -- Package the backend headers as well (make install-all-headers), - because they are needed for server-side modules written in C. - -------------------------------------------------------------------- -Tue Nov 18 13:20:55 CET 2003 - max@suse.de - -- Install pg_config_manual.h and port.h, because they are needed - by c.h (postgresql-include.patch). - -------------------------------------------------------------------- -Mon Nov 17 11:57:45 CET 2003 - max@suse.de - -- New version: 7.4. For details see - http://www.postgresql.org/docs/7.4/static/release.html, or - /usr/share/doc/packages/postgresql/html/release.html - -- Overhauled and simplified the spec file. - -- Building with Kerberos-Support. - -- Building thread-safe client libraries. - -- Architecture-dependent tweaks for the testsuite are not needed - anymore. - -- Better detection for embedded Python build options. - -------------------------------------------------------------------- -Mon Oct 20 10:15:43 CEST 2003 - schwab@suse.de - -- Fix last change. - -------------------------------------------------------------------- -Sat Oct 18 10:15:34 CEST 2003 - adrian@suse.de - -- ignore minor mis-calculation on mips -- build as user - -------------------------------------------------------------------- -Tue Sep 23 11:41:02 CEST 2003 - max@suse.de - -- Fixed version detection in the pre script of the server package. - (#31570) - -- Ignore errors from stop_on_removal (#31607). - -------------------------------------------------------------------- -Mon Sep 15 11:05:16 CEST 2003 - max@suse.de - -- Activated the patch, that fixes dbf2pg (#27427). The patch was - added to the package before, but accidentally didn't get applied. - -- Improved handling of old versions of the backend (#27114). - -- Stopping the server before uninstallation and restarting it - after update (#29038). - -------------------------------------------------------------------- -Fri Aug 29 17:50:23 CEST 2003 - mcihar@suse.cz - -- python bindings require same python version as it was built with - -------------------------------------------------------------------- -Thu Aug 14 17:24:23 CEST 2003 - max@suse.de - -- Added ServiceRestart to sysconfig template. - -------------------------------------------------------------------- -Thu Aug 14 14:40:41 CEST 2003 - ro@suse.de - -- fixed chown usage in init-script - -------------------------------------------------------------------- -Mon Aug 4 11:03:49 CEST 2003 - max@suse.de - -- New version: 7.3.4. - -- Adopted postgresql-multilib.patch from the official PostgreSQL - RPMs. This obsoletes postgresql-lib64.patch. - -- Use test-and-set locks for x86_64 instead of slow semaphores. - (postgresql-x86_64.patch, Bug #27308) - -- make use of %jobs for parallel builds. - -- Fix ownership of /etc/logrotate.d/postgresql (Bug #28431). - -- Changed the default locale for the server to "C" to avoid a hard - dependency to glibc-locale (bug #28338). - -- Enabled charset conversion for dbf2pg (Bug #27427). - -------------------------------------------------------------------- -Wed Jul 16 13:13:05 CEST 2003 - meissner@suse.de - -- fix hanging builds by another rework of the ppc64 - locking. Apparently we need to do exact stcwx. ; bne ; isync - sequences to stay correct. - -------------------------------------------------------------------- -Tue Jun 24 12:27:36 CEST 2003 - meissner@suse.de - -- Fixed the ppc/ppc64 locking, isync was at the wrong - position. Replaced full sync by lwsync. slock_ts can - be 32bit on ppc64 too, we just use lwarx/stwcx which - handle 32bit components. - -------------------------------------------------------------------- -Tue Jun 3 16:00:19 CEST 2003 - max@suse.de - -- New version: 7.3.3. - -- Remove unpackaged files. - -- pg_hba.conf: only allow local connections from the same user - by default. - -------------------------------------------------------------------- -Fri Mar 14 10:47:53 CET 2003 - max@suse.de - -- Fixed generation of sql files in contrib, and really install the - contrib stuff instead of just copying over the source tree - (Bug #25323, postgresql-contrib.patch). - -- Fixed the file-list of the server package. - -------------------------------------------------------------------- -Wed Mar 12 11:25:09 CET 2003 - max@suse.de - -- Fixed a typo in the init script (Bug #25115). - -------------------------------------------------------------------- -Thu Mar 6 15:59:50 CET 2003 - max@suse.de - -- Add support for LSB compatible exit codes for start and stop - to pg_ctl (postgresql-lsb.patch). - -- Use pg_ctl instead of startproc/killproc in init script, because - it waits until the server is completely fired up or shut down. - (Bug #24395) - -- Removed the libpq.so.2.0 link from the package, because it got - removed by ldconfig after installation anyways (Bug #24557). - -------------------------------------------------------------------- -Tue Feb 25 13:19:25 CET 2003 - max@suse.de - -- Mark manpages as documentation. -- Create the backup directory during install. - -------------------------------------------------------------------- -Mon Feb 24 17:35:36 CET 2003 - max@suse.de - -- Make a backup of the server binaries during update, and use the - old server as long as the data files are still in the old format. - -------------------------------------------------------------------- -Thu Feb 6 17:16:42 CET 2003 - max@suse.de - -- New patch release 7.3.2 which fixes several serious bugs. - See HISTORY for details. - -------------------------------------------------------------------- -Tue Jan 28 17:20:13 CET 2003 - max@suse.de - -- Added metadata for the sysconfig editor. - -------------------------------------------------------------------- -Mon Jan 20 12:17:22 CET 2003 - max@suse.de - -- New version: 7.3.1 - -- Removed old update scripts, because they don't work anymore. - -------------------------------------------------------------------- -Thu Jan 16 08:32:56 CET 2003 - bg@suse.de - -- Changed the expected test results for hppa to the correct files - -------------------------------------------------------------------- -Fri Nov 29 15:42:52 CET 2002 - max@suse.de - -- New version 7.3. - -- Compiling with PAM support. - -- Client libraries (perl, tcl, odbc, pgeasy, pq++) have been - taken out of the PostgreSQL core distribution and will be - built as separate packages in the future. - -- The plperl subpackage has been renamed to pl, and now contains - PL/Perl, PL/Python, and PL/Tcl. - -------------------------------------------------------------------- -Fri Sep 13 13:29:33 CEST 2002 - max@suse.de - -- Added circle_poly-overrun.patch to fix a couple of - buffer overruns. - -------------------------------------------------------------------- -Thu Sep 12 11:55:58 CEST 2002 - max@suse.de - -- Corrected symlink /usr/lib/libpq.so.2.0 [#19490]. -- Fixed ownership of /var/lib/pgsql [#19523]. - -------------------------------------------------------------------- -Fri Sep 6 11:34:53 CEST 2002 - max@suse.de - -- Recovered time stamps of source files and patches. - -------------------------------------------------------------------- -Mon Sep 2 17:56:17 CEST 2002 - max@suse.de - -- Updated to patch release 7.2.2 which fixes some security holes. -- Essential diff between 7.2.1 and 7.2.2 is included. - -------------------------------------------------------------------- -Tue Aug 20 12:26:37 CEST 2002 - mmj@suse.de - -- Correct PreReq - -------------------------------------------------------------------- -Mon Aug 19 09:42:50 CEST 2002 - kukuk@suse.de - -- Fix requires egenix-mx-base -> python-egenix-mx-base - -------------------------------------------------------------------- -Fri Aug 16 00:35:40 CEST 2002 - ro@suse.de - -- don't chmod 644 to directories - -------------------------------------------------------------------- -Wed Aug 14 14:47:34 CEST 2002 - ro@suse.de - -- added "missingok" to logrotate config - -------------------------------------------------------------------- -Fri Aug 9 10:55:05 CEST 2002 - max@suse.de - -- Removed sysconfig from neededforbuild. -- Using x-devel-packages instead of xf86. - -------------------------------------------------------------------- -Thu Aug 8 10:59:10 CEST 2002 - max@suse.de - -- Removed support for older SuSE versions. -- Moved log file cration from %post to rcpostgresql. -- Changed group for /etc/logrotate.d/postgresql. - -------------------------------------------------------------------- -Mon Aug 5 15:54:21 CEST 2002 - max@suse.de - -- Enabled the plperl subpackage. - -------------------------------------------------------------------- -Tue Jul 30 16:42:18 CEST 2002 - max@suse.de - -- Fixed regression tests for ppc64. - -------------------------------------------------------------------- -Fri Jul 12 11:24:52 CEST 2002 - max@suse.de - -- Re-enabled the regression tests. - -- Running test suite as nobody. - -- Adjusted ppc and lib64 patch to the scheme of the other - platform patches. - -- Better test-and-set assembler code for s390 and s390x. - -- Creating postgres user and group during RPM installation. - -------------------------------------------------------------------- -Tue Jun 18 11:53:05 CEST 2002 - meissner@suse.de - -- use the powerpc assembler tas() for ppc64 too with adjusted assembler - names. - -------------------------------------------------------------------- -Fri May 24 18:43:35 CEST 2002 - max@suse.de - -- New minor release: 7.2.1 - -- Temporaryly disabled the regression tests due to changes to - mktime() that caused some tests to fail. - -------------------------------------------------------------------- -Fri May 24 13:04:42 CEST 2002 - ke@suse.de - -- postgresql-python requires egenix-mx-base (DateTime) [# 14745]. - -------------------------------------------------------------------- -Wed May 22 14:21:02 CEST 2002 - meissner@suse.de - -- %_lib fixes for lib64 architectures. Now fails at the same point as i386. - -------------------------------------------------------------------- -Wed Mar 20 15:07:48 CET 2002 - max@suse.de - -- Changed postgresql package to PreReq postgresql-libs instead of - postgresql-lib which is obsolete. - -------------------------------------------------------------------- -Fri Mar 8 14:37:08 CET 2002 - poeml@suse.de - -- add missing / before %_lib, fixing the preinstall script of -libs - subpackage - -------------------------------------------------------------------- -Wed Mar 6 16:35:19 CET 2002 - max@suse.de - -- Fixed test-and-set assembler code for s390x. - -- Made finding of perl and python site-paths more portable. - -- Fixed detection of SuSE dist for older releases. - -- Some more %_libdir corrections. - -- Using -fPIC for building shared libs on all architectures. - -- Leaving out tk and python subpackages if tk and python - are not OK. - -------------------------------------------------------------------- -Mon Mar 4 17:57:29 CET 2002 - max@suse.de - -- Fixed creation of pkgIndex.tcl - -- Removed some python stuff from the spec file that is now part of - PostgreSQL's build system. - -- Removed unneeded executable permissions from a couple of files. - -------------------------------------------------------------------- -Wed Feb 13 14:30:49 CET 2002 - max@suse.de - -- added support for logrotate - -- changed sysconfig stuff and init script to run on both - schemes (<=7.3 and >=8.0). - -------------------------------------------------------------------- -Tue Feb 5 16:43:04 CET 2002 - max@suse.de - -- Updated to 7.2 final. - -- See the file /usr/share/doc/packages/postgresql/HISTORY - for changes and incompatibilities since version 7.1.x. - -- Adapted the init script to match the new versions of killproc - and PostgreSQL. - -------------------------------------------------------------------- -Mon Jan 28 08:44:00 CET 2002 - max@suse.de - -- Updated to 7.2rc2 -- Removed temporary header fix. -- Added a patch for autoconf-2.52 (disabled by derfault). -- Added english version of README.SuSE - -------------------------------------------------------------------- -Tue Jan 22 15:15:39 CET 2002 - max@suse.de - -- removed os.h. It's not needed anymore. -- fixed locations of internal header files (temporary). -- postgresql-python now obsoletes pygresql. -- updated the files lists. - -------------------------------------------------------------------- -Mon Jan 21 19:32:37 CET 2002 - max@suse.de - -- New version 7.2b5 - -------------------------------------------------------------------- -Tue Dec 18 17:39:42 CET 2001 - max@suse.de - -- Changed spec file to make use of %{_libdir} where appropriate. - -------------------------------------------------------------------- -Mon Dec 17 16:15:12 CET 2001 - max@suse.de - -- Removed the START_POSTGRES variable from the fillup template - and changed init script, and spec file to the new scheme. - -- Moved the remaining variables from /etc/rc.config to - /etc/sysconfig/postgresql. - -------------------------------------------------------------------- -Wed Sep 12 12:06:19 CEST 2001 - max@suse.de - -- New version (patch release): 7.1.3 - The ChangeLog says: - - Remove unused WAL segements of large transactions (Tom) - - Multiaction rule fix (Tom) - - Pl/pgSQL memory allocation fix (Jan) - - VACUUM buffer fix (Tom) - - Regression test fixes (Tom) - - pg_dump fixes for GRANT/REVOKE/comments on views, - user-defined types (Tom) - - Fix subselects with DISTINCT ON or LIMIT (Tom) - - BEOS fix - - Disable COPY TO/FROM a view (Tom) - - Cygwin build (Jason Tishler) - -- Fixed bug in init script. - It needed a file that comes only with postgresql-devel - -- Better Patch for PgTcl. It now sets the client encoding to - UNICODE (PostgreSQL's name for UTF-8) for Tcl versions >= 8.1 - instead of using Tcl's conversion functions to get the correct - string representation. - -- Added README.SuSE (only german, so far) - -- Some minor typo fixes in the spec file. - -------------------------------------------------------------------- -Mon Aug 27 10:49:07 CEST 2001 - utuerk@suse.de - -- removed postgresql.conf (now provided by susehelp) - -------------------------------------------------------------------- -Mon Jul 23 19:16:06 CEST 2001 - max@suse.de - -- Fixed %pre and %post scripts for YaST. - -------------------------------------------------------------------- -Thu Jul 19 16:30:48 CEST 2001 - max@suse.de - -- fixed regression tests for SPARC32. - -- fixed init script to warn about incompatible data files. - -- added patch for Pgtcl to use UTF8 for internal string - representation if compiled with Tcl >= 8.1 . - -- added pkgIndex.tcl to allow dynamic loading of Pgtcl using - Tcl's package mechanism. - -------------------------------------------------------------------- -Wed Jul 11 11:51:11 CEST 2001 - max@suse.de - -- fixed regression test to succeed on PPC with glibc-2.2.3 . - -------------------------------------------------------------------- -Tue Jul 10 11:02:12 CEST 2001 - max@suse.de - -- new version: 7.1.2 - -- packages again based on the official PostgreSQL RPMs. - -- architecture patches are no longer needed. - -- running the regression tests as part of the build process to - ensure that only correctly built binaries get packed in. - -- new subpackages: contrib, doc - -- renamed subpackage lib to libs to conform to the official RPMs - -- ToDo: (semi)automatic conversion for updates - from versions prior 7.1. - -------------------------------------------------------------------- -Mon May 7 22:37:05 CEST 2001 - mfabian@suse.de - -- bzip2 sources - -------------------------------------------------------------------- -Fri Apr 27 12:34:31 CEST 2001 - max@suse.de - -- updated the init script to be more LSB compliant according to - the current /etc/init.d/skeleton. - -------------------------------------------------------------------- -Thu Apr 12 13:23:53 CEST 2001 - max@suse.de - -- fix for deprecated declarations in readline 4.2. -- fixed permissons of some shared objects for the backend. -- recovered timestamps of sources. - -------------------------------------------------------------------- -Wed Apr 11 13:51:39 CEST 2001 - utuerk@suse.de - -- added postgresql.conf for susehelp - -------------------------------------------------------------------- -Thu Mar 22 18:51:02 CET 2001 - ro@suse.de - -- added split-aliases as provides - -------------------------------------------------------------------- -Thu Mar 22 00:35:04 CET 2001 - poeml@suse.de - -- 7.0.* does not work on PPC unless compiled with -O0 (7.1 will) - -------------------------------------------------------------------- -Wed Mar 7 13:57:16 CET 2001 - max@suse.de - -- added xshared and xdevel to neededforbuild - because X is no longer in the default buildsystem. - -------------------------------------------------------------------- -Fri Feb 23 00:10:25 CET 2001 - ro@suse.de - -- added readline/readline-devel to neededforbuild (split from bash) - -------------------------------------------------------------------- -Wed Jan 24 18:14:53 MET 2001 - max@suse.de - -- added missing "Provides:" entries to specfile. - -------------------------------------------------------------------- -Mon Jan 15 20:59:19 CET 2001 - max@suse.de - -- dropping the locale environment vars from the init script - as workarround for a locale related bug in the backend. - It shows up when the regression test runs on a backend that - has e.g. LC_CTYPE=de_DE . - -------------------------------------------------------------------- -Wed Nov 29 17:22:43 CET 2000 - max@suse.de - -- new version: 7.0.3 - -- spec file is based on Lamar Owen's source RPM of - PostgreSQL-7.0.3 for SuSE Linux 7.0 - -- renamed the whole package - postgres -> postgresql - pg_lib -> postgresql-lib - pg_serv -> postgresql-serv - pg_devel -> postgresql-devel - pg_tcl -> postgresql-tcl - pg_tk -> postgresql-tk - pg_odbc -> postgresql-odbc - pg_jdbc -> postgresql-jdbc - pg_pyth -> postgresql-python - pg_perl -> postgresql-perl - pg_test -> postgresql-test - -- renamed some files and scripts from *postgres* to *postgresql* - -- moved to the LSB-compliant init scheme - -- moved database initialisation from SuSEconfig.postgres - into the init script - -- changed postgresql-python to use Python2.0 instead of 1.5 - -------------------------------------------------------------------- -Sat Oct 28 19:51:03 CEST 2000 - kukuk@suse.de - -- Add python-devel to need for build - -------------------------------------------------------------------- -Tue Oct 24 00:28:16 CEST 2000 - bk@suse.de - -- integrated change from max: -- changed /sbin/init.d/postgres and SuSEconfig.postgres - to work arround YaST that quotes the value of POSTGRES_DATADIR - in /etc/rc.config when it gets changed. - -------------------------------------------------------------------- -Mon Sep 11 16:37:58 CEST 2000 - fober@suse.de - -- made postgres run&autobuild on s390: - -- src/include/port/linux.h, src/include/storage/s_lock.h: - s390-assembler test-and-set (thanks to Andreas Jaeger) - -- src/template/.similar, src/template/linux_s390: - created linux_s390-Template from linux_ppc. - TODO: is -O0 really needed? - -- regression test passes (with minor deviations in floating point - arithmetics) - - TODO: the regression test will not run out of the box as we install - it. this is the missing piece, either in postgres-source or in - .spec - - # missing files - cd $BUILD_ROOT/usr/src/packages/BUILD/postgresql-7.0.2/; - cp -avP src/backend/*.h $RPM_BUILD_ROOT/usr/lib/pgsql - cp -avP src/include $RPM_BUILD_ROOT/usr/lib/pgsql - cp -avP src/Makefile.port $RPM_BUILD_ROOT/usr/lib/pgsql - cp -avP src/Makefile.global $RPM_BUILD_ROOT/usr/lib/pgsql - - # directory structure - cd $RPM_BUILD_ROOT/usr/lib/pgsql - mkdir src - mv test src - ln -s src/test . - -------------------------------------------------------------------- -Mon Aug 28 21:59:03 MEST 2000 - max@suse.de - -- changed installation order to fix bug #3802 - -------------------------------------------------------------------- -Mon Jul 3 12:10:10 MEST 2000 - max@suse.de - -- Disabled fcntl(F_SETLK) on the postmaster socket to work arround - a kernel bug in Linux <= 2.2.16. -- New subpackage: pg_lib contains the shared libs for C and C++. - -------------------------------------------------------------------- -Thu Jun 29 18:35:54 CEST 2000 - schwab@suse.de - -- Fix spinlocks for ia64. -- Reenable ia64 patch on the other architectures. - -------------------------------------------------------------------- -Wed Jun 28 21:22:54 CEST 2000 - max@suse.de - -- disabled the ia64 patch when building for other architectures -- database unload+reload on updates works now -- moved some script and config files out of the diff into - source files of their own. -- template database creation moved from init script into SuSEconfig -- some minor cleanups - -------------------------------------------------------------------- -Tue Jun 20 13:36:41 CEST 2000 - schwab@suse.de - -- Add support for ia64. - -------------------------------------------------------------------- -Fri Jun 9 19:07:44 CEST 2000 - max@suse.de - -- New version: 7.0.2. -- Re-made the whole package based on the original PostgreSQL RPM. -- There is still a little work needed for clean updates from - PostgreSQL 6.x to 7.0.x -- Heavy testing needed before SuSE Linux 7.0. - -------------------------------------------------------------------- -Sun Apr 9 18:51:40 CEST 2000 - bk@suse.de - -- added suse update config macro -- added automake to list of packages needed for building postgres - -------------------------------------------------------------------- -Thu Feb 10 17:11:38 CET 2000 - ke@suse.de - -- add more source files from the official PostgreSQL package. -- start to apply patches from there. -- start to cleanup the spec file. -- start to resolve bug #1948. - -------------------------------------------------------------------- -Wed Feb 9 14:15:22 CET 2000 - ke@suse.de - -- add group tag. -- ./configure -> %build. -- New default for rc.config variable START_POSTGRES ("no"). - -------------------------------------------------------------------- -Fri Dec 10 16:20:36 MET 1999 - ke@suse.de - -- update: version 6.5.3. -- startup script: use -S to remove the socket. - -------------------------------------------------------------------- -Tue Oct 12 13:01:38 CEST 1999 - ro@suse.de - -- added tcld to neededforbuild - -------------------------------------------------------------------- -Mon Sep 13 17:23:57 CEST 1999 - bs@suse.de - -- ran old prepare_spec on spec file to switch to new prepare_spec. - -------------------------------------------------------------------- -Mon Aug 2 17:10:18 MEST 1999 - ke@suse.de - -- postgresql init script: remove the socket in /tmp before trying to - start the postmaster. - -------------------------------------------------------------------- -Thu Jul 29 18:17:30 MEST 1999 - ke@suse.de - -- update: version 6.5.1. - -------------------------------------------------------------------- -Tue Jul 20 15:18:15 MEST 1999 - ke@suse.de - -- remove MANPATH setting from /etc/postgres.{sh,csh} and from - /etc/pg_ifa.{sh,csh}. -- provide manpage links at /usr/share/man: - - /usr/lib/pgsql/man/man?/*.?.gz -> /urs/share/man/man?/*.?.pgsql.gz - -- now, you'll find all manpage in "pg_ifa". - -------------------------------------------------------------------- -Thu Mar 18 13:59:36 MET 1999 - ke@suse.de - -- compile an install "spi" (on popular demand...). - -------------------------------------------------------------------- -Wed Feb 10 10:00:28 MET 1999 - ke@suse.de - -- security fix: don't create pg_pwd with mode 666 (thanks to mt). - -------------------------------------------------------------------- -Mon Feb 1 16:53:22 MET 1999 - ke@suse.de - -- fix permissions of libs (thanks to mt). - -------------------------------------------------------------------- -Fri Jan 8 10:28:19 MET 1999 - ke@suse.de - -- update: version 6.4.2. - -------------------------------------------------------------------- -Tue Dec 1 11:53:32 MET 1998 - ke@suse.de - -- add /etc/profile.d/{postgres,pg_ifa}.csh (thanks to werner). -- new bootscript (thanks to werner). - -------------------------------------------------------------------- -Fri Nov 27 18:20:33 MET 1998 - ke@suse.de - -- link libpgtcl against libcrypt. - -------------------------------------------------------------------- -Thu Nov 12 15:15:48 MET 1998 - bs@suse.de - -- fixed spec file for new rpm. - -------------------------------------------------------------------- -Fri Oct 30 15:33:07 MET 1998 - ke@suse.de - -- update: version 6.4-BETA4. - -------------------------------------------------------------------- -Sun Sep 27 14:27:33 MEST 1998 - ke@suse.de - -- update: version pre6.4 (snapshot 1998-09-27). -- remove pgaccess (it's a separate package now). -- all libraries and binaries are under the separate hierarchy - /usr/lib/pgsql (on customers' request...). -- provide /etc/profile.d/{postgres,pg_ifa}.sh; .csh files are still - missing. - -------------------------------------------------------------------- -Mon Aug 24 18:00:54 MEST 1998 - ke@suse.de - -- shut down the postmaster before uninstalling. - -------------------------------------------------------------------- -Tue Aug 18 18:04:47 MEST 1998 - ke@suse.de - -- add pgaccess' GIFs (HTML documentation). - -------------------------------------------------------------------- -Sat Jul 25 12:10:59 MEST 1998 - ke@suse.de - -- Use `-n postgres' to make the `%post' script available. - -------------------------------------------------------------------- -Mon Jul 13 08:14:48 MEST 1998 - ke@suse.de - -- update pgaccess: version 0.88. - -------------------------------------------------------------------- -Thu May 28 11:34:36 MEST 1998 - ke@suse.de - -- New package split: rip out the base interfaces (libraries and database - tools); the new package is called pg_ifa (subpackage). -- update pgaccess: version 0.87. - -------------------------------------------------------------------- -Fri May 22 13:57:20 MEST 1998 - ke@suse.de - -- update: version 6.3.2 -- package split to ease maintainability and user updates; now, we've the - following packages: - postgres : base packages, essential interfaces included (libpq, - libpq++, libpqtcl and PgAccess). - pg_datab : initial database (needed only for the first - installation or in case of major number updates); if - not installed, the user has to invoke `initdb' - manually. - pg_iface : PostgreSQL interfaces (Perl, JDBC, more to come...). - -------------------------------------------------------------------- -Thu May 7 15:43:22 MEST 1998 - fehr@suse.de - -- add library -lXp for Motif 2.1 - -------------------------------------------------------------------- -Wed Feb 11 17:27:24 MET 1998 - fehr@suse.de - -- added the perl interface - -------------------------------------------------------------------- -Wed Dec 10 11:38:19 MET 1997 - ro@suse.de - -- build static and dynamic version of dbbrowser and mpsql - -------------------------------------------------------------------- -Wed Dec 3 11:48:45 MET 1997 - ro@suse.de - -- fixed /sbin/init.d/postgres (path, db-path, read rc.config) - moved logfile to /var/log - -------------------------------------------------------------------- -Tue Nov 18 22:40:01 MET 1997 - bs@suse.de - -- skipped man3/abort.3.gz - --------------------------------------------------------------------------- -Tue Nov 4 14:24:33 MET 1997 - fehr@suse.de - -- changed to version 6.2.1 of the new postgresSQL -- changed to version 1.5 of mpsql -- changed to version 0.2 of AppGEN -- added version 0.9 if dbbrowser -- prepare package for automatic build -- home Directory of postgrs user must now be /var/lib/postgres -- this Change is a major step since postgres95 it is possible - that some changes are incompatible with the previos postgres - versions. - --------------------------------------------------------------------------- -Mon Jun 9 13:23:32 MEST 1997 - fehr@suse.de - -- make symbolic link in /usr/doc/packages relative - --------------------------------------------------------------------------- -Sun Jun 1 20:43:17 CEST 1997 - bs@suse.de - -- moved fillup stuff to var/adm/fillup-templates - --------------------------------------------------------------------------- -Mon May 12 16:05:57 MEST 1997 - fehr@suse.de - -- added startup-script for /sbin/init.d -- added fillup for /etc/rc.config START_POSTGRES - diff --git a/postgresql.spec b/postgresql.spec deleted file mode 100644 index a1f045b..0000000 --- a/postgresql.spec +++ /dev/null @@ -1,594 +0,0 @@ -# -# spec file for package postgresql -# -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. -# -# All modifications and additions to the file contributed by third parties -# remain the property of their copyright owners, unless otherwise agreed -# upon. The license for this file, and modifications and additions to the -# file, is the same license as for the pristine package itself (unless the -# license for the pristine package is not an Open Source License, in which -# case the license is the MIT License). An "Open Source License" is a -# license that conforms to the Open Source Definition (Version 1.9) -# published by the Open Source Initiative. - -# Please submit bugfixes or comments via http://bugs.opensuse.org/ -# - - -%if 0%{?sles_version} && %sles_version <= 11 -%define libs_package 1 -%else -%define libs_package 0 -%endif - -Name: postgresql -BuildRequires: gettext-devel ncurses-devel readline-devel uuid-devel zlib-devel -BuildRequires: pam-devel python-devel tcl-devel -%if 0%{?suse_version} >= 1110 -BuildRequires: fdupes -%else -%define fdupes # -%endif -%define _name postgresql -%define libpq libpq5 -%define libecpg libecpg6 -%define buildall 0 -%define extensiondir %_datadir/postgresql/extension -%if 0%{?suse_version} > 910 -BuildRequires: krb5-devel libxslt-devel -%endif -BuildRequires: openldap2-devel openssl-devel -Summary: Basic Clients and Utilities for PostgreSQL -Version: 9.1.3 -Release: 2 -%define pg_minor_version %(echo %version | sed -r 's/^([0-9]+\\.[0-9]+).*/\\1/') -License: BSD3c(or similar) -Group: Productivity/Databases/Tools -Source0: postgresql-%version.tar.bz2 -Source1: baselibs.conf -Source2: postgresql-README.SuSE.de -Source3: postgresql-README.SuSE.en -Source8: postgresql-sysconfig -Source9: postgresql-init -Source15: postgresql-bashprofile -Source16: postgresql-firewall -Source17: postgresql-rpmlintrc -Source100: postgresql-mkspecfiles -Source101: postgresql.spec.in -Patch1: postgresql-conf.patch -Patch2: postgresql-regress.patch -Patch3: postgresql-sle10-timestamptz.patch -Patch4: postgresql-plperl.patch -Patch5: postgresql-atomic-builtins.patch -Url: http://www.postgresql.org/ -BuildRoot: %{_tmppath}/%{name}-%{version}-build -Provides: postgresql = %pg_minor_version - -%description -PostgreSQL is an advanced object-relational database management system -that supports an extended subset of the SQL standard, including -transactions, foreign keys, subqueries, triggers, and user-defined -types and functions. - -This package contains the basic utility and client programs necessary -to maintain and work with local or remote PostgreSQL databases as well -as manual pages for the SQL commands that PostgreSQL supports. Full -HTML documentation for PostgreSQL can be found in the postgresql-docs -package. - -%if %libs_package - -%package libs -License: BSD 3-Clause -Summary: Shared Libraries Required for PostgreSQL Clients -Group: Productivity/Databases/Clients -# bug437293 -%ifarch ppc64 -Obsoletes: postgresql-libs-64bit -%endif -# -Provides: postgresql-libs = %pg_minor_version -PreReq: sh-utils fileutils - -%description libs -PostgreSQL is an advanced object-relational database management system -that supports an extended subset of the SQL standard, including -transactions, foreign keys, subqueries, triggers, user-defined types -and functions. - -This package provides the essential shared libraries for (almost) any -PostgreSQL client program or interface. You will need to install this -package in order to use any other PostgreSQL package or any clients -that need to connect to a PostgreSQL server. -%else - -%package -n %libpq -License: BSD3c(or similar) -Summary: Shared Libraries Required for PostgreSQL Clients -Group: Productivity/Databases/Clients -Provides: postgresql-libs = %version -Obsoletes: postgresql-libs < %version -# bug437293 -%ifarch ppc64 -Obsoletes: postgresql-libs-64bit -%endif - -%description -n %libpq -PostgreSQL is an advanced object-relational database management system -that supports an extended subset of the SQL standard, including -transactions, foreign keys, subqueries, triggers, user-defined types -and functions. - -This package provides the client library that most PostgreSQL client -program or language bindings are using. - -%package -n %libecpg -License: BSD3c(or similar) -Summary: Shared Libraries Required for PostgreSQL Clients -Group: Productivity/Databases/Clients -Provides: postgresql-libs:%_libdir/libecpg.so.6 - -%description -n %libecpg -PostgreSQL is an advanced object-relational database management system -that supports an extended subset of the SQL standard, including -transactions, foreign keys, subqueries, triggers, user-defined types -and functions. - -This package provides the runtime library of the embedded SQL C -preprocessor for PostgreSQL. -%endif - -%package server -License: BSD3c(or similar) -Summary: The Programs Needed to Create and Run a PostgreSQL Server -Group: Productivity/Databases/Servers -PreReq: %insserv_prereq %fillup_prereq -PreReq: /usr/sbin/useradd /usr/sbin/groupadd /sbin/chkconfig -PreReq: /usr/bin/strings /bin/sed -PreReq: postgresql = %pg_minor_version -Requires: glibc-locale -Provides: postgresql-server = %pg_minor_version - -%package docs -License: BSD3c(or similar) -Summary: HTML Documentation for PostgreSQL -Group: Productivity/Databases/Tools -%if 0%{?suse_version} >= 1120 -BuildArch: noarch -%endif - -%description docs -PostgreSQL is an advanced object-relational database management system -that supports an extended subset of the SQL standard, including -transactions, foreign keys, subqueries, triggers, and user-defined -types and functions. - -This package contains the HTML documentation for PostgreSQL. The start -page is: file:///usr/share/doc/packages/postgresql/html/index.html . -Manual pages for the PostgreSQL SQL statements can be found in the -postgresql package. - -%package contrib -License: BSD3c(or similar) -Summary: Contributed Extensions and Additions to PostgreSQL -Group: Productivity/Databases/Tools -Requires: postgresql-server = %pg_minor_version - -%description contrib -PostgreSQL is an advanced object-relational database management system -that supports an extended subset of the SQL standard, including -transactions, foreign keys, subqueries, triggers, and user-defined -types and functions. - -The postgresql-contrib package includes extensions and additions that -are distributed along with the PostgreSQL sources, but are not (yet) -officially part of the PostgreSQL core. - -Documentation for the modules contained in this package can be found in -/usr/share/doc/packages/postgresql/contrib. - -%description server -PostgreSQL is an advanced object-relational database management system -that supports an extended subset of the SQL standard, including -transactions, foreign keys, sub-queries, triggers, and user-defined -types and functions. - -This package includes the programs needed to create and run a -PostgreSQL server, which will in turn allow you to create and maintain -PostgreSQL databases. - -%package -n %_name-devel -License: BSD3c(or similar) -Summary: PostgreSQL development header files and libraries -Group: Productivity/Databases/Tools -%if %libs_package -Requires: postgresql-libs -%else -Requires: %libpq %libecpg -%endif - -%description -n %_name-devel -PostgreSQL is an advanced object-relational database management system -that supports an extended subset of the SQL standard, including -transactions, foreign keys, subqueries, triggers, and user-defined -types and functions. - -This package contains the header files and libraries needed to compile -C applications which will directly interact with a PostgreSQL database -management server and the ECPG Embedded C Postgres preprocessor. You -need to install this package if you want to develop applications in C -which will interact with a PostgreSQL server. - -%package plperl -License: BSD3c(or similar) -Summary: The PL/Tcl, PL/Perl, and PL/Python procedural languages for PostgreSQL -Group: Productivity/Databases/Servers -Requires: perl = %perl_version -Obsoletes: postgresql-pl -Provides: postgresql-pl:%_libdir/postgresql/plperl.so -Requires: postgresql-server = %pg_minor_version - -%description plperl -PostgreSQL is an advanced object-relational database management system -that supports an extended subset of the SQL standard, including -transactions, foreign keys, subqueries, triggers, and user-defined -types and functions. - -This package contains the PL/Perl procedural language for PostgreSQL. -With this module one can use Perl to write stored procedures, -functions, and triggers. - -%package plpython -License: BSD3c(or similar) -Summary: The PL/Python Procedural Languages for PostgreSQL -Group: Productivity/Databases/Servers -Obsoletes: postgresql-pl -Provides: postgresql-pl:%_libdir/postgresql/plpython.so -Requires: python -Requires: postgresql-server = %pg_minor_version - -%description plpython -PostgreSQL is an advanced object-relational database management system -that supports an extended subset of the SQL standard, including -transactions, foreign keys, subqueries, triggers, and user-defined -types and functions. - -This package contains the PL/Python procedural language for PostgreSQL. -With this module one can use Python to write stored procedures, -functions, and triggers. - -%package pltcl -License: BSD3c(or similar) -Summary: PL/Tcl Procedural Language for PostgreSQL -Group: Productivity/Databases/Tools -Obsoletes: postgresql-pl -Provides: postgresql-pl:%_libdir/postgresql/pltcl.so -Requires: tcl -Requires: postgresql-server = %pg_minor_version - -%description pltcl -PostgreSQL is an advanced object-relational database management system -that supports an extended subset of the SQL standard, including -transactions, foreign keys, subqueries, triggers, and user-defined -types and functions. - -This package contains the PL/Tcl procedural language for PostgreSQL. -With thie module one can use Tcl to write stored procedures, functions, -and triggers. - -%prep -%setup -q -n %_name-%version -# Keep the timestamp of configure, because patching it would otherwise -# confuse PostgreSQL's build system -touch -r configure tmp -%patch1 -%patch2 -# apply the following patch only on SLE10 -%if 0%{?suse_version} == 1010 -%patch3 -p1 -%endif -%patch4 -%ifarch %arm -%patch5 -p1 -%endif -touch -r tmp configure -rm tmp - -%build -export CFLAGS="%optflags $SP" -# uncomment the following line to enable the stack protector -# CFLAGS="$CFLAGS -fstack-protector" -%configure \ - --includedir=%_includedir/pgsql \ - --datadir=%_datadir/postgresql \ - --docdir=%_docdir \ - --disable-rpath \ - --enable-nls \ - --enable-thread-safety \ - --enable-integer-datetimes \ - --with-python \ - --with-perl \ - --with-tcl \ - --with-tclconfig=%_libdir \ - --with-pam \ - --with-ossp-uuid \ - --with-openssl \ - --with-ldap \ -%if 0%{?suse_version} > 910 - --with-gssapi \ - --with-libxml \ - --with-libxslt \ - --with-krb5 \ -%endif - --with-system-tzdata=/usr/share/zoneinfo -make %{?_smp_mflags} world -%ifnarch %arm -%if 0%{?suse_version} > 910 - -%check -# -# Run the regression tests. -# -make check || { - for f in src/test/regress/log/* regression.diffs; do - if test -f $f; then - cat $f - fi - done - exit 1 -} -%endif -%endif - -%install -make DESTDIR=%buildroot install install-docs -SUBINSTALL=uninstall -%if !%buildall -rm -f %buildroot%_mandir/*/ecpg* -rm -f %buildroot%_mandir/*/pg_config* -%endif -if test -n "$SUBINSTALL"; then -# Install them for postgresql-libs and uninstall them for postgresql -make -C src DESTDIR=%buildroot $SUBINSTALL-local -for dir in \ - config \ - src/bin/pg_config \ - src/interfaces \ - src/include \ - src/makefiles \ - src/port \ - src/test/regress -do - make -C $dir DESTDIR=%buildroot $SUBINSTALL -done -fi -# Don't ship static libraries, libpgport.a is needed, though. -rm -f $(ls %buildroot/%_libdir/*.a | grep -F -v libpgport.a) - -# -# Install and collect the contrib stuff -# -touch flag; sleep 1 # otherwise we have installed files that are not newer than flag -make DESTDIR=%buildroot -C contrib install -find %buildroot -type f -cnewer flag -printf "/%%P\n" | - grep -v %_docdir > files.contrib -rm flag -for f in /etc/init.d /var/adm/fillup-templates /usr/sbin \ - /etc/sysconfig/SuSEfirewall2.d/services -do - install -d %buildroot/$f -done -install -m 755 %{SOURCE9} %buildroot/etc/init.d/postgresql -install -m 644 %{SOURCE8} %buildroot/var/adm/fillup-templates/sysconfig.postgresql -%if 0%{?suse_version} > 1020 -install -m 644 %SOURCE16 %buildroot/etc/sysconfig/SuSEfirewall2.d/services/postgresql -%endif -ln -s ../../etc/init.d/postgresql %buildroot/usr/sbin/rcpostgresql -install -d -m 750 %buildroot/var/lib/pgsql -install -d -m 700 %buildroot/var/lib/pgsql/data -sed 's,@LIBDIR@,%_libdir,g' %{SOURCE15} > \ - %buildroot/var/lib/pgsql/.bash_profile -# Backup directory for old version binaries -install -d %buildroot%_libdir/postgresql/backup -cp doc/KNOWN_BUGS doc/MISSING_FEATURES COPYRIGHT \ - README HISTORY doc/bug.template %buildroot%_docdir/postgresql -cp -a %SOURCE2 %buildroot%_docdir/postgresql/README.SuSE.de -cp -a %SOURCE3 %buildroot%_docdir/postgresql/README.SuSE.en -for appname in pg_dump pgscripts psql;do -%find_lang $appname-%{pg_minor_version} %{name}.lang -done -%if %buildall -%find_lang libpq5-%{pg_minor_version} %libpq.lang -%find_lang ecpglib6-%{pg_minor_version} %libecpg.lang -cat %libpq.lang %libecpg.lang > postgresql-libs.lang -%find_lang ecpg-%{pg_minor_version} %_name-devel.lang -%find_lang pg_config-%{pg_minor_version} %_name-devel.lang -%endif -for serverapp in initdb postgres pg_controldata pg_ctl pg_resetxlog plpgsql pg_basebackup;do -%find_lang $serverapp-%{pg_minor_version} %{name}-server.lang -done -for pl in plperl plpython pltcl; do -%find_lang $pl-%{pg_minor_version} $pl.lang -done -%fdupes %buildroot - -%post server -%fillup_and_insserv - -%postun server -%restart_on_update postgresql -%insserv_cleanup -exit 0 - -%preun server -%stop_on_removal postgresql -exit 0 - -%pre server -groupadd -g 26 -o -r postgres >/dev/null 2>/dev/null || : -useradd -g postgres -o -r -d /var/lib/pgsql -s /bin/bash \ - -c "PostgreSQL Server" -u 26 postgres 2>/dev/null || : -%if %libs_package - -%post -n postgresql-libs -p /sbin/ldconfig - -%postun -n postgresql-libs -p /sbin/ldconfig -%else - -%post -n %libpq -p /sbin/ldconfig - -%postun -n %libpq -p /sbin/ldconfig - -%post -n %libecpg -p /sbin/ldconfig - -%postun -n %libecpg -p /sbin/ldconfig -%endif - -%clean -rm -rf %buildroot -rm -f %my_provides - -%files -f %{name}.lang -%defattr(-,root,root) -%doc %_mandir/man7/* -%docdir %_docdir/postgresql -%dir %_docdir/postgresql -%_docdir/postgresql/[[:upper:]]* -%_docdir/postgresql/bug.template -# command line tools -%_bindir/createdb -%doc %_mandir/man1/createdb.1* -%_bindir/clusterdb -%doc %_mandir/man1/clusterdb.1* -%_bindir/createlang -%doc %_mandir/man1/createlang.1* -%_bindir/createuser -%doc %_mandir/man1/createuser.1* -%_bindir/dropdb -%doc %_mandir/man1/dropdb.1* -%_bindir/droplang -%doc %_mandir/man1/droplang.1* -%_bindir/dropuser -%doc %_mandir/man1/dropuser.1* -%_bindir/pg_dump -%doc %_mandir/man1/pg_dump.1* -%_bindir/pg_dumpall -%doc %_mandir/man1/pg_dumpall.1* -%_bindir/pg_restore -%doc %_mandir/man1/pg_restore.1* -%_bindir/psql -%doc %_mandir/man1/psql.1* -%_bindir/vacuumdb -%doc %_mandir/man1/vacuumdb.1* -%_bindir/reindexdb -%doc %_mandir/man1/reindexdb.1.* -%_bindir/pg_basebackup -%doc %_mandir/man1/pg_basebackup.1.* - -%files docs -%defattr(-,root,root) -%doc %_mandir/man3/* -%docdir %_docdir/postgresql -%dir %_docdir/postgresql -%_docdir/postgresql/html - -%files contrib -f files.contrib -%defattr(-,root,root) -%docdir %_docdir/postgresql -%dir %_docdir/postgresql -%_docdir/postgresql/extension -%dir %_datadir/postgresql - -%files server -f %{name}-server.lang -%defattr(-,root,root) -%dir %extensiondir -%config /etc/init.d/postgresql -%config /var/adm/fillup-templates/sysconfig.postgresql -%if 0%{?suse_version} > 1020 -%config /etc/sysconfig/SuSEfirewall2.d/services/postgresql -%endif -%_sbindir/rcpostgresql -%dir %_libdir/postgresql -%_libdir/postgresql/backup -%_libdir/postgresql/plpgsql.so -%_libdir/postgresql/dict_snowball.so -%_datadir/postgresql/tsearch_data -%exclude %_datadir/postgresql/tsearch_data/unaccent.rules -%exclude %_datadir/postgresql/tsearch_data/xsyn_sample.rules -%_bindir/initdb -%doc %_mandir/man1/initdb.1* -%_bindir/pg_ctl -%doc %_mandir/man1/pg_ctl.1* -%_bindir/pg_controldata -%doc %_mandir/man1/pg_controldata.1* -%_bindir/pg_resetxlog -%doc %_mandir/man1/pg_resetxlog.1* -%_bindir/postgres -%doc %_mandir/man1/postgres.1* -%_bindir/postmaster -%doc %_mandir/man1/postmaster.1* -%dir %_datadir/postgresql -%_datadir/postgresql/timezone* -%_datadir/postgresql/*.* -%exclude %_datadir/postgresql/*.pltcl -%_libdir/postgresql/*_and_*.so -%_libdir/postgresql/euc2004_sjis2004.so -%_libdir/postgresql/libpqwalreceiver.so -%extensiondir/plpgsql* -%attr(750,postgres,postgres) %dir /var/lib/pgsql -%attr(700,postgres,postgres) %dir /var/lib/pgsql/data -%attr(640,postgres,postgres) %config(noreplace) /var/lib/pgsql/.bash_profile - -%files pltcl -f pltcl.lang -%defattr(-,root,root) -%extensiondir/pltcl* -%_libdir/postgresql/pltcl.so -%_datadir/postgresql/*.pltcl -%_bindir/pltcl* - -%files plperl -f plperl.lang -%defattr(-,root,root) -%extensiondir/plperl* -%_libdir/postgresql/plperl.so - -%files plpython -f plpython.lang -%defattr(-,root,root) -%extensiondir/plpython* -%_libdir/postgresql/plpython*.so - -%if %buildall -%if %libs_package - -%files -n postgresql-libs -f postgresql-libs.lang -%else - -%files -n %libpq -f %libpq.lang -%endif -%defattr(-,root,root) -%_libdir/libpq.so.* -%if !%libs_package - -%files -n %libecpg -f %libecpg.lang -%defattr(-,root,root) -%endif -%_libdir/libecpg*.so.* -%_libdir/libpgtypes.so.* - -%files -n %_name-devel -f %_name-devel.lang -%defattr(-,root,root) -%doc %_mandir/man1/ecpg.1* -%_bindir/pg_config -%doc %_mandir/man1/pg_config.1* -%_bindir/ecpg -%_libdir/libpgport.a -%_libdir/lib*.so -%dir %_libdir/postgresql -%_libdir/postgresql/pgxs -%_includedir/pgsql -%dir %_datadir/postgresql -%_datadir/postgresql/pg_service.conf.sample - -%endif - -%changelog diff --git a/postgresql.spec.in b/postgresql.spec.in deleted file mode 100644 index ef12759..0000000 --- a/postgresql.spec.in +++ /dev/null @@ -1,615 +0,0 @@ -# -# spec file for package postgresql -# -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. -# -# All modifications and additions to the file contributed by third parties -# remain the property of their copyright owners, unless otherwise agreed -# upon. The license for this file, and modifications and additions to the -# file, is the same license as for the pristine package itself (unless the -# license for the pristine package is not an Open Source License, in which -# case the license is the MIT License). An "Open Source License" is a -# license that conforms to the Open Source Definition (Version 1.9) -# published by the Open Source Initiative. - -# Please submit bugfixes or comments via http://bugs.opensuse.org/ -# - -%if 0%{?sles_version} && %sles_version <= 11 -%define libs_package 1 -%else -%define libs_package 0 -%endif - -Name: postgresql -IF_POSTGRES -BuildRequires: gettext-devel zlib-devel ncurses-devel readline-devel uuid-devel -BuildRequires: pam-devel python-devel tcl-devel -%if 0%{?suse_version} >= 1110 -BuildRequires: fdupes -%else -%define fdupes # -%endif -FI_POSTGRES -%define _name postgresql -%define libpq libpq5 -%define libecpg libecpg6 -%define buildall 0 -%define extensiondir %_datadir/postgresql/extension -%if 0%{?suse_version} > 910 -BuildRequires: krb5-devel libxslt-devel -%endif -BuildRequires: openldap2-devel openssl-devel -Summary: Basic Clients and Utilities for PostgreSQL -Version: 9.1.3 -Release: 2 -%define pg_minor_version %(echo %version | sed -r 's/^([0-9]+\\.[0-9]+).*/\\1/') -License: BSD3c(or similar) -Group: Productivity/Databases/Tools -Source0: postgresql-%version.tar.bz2 -Source1: baselibs.conf -Source2: postgresql-README.SuSE.de -Source3: postgresql-README.SuSE.en -Source8: postgresql-sysconfig -Source9: postgresql-init -Source15: postgresql-bashprofile -Source16: postgresql-firewall -Source17: postgresql-rpmlintrc -Source100: postgresql-mkspecfiles -Source101: postgresql.spec.in -Patch1: postgresql-conf.patch -Patch2: postgresql-regress.patch -Patch3: postgresql-sle10-timestamptz.patch -Patch4: postgresql-plperl.patch -Patch5: postgresql-atomic-builtins.patch -Url: http://www.postgresql.org/ -BuildRoot: %{_tmppath}/%{name}-%{version}-build -Provides: postgresql = %pg_minor_version -%description -PostgreSQL is an advanced object-relational database management system -that supports an extended subset of the SQL standard, including -transactions, foreign keys, subqueries, triggers, and user-defined -types and functions. - -This package contains the basic utility and client programs necessary -to maintain and work with local or remote PostgreSQL databases as well -as manual pages for the SQL commands that PostgreSQL supports. Full -HTML documentation for PostgreSQL can be found in the postgresql-docs -package. - -%if %libs_package -%package libs -License: BSD 3-Clause -Summary: Shared Libraries Required for PostgreSQL Clients -Group: Productivity/Databases/Clients -# bug437293 -%ifarch ppc64 -Obsoletes: postgresql-libs-64bit -%endif -# -Provides: postgresql-libs = %pg_minor_version -PreReq: sh-utils fileutils - -%description libs -PostgreSQL is an advanced object-relational database management system -that supports an extended subset of the SQL standard, including -transactions, foreign keys, subqueries, triggers, user-defined types -and functions. - -This package provides the essential shared libraries for (almost) any -PostgreSQL client program or interface. You will need to install this -package in order to use any other PostgreSQL package or any clients -that need to connect to a PostgreSQL server. -%else -%package -n %libpq -License: BSD3c(or similar) -Summary: Shared Libraries Required for PostgreSQL Clients -Group: Productivity/Databases/Clients -Provides: postgresql-libs = %version -Obsoletes: postgresql-libs < %version -# bug437293 -%ifarch ppc64 -Obsoletes: postgresql-libs-64bit -%endif - -%description -n %libpq -PostgreSQL is an advanced object-relational database management system -that supports an extended subset of the SQL standard, including -transactions, foreign keys, subqueries, triggers, user-defined types -and functions. - -This package provides the client library that most PostgreSQL client -program or language bindings are using. - -%package -n %libecpg -License: BSD3c(or similar) -Summary: Shared Libraries Required for PostgreSQL Clients -Group: Productivity/Databases/Clients -Provides: postgresql-libs:%_libdir/libecpg.so.6 - -%description -n %libecpg -PostgreSQL is an advanced object-relational database management system -that supports an extended subset of the SQL standard, including -transactions, foreign keys, subqueries, triggers, user-defined types -and functions. - -This package provides the runtime library of the embedded SQL C -preprocessor for PostgreSQL. -%endif - -IF_POSTGRES -%package server -License: BSD3c(or similar) -Summary: The Programs Needed to Create and Run a PostgreSQL Server -Group: Productivity/Databases/Servers -PreReq: %insserv_prereq %fillup_prereq -PreReq: /usr/sbin/useradd /usr/sbin/groupadd /sbin/chkconfig -PreReq: /usr/bin/strings /bin/sed -PreReq: postgresql = %pg_minor_version -Requires: glibc-locale -Provides: postgresql-server = %pg_minor_version - -%package docs -License: BSD3c(or similar) -Summary: HTML Documentation for PostgreSQL -Group: Productivity/Databases/Tools -%if 0%{?suse_version} >= 1120 -BuildArch: noarch -%endif - -%description docs -PostgreSQL is an advanced object-relational database management system -that supports an extended subset of the SQL standard, including -transactions, foreign keys, subqueries, triggers, and user-defined -types and functions. - -This package contains the HTML documentation for PostgreSQL. The start -page is: file:///usr/share/doc/packages/postgresql/html/index.html . -Manual pages for the PostgreSQL SQL statements can be found in the -postgresql package. - -%package contrib -License: BSD3c(or similar) -Summary: Contributed Extensions and Additions to PostgreSQL -Group: Productivity/Databases/Tools -Requires: postgresql-server = %pg_minor_version - -%description contrib -PostgreSQL is an advanced object-relational database management system -that supports an extended subset of the SQL standard, including -transactions, foreign keys, subqueries, triggers, and user-defined -types and functions. - -The postgresql-contrib package includes extensions and additions that -are distributed along with the PostgreSQL sources, but are not (yet) -officially part of the PostgreSQL core. - -Documentation for the modules contained in this package can be found in -/usr/share/doc/packages/postgresql/contrib. - -%description server -PostgreSQL is an advanced object-relational database management system -that supports an extended subset of the SQL standard, including -transactions, foreign keys, sub-queries, triggers, and user-defined -types and functions. - -This package includes the programs needed to create and run a -PostgreSQL server, which will in turn allow you to create and maintain -PostgreSQL databases. - -FI_POSTGRES -%package -n %_name-devel -License: BSD3c(or similar) -Summary: PostgreSQL development header files and libraries -Group: Productivity/Databases/Tools -%if %libs_package -Requires: postgresql-libs -%else -Requires: %libpq %libecpg -%endif - -%description -n %_name-devel -PostgreSQL is an advanced object-relational database management system -that supports an extended subset of the SQL standard, including -transactions, foreign keys, subqueries, triggers, and user-defined -types and functions. - -This package contains the header files and libraries needed to compile -C applications which will directly interact with a PostgreSQL database -management server and the ECPG Embedded C Postgres preprocessor. You -need to install this package if you want to develop applications in C -which will interact with a PostgreSQL server. - -IF_POSTGRES -%package plperl -License: BSD3c(or similar) -Summary: The PL/Tcl, PL/Perl, and PL/Python procedural languages for PostgreSQL -Group: Productivity/Databases/Servers -Requires: perl = %perl_version -Obsoletes: postgresql-pl -Provides: postgresql-pl:%_libdir/postgresql/plperl.so -Requires: postgresql-server = %pg_minor_version - -%description plperl -PostgreSQL is an advanced object-relational database management system -that supports an extended subset of the SQL standard, including -transactions, foreign keys, subqueries, triggers, and user-defined -types and functions. - -This package contains the PL/Perl procedural language for PostgreSQL. -With this module one can use Perl to write stored procedures, -functions, and triggers. - -%package plpython -License: BSD3c(or similar) -Summary: The PL/Python Procedural Languages for PostgreSQL -Group: Productivity/Databases/Servers -Obsoletes: postgresql-pl -Provides: postgresql-pl:%_libdir/postgresql/plpython.so -Requires: python -Requires: postgresql-server = %pg_minor_version - -%description plpython -PostgreSQL is an advanced object-relational database management system -that supports an extended subset of the SQL standard, including -transactions, foreign keys, subqueries, triggers, and user-defined -types and functions. - -This package contains the PL/Python procedural language for PostgreSQL. -With this module one can use Python to write stored procedures, -functions, and triggers. - -%package pltcl -License: BSD3c(or similar) -Summary: PL/Tcl Procedural Language for PostgreSQL -Group: Productivity/Databases/Tools -Obsoletes: postgresql-pl -Provides: postgresql-pl:%_libdir/postgresql/pltcl.so -Requires: tcl -Requires: postgresql-server = %pg_minor_version - -%description pltcl -PostgreSQL is an advanced object-relational database management system -that supports an extended subset of the SQL standard, including -transactions, foreign keys, subqueries, triggers, and user-defined -types and functions. - -This package contains the PL/Tcl procedural language for PostgreSQL. -With thie module one can use Tcl to write stored procedures, functions, -and triggers. -FI_POSTGRES - -%prep -%setup -q -n %_name-%version -# Keep the timestamp of configure, because patching it would otherwise -# confuse PostgreSQL's build system -touch -r configure tmp -%patch1 -%patch2 -# apply the following patch only on SLE10 -%if 0%{?suse_version} == 1010 -%patch3 -p1 -%endif -%patch4 -%ifarch %arm -%patch5 -p1 -%endif -touch -r tmp configure -rm tmp - - -%build -export CFLAGS="%optflags $SP" -# uncomment the following line to enable the stack protector -# CFLAGS="$CFLAGS -fstack-protector" -%configure \ - --includedir=%_includedir/pgsql \ - --datadir=%_datadir/postgresql \ - --docdir=%_docdir \ - --disable-rpath \ - --enable-nls \ - --enable-thread-safety \ - --enable-integer-datetimes \ -IF_POSTGRES - --with-python \ - --with-perl \ - --with-tcl \ - --with-tclconfig=%_libdir \ - --with-pam \ - --with-ossp-uuid \ -FI_POSTGRES -IF_LIBS - --without-readline \ -FI_LIBS - --with-openssl \ - --with-ldap \ -%if 0%{?suse_version} > 910 - --with-gssapi \ - --with-libxml \ - --with-libxslt \ - --with-krb5 \ -%endif - --with-system-tzdata=/usr/share/zoneinfo -IF_LIBS -make -C src/backend %{?jobs:-j%jobs} libpq-recursive -make -C src/interfaces %{?jobs:-j%jobs} -make -C src/port %{?jobs:-j%jobs} libpgport.a -make -C src/bin/pg_config %{?jobs:-j%jobs} pg_config -FI_LIBS -IF_POSTGRES -make %{?_smp_mflags} world -%ifnarch %arm -%if 0%{?suse_version} > 910 - -%check -# -# Run the regression tests. -# -make check || { - for f in src/test/regress/log/* regression.diffs; do - if test -f $f; then - cat $f - fi - done - exit 1 -} -%endif -%endif -FI_POSTGRES - -%install -IF_POSTGRES -make DESTDIR=%buildroot install install-docs -SUBINSTALL=uninstall -%if !%buildall -rm -f %buildroot%_mandir/*/ecpg* -rm -f %buildroot%_mandir/*/pg_config* -%endif -FI_POSTGRES -IF_LIBS -SUBINSTALL=install -install -d %buildroot%_mandir/man1 -install doc/src/sgml/man1/{ecpg,pg_config}.1 %buildroot%_mandir/man1 -FI_LIBS -if test -n "$SUBINSTALL"; then -# Install them for postgresql-libs and uninstall them for postgresql -make -C src DESTDIR=%buildroot $SUBINSTALL-local -for dir in \ - config \ - src/bin/pg_config \ - src/interfaces \ - src/include \ - src/makefiles \ - src/port \ - src/test/regress -do - make -C $dir DESTDIR=%buildroot $SUBINSTALL -done -fi -# Don't ship static libraries, libpgport.a is needed, though. -rm -f $(ls %buildroot/%_libdir/*.a | grep -F -v libpgport.a) - -IF_POSTGRES -# -# Install and collect the contrib stuff -# -touch flag; sleep 1 # otherwise we have installed files that are not newer than flag -make DESTDIR=%buildroot -C contrib install -find %buildroot -type f -cnewer flag -printf "/%%P\n" | - grep -v %_docdir > files.contrib -rm flag -for f in /etc/init.d /var/adm/fillup-templates /usr/sbin \ - /etc/sysconfig/SuSEfirewall2.d/services -do - install -d %buildroot/$f -done -install -m 755 %{SOURCE9} %buildroot/etc/init.d/postgresql -install -m 644 %{SOURCE8} %buildroot/var/adm/fillup-templates/sysconfig.postgresql -%if 0%{?suse_version} > 1020 -install -m 644 %SOURCE16 %buildroot/etc/sysconfig/SuSEfirewall2.d/services/postgresql -%endif -ln -s ../../etc/init.d/postgresql %buildroot/usr/sbin/rcpostgresql -install -d -m 750 %buildroot/var/lib/pgsql -install -d -m 700 %buildroot/var/lib/pgsql/data -sed 's,@LIBDIR@,%_libdir,g' %{SOURCE15} > \ - %buildroot/var/lib/pgsql/.bash_profile -# Backup directory for old version binaries -install -d %buildroot%_libdir/postgresql/backup -cp doc/KNOWN_BUGS doc/MISSING_FEATURES COPYRIGHT \ - README HISTORY doc/bug.template %buildroot%_docdir/postgresql -cp -a %SOURCE2 %buildroot%_docdir/postgresql/README.SuSE.de -cp -a %SOURCE3 %buildroot%_docdir/postgresql/README.SuSE.en -for appname in pg_dump pgscripts psql;do -%find_lang $appname-%{pg_minor_version} %{name}.lang -done -%if %buildall -FI_POSTGRES -%find_lang libpq5-%{pg_minor_version} %libpq.lang -%find_lang ecpglib6-%{pg_minor_version} %libecpg.lang -cat %libpq.lang %libecpg.lang > postgresql-libs.lang -%find_lang ecpg-%{pg_minor_version} %_name-devel.lang -%find_lang pg_config-%{pg_minor_version} %_name-devel.lang -IF_POSTGRES -%endif -for serverapp in initdb postgres pg_controldata pg_ctl pg_resetxlog plpgsql pg_basebackup;do -%find_lang $serverapp-%{pg_minor_version} %{name}-server.lang -done -for pl in plperl plpython pltcl; do -%find_lang $pl-%{pg_minor_version} $pl.lang -done -%fdupes %buildroot - -%post server -%fillup_and_insserv - -%postun server -%restart_on_update postgresql -%insserv_cleanup -exit 0 - -%preun server -%stop_on_removal postgresql -exit 0 - -%pre server -groupadd -g 26 -o -r postgres >/dev/null 2>/dev/null || : -useradd -g postgres -o -r -d /var/lib/pgsql -s /bin/bash \ - -c "PostgreSQL Server" -u 26 postgres 2>/dev/null || : -FI_POSTGRES -%if %libs_package -%post -n postgresql-libs -p /sbin/ldconfig -%postun -n postgresql-libs -p /sbin/ldconfig -%else -%post -n %libpq -p /sbin/ldconfig -%postun -n %libpq -p /sbin/ldconfig -%post -n %libecpg -p /sbin/ldconfig -%postun -n %libecpg -p /sbin/ldconfig -%endif - -%clean -rm -rf %buildroot -rm -f %my_provides - -IF_POSTGRES -%files -f %{name}.lang -%defattr(-,root,root) -%doc %_mandir/man7/* -%docdir %_docdir/postgresql -%dir %_docdir/postgresql -%_docdir/postgresql/[[:upper:]]* -%_docdir/postgresql/bug.template -# command line tools -%_bindir/createdb -%doc %_mandir/man1/createdb.1* -%_bindir/clusterdb -%doc %_mandir/man1/clusterdb.1* -%_bindir/createlang -%doc %_mandir/man1/createlang.1* -%_bindir/createuser -%doc %_mandir/man1/createuser.1* -%_bindir/dropdb -%doc %_mandir/man1/dropdb.1* -%_bindir/droplang -%doc %_mandir/man1/droplang.1* -%_bindir/dropuser -%doc %_mandir/man1/dropuser.1* -%_bindir/pg_dump -%doc %_mandir/man1/pg_dump.1* -%_bindir/pg_dumpall -%doc %_mandir/man1/pg_dumpall.1* -%_bindir/pg_restore -%doc %_mandir/man1/pg_restore.1* -%_bindir/psql -%doc %_mandir/man1/psql.1* -%_bindir/vacuumdb -%doc %_mandir/man1/vacuumdb.1* -%_bindir/reindexdb -%doc %_mandir/man1/reindexdb.1.* -%_bindir/pg_basebackup -%doc %_mandir/man1/pg_basebackup.1.* - -%files docs -%defattr(-,root,root) -%doc %_mandir/man3/* -%docdir %_docdir/postgresql -%dir %_docdir/postgresql -%_docdir/postgresql/html - -%files contrib -f files.contrib -%defattr(-,root,root) -%docdir %_docdir/postgresql -%dir %_docdir/postgresql -%_docdir/postgresql/extension -%dir %_datadir/postgresql - -%files server -f %{name}-server.lang -%defattr(-,root,root) -%dir %extensiondir -%config /etc/init.d/postgresql -%config /var/adm/fillup-templates/sysconfig.postgresql -%if 0%{?suse_version} > 1020 -%config /etc/sysconfig/SuSEfirewall2.d/services/postgresql -%endif -%_sbindir/rcpostgresql -%dir %_libdir/postgresql -%_libdir/postgresql/backup -%_libdir/postgresql/plpgsql.so -%_libdir/postgresql/dict_snowball.so -%_datadir/postgresql/tsearch_data -%exclude %_datadir/postgresql/tsearch_data/unaccent.rules -%exclude %_datadir/postgresql/tsearch_data/xsyn_sample.rules -%_bindir/initdb -%doc %_mandir/man1/initdb.1* -%_bindir/pg_ctl -%doc %_mandir/man1/pg_ctl.1* -%_bindir/pg_controldata -%doc %_mandir/man1/pg_controldata.1* -%_bindir/pg_resetxlog -%doc %_mandir/man1/pg_resetxlog.1* -%_bindir/postgres -%doc %_mandir/man1/postgres.1* -%_bindir/postmaster -%doc %_mandir/man1/postmaster.1* -%dir %_datadir/postgresql -%_datadir/postgresql/timezone* -%_datadir/postgresql/*.* -%exclude %_datadir/postgresql/*.pltcl -%_libdir/postgresql/*_and_*.so -%_libdir/postgresql/euc2004_sjis2004.so -%_libdir/postgresql/libpqwalreceiver.so -%extensiondir/plpgsql* -%attr(750,postgres,postgres) %dir /var/lib/pgsql -%attr(700,postgres,postgres) %dir /var/lib/pgsql/data -%attr(640,postgres,postgres) %config(noreplace) /var/lib/pgsql/.bash_profile - -%files pltcl -f pltcl.lang -%defattr(-,root,root) -%extensiondir/pltcl* -%_libdir/postgresql/pltcl.so -%_datadir/postgresql/*.pltcl -%_bindir/pltcl* - -%files plperl -f plperl.lang -%defattr(-,root,root) -%extensiondir/plperl* -%_libdir/postgresql/plperl.so - -%files plpython -f plpython.lang -%defattr(-,root,root) -%extensiondir/plpython* -%_libdir/postgresql/plpython*.so - -%if %buildall -FI_POSTGRES -%if %libs_package -%files -n postgresql-libs -f postgresql-libs.lang -%else -%files -n %libpq -f %libpq.lang -%endif -%defattr(-,root,root) -%_libdir/libpq.so.* -%if !%libs_package -%files -n %libecpg -f %libecpg.lang -%defattr(-,root,root) -%endif -%_libdir/libecpg*.so.* -%_libdir/libpgtypes.so.* - -%files -n %_name-devel -f %_name-devel.lang -%defattr(-,root,root) -%doc %_mandir/man1/ecpg.1* -%_bindir/pg_config -%doc %_mandir/man1/pg_config.1* -%_bindir/ecpg -%_libdir/libpgport.a -%_libdir/lib*.so -%dir %_libdir/postgresql -%_libdir/postgresql/pgxs -%_includedir/pgsql -%dir %_datadir/postgresql -%_datadir/postgresql/pg_service.conf.sample - -IF_POSTGRES -%endif -FI_POSTGRES -%changelog