head 1.13; access; symbols pkgsrc-2013Q2:1.13.0.48 pkgsrc-2013Q2-base:1.13 pkgsrc-2012Q4:1.13.0.46 pkgsrc-2012Q4-base:1.13 pkgsrc-2011Q4:1.13.0.44 pkgsrc-2011Q4-base:1.13 pkgsrc-2011Q2:1.13.0.42 pkgsrc-2011Q2-base:1.13 pkgsrc-2009Q4:1.13.0.40 pkgsrc-2009Q4-base:1.13 pkgsrc-2008Q4:1.13.0.38 pkgsrc-2008Q4-base:1.13 pkgsrc-2008Q3:1.13.0.36 pkgsrc-2008Q3-base:1.13 cube-native-xorg:1.13.0.34 cube-native-xorg-base:1.13 pkgsrc-2008Q2:1.13.0.32 pkgsrc-2008Q2-base:1.13 pkgsrc-2008Q1:1.13.0.30 pkgsrc-2008Q1-base:1.13 pkgsrc-2007Q4:1.13.0.28 pkgsrc-2007Q4-base:1.13 pkgsrc-2007Q3:1.13.0.26 pkgsrc-2007Q3-base:1.13 pkgsrc-2007Q2:1.13.0.24 pkgsrc-2007Q2-base:1.13 pkgsrc-2007Q1:1.13.0.22 pkgsrc-2007Q1-base:1.13 pkgsrc-2006Q4:1.13.0.20 pkgsrc-2006Q4-base:1.13 pkgsrc-2006Q3:1.13.0.18 pkgsrc-2006Q3-base:1.13 pkgsrc-2006Q2:1.13.0.16 pkgsrc-2006Q2-base:1.13 pkgsrc-2006Q1:1.13.0.14 pkgsrc-2006Q1-base:1.13 pkgsrc-2005Q4:1.13.0.12 pkgsrc-2005Q4-base:1.13 pkgsrc-2005Q3:1.13.0.10 pkgsrc-2005Q3-base:1.13 pkgsrc-2005Q2:1.13.0.8 pkgsrc-2005Q2-base:1.13 pkgsrc-2005Q1:1.13.0.6 pkgsrc-2005Q1-base:1.13 pkgsrc-2004Q4:1.13.0.4 pkgsrc-2004Q4-base:1.13 pkgsrc-2004Q3:1.13.0.2 pkgsrc-2004Q3-base:1.13 pkgsrc-2004Q2:1.12.0.6 pkgsrc-2004Q2-base:1.12 pkgsrc-2004Q1:1.12.0.4 pkgsrc-2004Q1-base:1.12 pkgsrc-2003Q4:1.12.0.2 pkgsrc-2003Q4-base:1.12 netbsd-1-6:1.10.0.8 netbsd-1-6-RELEASE-base:1.10 pkgviews:1.10.0.4 pkgviews-base:1.10 buildlink2:1.10.0.2 buildlink2-base:1.10 netbsd-1-5-PATCH003:1.10 netbsd-1-5-PATCH001:1.7 netbsd-1-5-RELEASE:1.7 netbsd-1-4-PATCH003:1.7 netbsd-1-4-PATCH002:1.4 comdex-fall-1999:1.4 netbsd-1-3-PATCH002:1.1.1.1 FreeBSD-current-1998-02-16:1.1.1.1 FREEBSD:1.1.1; locks; strict; comment @# @; 1.13 date 2004.07.24.22.48.14; author recht; state dead; branches; next 1.12; 1.12 date 2003.04.03.18.06.13; author toshii; state Exp; branches; next 1.11; 1.11 date 2003.01.05.20.12.16; author jlam; state dead; branches; next 1.10; 1.10 date 2002.04.04.07.48.28; author jlam; state Exp; branches; next 1.9; 1.9 date 2001.12.06.03.46.22; author jlam; state Exp; branches; next 1.8; 1.8 date 2001.05.14.14.52.38; author jlam; state Exp; branches; next 1.7; 1.7 date 2000.07.14.04.44.53; author jlam; state Exp; branches; next 1.6; 1.6 date 2000.05.20.19.32.41; author jlam; state dead; branches; next 1.5; 1.5 date 2000.03.18.17.43.17; author jlam; state Exp; branches; next 1.4; 1.4 date 99.09.20.23.38.49; author jlam; state Exp; branches; next 1.3; 1.3 date 99.09.19.04.24.55; author jlam; state Exp; branches; next 1.2; 1.2 date 98.06.10.13.55.35; author agc; state dead; branches; next 1.1; 1.1 date 98.02.17.15.29.56; author agc; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 98.02.17.15.29.56; author agc; state Exp; branches; next ; desc @@ 1.13 log @Delete old postgresql packages now that we have the postgresql73 ones. @ text @$NetBSD: patch-ah,v 1.12 2003/04/03 18:06:13 toshii Exp $ --- src/interfaces/python/GNUmakefile.orig Thu Dec 13 13:39:04 2001 +++ src/interfaces/python/GNUmakefile @@@@ -19,7 +19,14 @@@@ include $(top_srcdir)/src/Makefile.shlib override CPPFLAGS := -I$(libpq_srcdir) $(CPPFLAGS) $(python_includespec) -all: all-lib +PY_SCRIPTS = pg.py pgdb.py +ifeq ($(with_python_compile), yes) +PY_COMPILED_SCRIPTS = $(PY_SCRIPTS:%.py=%.pyc) $(PY_SCRIPTS:%.py=%.pyo) +else +PY_COMPILED_SCRIPTS = +endif + +all: all-lib $(PY_COMPILED_SCRIPTS) all-lib: libpq-all @@@@ -27,6 +34,12 @@@@ all-lib: libpq-all libpq-all: $(MAKE) -C $(libpq_builddir) all +%.pyc: %.py + $(PYTHON) -c "import py_compile; py_compile.compile(\"$<\")" + +%.pyo: %.py + $(PYTHON) -O -c "import py_compile; py_compile.compile(\"$<\")" + install-warning-msg := { \ echo "*** Skipping the installation of the Python interface module for lack"; \ echo "*** of permissions. To install it, change to the directory"; \ @@@@ -35,6 +48,9 @@@@ echo "*** become the appropriate user, a install: all installdirs @@if test -w $(DESTDIR)$(python_moduleexecdir) && test -w $(DESTDIR)$(python_moduledir); then \ + for i in $(PY_SCRIPTS) $(PY_COMPILED_SCRIPTS); do \ + $(INSTALL_DATA) $$i $(python_moduledir) ; \ + done ; \ echo "$(INSTALL_SHLIB) $(shlib) $(DESTDIR)$(python_moduleexecdir)/_pgmodule$(DLSUFFIX)"; \ $(INSTALL_SHLIB) $(shlib) $(DESTDIR)$(python_moduleexecdir)/_pgmodule$(DLSUFFIX); \ \ @ 1.12 log @Build py-postgresql from the postgresql 7.3.2 tarball. PKGREVISION++ Remove files and patches in the py-postgresql directory and add necessary ones in the postgresql directory. @ text @d1 1 a1 1 $NetBSD: patch-ac,v 1.1 2003/01/05 19:26:20 jlam Exp $ @ 1.11 log @Updated databases/postgresql to 7.3.1. ================================================================== | NOTE: A dump-and-restore is required to update your databases | | if you wish to update postgresql-server. If your | | application examines the system catalogs, additional | | changes will be required due to the introduction of | | schemas in 7.3; for more information, see: | | | | http://www.ca.postgresql.org/docs/momjian/upgrade_tips_7.3 | ================================================================== Major changes from version 7.2.3 include: Schemas Schemas allow users to create objects in separate namespaces, so two people or applications can have tables with the same name. There is also a public schema for shared tables. Table/index creation can be restricted by removing permissions on the public schema. Drop Column PostgreSQL now supports the ALTER TABLE ... DROP COLUMN functionality. Table Functions Functions returning multiple rows and/or multiple columns are now much easier to use than before. You can call such a "table function" in the SELECT FROM clause, treating its output like a table. Also, PL/pgSQL functions can now return sets. Prepared Queries PostgreSQL now supports prepared queries, for improved performance. Dependency Tracking PostgreSQL now records object dependencies, which allows improvements in many areas. "DROP" statements now take either CASCADE or RESTRICT to control whether dependent objects are also dropped. Privileges Functions and procedural languages now have privileges, and functions can be defined to run with the privileges of their creator. Internationalization Both multibyte and locale support are now always enabled. Logging A variety of logging options have been enhanced. Interfaces A large number of interfaces have been moved to http://gborg.postgresql.org where they can be developed and released independently. Functions/Identifiers By default, functions can now take up to 32 parameters, and identifiers can be up to 63 bytes long. Also, OPAQUE is now deprecated: there are specific "pseudo-datatypes" to represent each of the former meanings of OPAQUE in function argument and result types. @ text @d1 1 a1 1 $NetBSD: patch-ah,v 1.10 2002/04/04 07:48:28 jlam Exp $ d3 3 a5 3 --- src/interfaces/python/GNUmakefile.orig Thu Dec 13 18:39:04 2001 +++ src/interfaces/python/GNUmakefile Tue Feb 12 17:37:45 2002 @@@@ -19,7 +19,14 @@@@ d21 1 a21 1 @@@@ -27,6 +34,12 @@@@ d34 1 a34 1 @@@@ -35,6 +48,9 @@@@ @ 1.10 log @Update postgresql and related packages to 7.2. Thanks to Michael Graff for most of the work on this update. Pkgsrc changes from the previous version include removing Makefile.ssl and some patches that have been integrated into this release of PostgreSQL. We leave open the question of when to byte-compile the Python modules for the PyGreSQL interface and just do it as before, although we should consider doing the compilation as a post-install step to ensure that the timestamps are correct. We also reorder some lines in the Makefile to include Makefile.common below certain definitions (GNU_CONFIGURE, USE_BUILDLINK_ONLY) as they may possibly trigger different portions of Makefile.common. *** Please note that a dump/restore is required to migrate an existing *** *** PostgreSQL installation to 7.2. *** Major changes from version 7.1.3 are geared toward improving use in high-volume applications and include: VACUUM Vacuuming no longer locks tables, thus allowing normal user access during the vacuum. A new "VACUUM FULL" command does old-style vacuum by locking the table and shrinking the on-disk copy of the table. Transactions There is no longer a problem with installations that exceed four billion transactions. OID's OID's are now optional. Users can now create tables without OID's for cases where OID usage is excessive. Optimizer The system now computes histogram column statistics during "ANALYZE", allowing much better optimizer choices. Security A new MD5 encryption option allows more secure storage and transfer of passwords. A new Unix-domain socket authentication option is available on Linux and BSD systems. PAM authentication is also available. Statistics Administrators can use the new table access statistics module to get fine-grained information about table and index usage. @ text @d1 1 a1 1 $NetBSD: patch-ah,v 1.9 2001/12/06 03:46:22 jlam Exp $ @ 1.9 log @Add -Wl flags from LDFLAGS to the EXTRA_LIBS. This allows libpq.so to be found at run-time, as before, the -Wl,-R options that set the run-time library search path weren't being used. Simply using LDFLAGS without filtering doesn't work because the configure script appends CFLAGS to LDFLAGS, and some commonly-used compiler options, e.g. -mcpu=..., which causes python's makesetup to choke because the options aren't in the list of recognized linker options. Thanks to D'Arcy J.M. Cain for pointing out the error and possible solution. @ text @d1 1 a1 1 $NetBSD$ d3 3 a5 5 --- src/interfaces/python/GNUmakefile.orig Sun Mar 25 14:44:03 2001 +++ src/interfaces/python/GNUmakefile @@@@ -12,9 +12,22 @@@@ top_builddir = ../../.. include $(top_builddir)/src/Makefile.global d7 3 a9 1 -all: Makefile pgmodule.c libpq-all d17 7 a23 2 +all: Makefile pgmodule.c libpq-all $(PY_COMPILED_SCRIPTS) $(MAKE) -f Makefile d31 13 a43 22 .PHONY: libpq-all libpq-all: $(MAKE) -C $(libpq_builddir) all @@@@ -28,13 +41,16 @@@@ Setup.in: Setup.in.raw sed -e 's,@@libpq_srcdir@@,$(libpq_srcdir),g' \ -e 's,@@libpq_builddir@@,$(libpq_builddir),g' \ - -e 's%@@EXTRA_LIBS@@%$(filter -L%, $(LDFLAGS)) $(LIBS)%g' \ + -e 's,@@libpq@@,$(libpq),g' \ + -e 's%@@EXTRA_LIBS@@%$(filter -L%, $(LDFLAGS)) $(filter -Wl%, $(LDFLAGS)) $(LIBS)%g' \ -e 's%@@INCLUDES@@%$(filter -I%, $(CPPFLAGS))%g' \ $< > $@@ install: all @@echo "Installing Python module" - @@if ( $(INSTALL_DATA) pg.py $(python_moduledir) && \ + @@if ( ( for i in $(PY_SCRIPTS) $(PY_COMPILED_SCRIPTS); do \ + $(INSTALL_DATA) $$i $(python_moduledir); \ + done ) && \ $(MAKE) -f Makefile install ); then : ; else \ echo "*****" ;\ echo "* Skipping the installation of the Python interface module for lack"; \ @ 1.8 log @Update postgresql to 7.1.1 Pkgsrc changes include splitting into: postgresql-lib postgresql-client postgresql-server postgresql-doc with postgresql as a meta-package. Major changes from version 7.1.1 include: Write-ahead Log (WAL) - To maintain database consistency in case of an operating system crash, previous releases of PostgreSQL have forced all data modifications to disk before each transaction commit. With WAL, only one log file must be flushed to disk, greatly improving performance. If you have been using -F in previous releases to disable disk flushes, you may want to consider discontinuing its use. TOAST - Previous releases had a compiled-in row length limit, typically 8 - 32 kB. This limit made storage of long text fields difficult. With TOAST, long rows of any length can be stored with good performance. Outer Joins - We now support outer joins. The UNION/NOT IN workaround for outer joins is no longer required. We use the SQL92 outer join syntax. Function Manager - The previous C function manager did not handle NULLs properly, nor did it support 64-bit CPU's (Alpha). The new function manager does. You can continue using your old custom functions, but you may want to rewrite them in the future to use the new function manager call interface. Complex Queries - A large number of complex queries that were unsupported in previous releases now work. Many combinations of views, aggregates, UNION, LIMIT, cursors, subqueries, and inherited tables now work properly. Inherited tables are now accessed by default. Subqueries in FROM are now supported. Migration to 7.1.1 A dump/restore using pg_dump is required for those wishing to migrate data from any previous release. @ text @d3 1 a3 1 --- src/interfaces/python/GNUmakefile.orig Sun Apr 1 15:17:33 2001 d33 1 d35 1 a35 1 -e 's%@@EXTRA_LIBS@@%$(filter -L%, $(LDFLAGS)) $(LIBS)%g' \ @ 1.7 log @Forgot these patches @ text @d3 5 a7 5 --- backend/main/main.c.orig Wed Jan 26 00:56:30 2000 +++ backend/main/main.c Wed Jul 12 02:34:38 2000 @@@@ -14,13 +14,14 @@@@ */ #include d9 10 a18 9 -#if defined(__alpha__) && !defined(linux) +#if defined(__alpha__) && !defined(linux) && !defined(__NetBSD__) #include #include "machine/hal_sysinfo.h" #define ASSEMBLER #include #undef ASSEMBLER #endif +#include d20 27 a46 2 #include "postgres.h" #ifdef USE_LOCALE @ 1.6 log @Update postgresql to 7.0. Also closes PR#8616. Changes from 6.5.3: A HUGE number of bug/performance fixes and minor enhancements. Foreign Keys Foreign keys are now implemented, with the exception of PARTIAL MATCH foreign keys. Many users have been asking for this feature, and we are pleased to offer it. Optimizer Overhaul Continuing on work started a year ago, the optimizer has been overhauled, allowing improved query execution and better performance with less memory usage. Updated psql psql, our interactive terminal monitor, has been updated with a variety of new features. See the psql manual page for details. Upcoming Features In 7.1 or 7.2, we plan to have outer joins, storage for very long rows, and a write-ahead logging system. A dump/restore using pg_dump is required for those wishing to migrate data from any previous release. For those upgrading from 6.5.*, you can use pg_upgrade to upgrade to this release. @ text @d1 1 a1 1 $NetBSD: patch-ah,v 1.5 2000/03/18 17:43:17 jlam Exp $ d3 5 a7 4 --- bin/psql/Makefile.in.orig Sun Jan 17 01:19:19 1999 +++ bin/psql/Makefile.in Thu Mar 16 17:49:44 2000 @@@@ -33,7 +33,7 @@@@ all: submake psql d9 9 a17 3 psql: $(OBJS) $(LIBPQDIR)/libpq.a - $(CC) -o psql -L$(LIBPQDIR) $(OBJS) -lpq $(LDFLAGS) + $(CC) -o psql $(OBJS) $(LIBPQ) $(LDFLAGS) d19 2 a20 2 ../../utils/strdup.o: $(MAKE) -C ../../utils strdup.o @ 1.5 log @Change structure of postgresql package. Shared library build is now unlibtoolized. Things now install into ${PREFIX} instead of ${PREFIX}/${PGSQL_USER} to match hier(7) expectations. The Tcl and Tk interfaces are now split out into separate packages. This closes the following PRs: 7384, 8747, 8789, 9272, 9461. @ text @d1 1 a1 1 $NetBSD$ @ 1.4 log @Update PostgreSQL to 6.5.2. The pgaccess binary is no longer available from the main PostgreSQL distribution, and must be installed separately (databases/pgaccess). Relevant changes from 6.5.1: subselect+CASE fixes(Tom) Add SHLIB_LINK setting for solaris_i386 and solaris_sparc ports(Daren Sefcik) Fixes for CASE in WHERE join clauses(Tom) Fix BTScan abort(Tom) Repair the check for redundant UNIQUE and PRIMARY KEY indices(Thomas) Improve it so that it checks for multi-column constraints(Tom) Fix for Win32 making problem with MB enabled(Hiroki Kataoka) Allow BSD yacc and bison to compile pl code(Bruce) Fix SET NAMES int8 fixes(Thomas) Fix vacuum's memory consumption(Hiroshi,Tatsuo) Reduce the total memory consumption of vacuum(Tom) Fix for timestamp(datetime) Rule deparsing bugfixes(Tom) Fix quoting problems in mkMakefile.tcldefs.sh.in and mkMakefile.tkdefs.sh.in(Tom) This is to re-use space on index pages freed by vacuum(Vadim) document -x for pg_dump(Bruce) Fix for unary operators in rule deparser(Tom) Comment out FileUnlink of excess segments during mdtruncate()(Tom) Irix linking fix from Yu Cao Repair logic error in LIKE: should not return LIKE_ABORT when reach end of pattern before end of text(Tom) Repair incorrect cleanup of heap memory allocation during transaction abort(Tom) @ text @d3 11 a13 12 --- ./bin/Makefile.orig Thu May 20 12:49:59 1999 +++ ./bin/Makefile Mon Sep 20 12:09:31 1999 @@@@ -27,7 +27,8 @@@@ # ifeq ($(USE_TCL), true) ifeq ($(USE_TK), true) - DIRS += pgaccess +# pgaccess directory doesn't contain any sources +# DIRS += pgaccess endif DIRS += pgtclsh endif @ 1.3 log @Update postgresql to 6.5.1. Completely libtoolized and ldconfig statements removed, but this should still function correctly on a.out systems. This package was originally submitted by D'Arcy J.M. Cain, but with major overhauling by me. Closes PR#7865 and relevant part of PR#8299. Major changes from version 6.4.2: Multi-version concurrency control(MVCC) This removes our old table-level locking, and replaces it with a locking system that is superior to most commercial database systems. In a traditional system, each row that is modified is locked until committed, preventing reads by other users. MVCC uses the natural multi-version nature of PostgreSQL to allow readers to continue reading consistent data during writer activity. Writers continue to use the compact pg_log transaction system. This is all performed without having to allocate a lock for every row like traditional database systems. So, basically, we no longer are restricted by simple table-level locking; we have something better than row-level locking. Hot backups from pg_dump pg_dump takes advantage of the new MVCC features to give a consistant database dump/backup while the database stays online and available for queries. Numeric data type We now have a true numeric data type, with user-specified precision. Temporary tables Temporary tables are guaranteed to have unique names within a database session, and are destroyed on session exit. New SQL features We now have CASE, INTERSECT, and EXCEPT statement support. We have new LIMIT/OFFSET, SET TRANSACTION ISOLATION LEVEL, SELECT ... FOR UPDATE, and an improved LOCK TABLE command. Speedups We continue to speed up PostgreSQL, thanks to the variety of talents within our team. We have sped up memory allocation, optimization, table joins, and row transfer routines. Ports We continue to expand our port list, this time including WinNT/ix86 and NetBSD/arm32. Interfaces Most interfaces have new versions, and existing functionality has been improved. Documentation New and updated material is present throughout the documentation. New FAQs have been contributed for SGI and AIX platforms. The Tutorial has introductory information on SQL from Stefan Simkovics. For the User's Guide, there are reference pages covering the postmaster and more utility programs, and a new appendix contains details on date/time behavior. The Administrator's Guide has a new chapter on troubleshooting from Tom Lane. And the Programmer's Guide has a description of query processing, also from Stefan, and details on obtaining the Postgres source tree via anonymous CVS and CVSup. @ text @d3 12 a14 53 --- ./configure.in.orig Sat May 29 20:06:44 1999 +++ ./configure.in Sat Sep 18 03:21:22 1999 @@@@ -23,11 +23,7 @@@@ bsdi*) os=bsdi need_tas=no ;; freebsd1*|freebsd2*) os=freebsd need_tas=no ;; freebsd*) os=freebsd need_tas=no elf=yes ;; - netbsd*) - os=bsd need_tas=no - case "$host_cpu" in - powerpc) elf=yes ;; - esac ;; + netbsd*) os=bsd need_tas=no elf=maybe ;; # mix of a.out & ELF platforms openbsd*) os=bsd need_tas=no ;; dgux*) os=dgux need_tas=no ;; aix*) os=aix need_tas=no ;; @@@@ -58,13 +54,6 @@@@ exit;; esac -if test "X$elf" = "Xyes" -then - ELF_SYS=true -else - ELF_SYS= -fi - if test "X$need_tas" = "Xyes" then AC_LINK_FILES(backend/port/tas/${tas_file}, backend/port/tas.s) @@@@ -416,6 +405,23 @@@@ LDFLAGS="$LDFLAGS $PGSQL_LDFLAGS" echo "- setting LDFLAGS=$LDFLAGS" + +dnl Check for ELF after finding compiler. +case "X$elf" in +Xmaybe) + if ${CC} -E - -dM