Up to [cvs.NetBSD.org] / pkgsrc / databases / postgresql
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Delete old postgresql packages now that we have the postgresql73 ones.
Forgot to remove PKGREVISION when I updated the package.
PKGREVISION bump after openssl-security-fix-update to 0.9.6m. Buildlink files: RECOMMENDED version changed to current version.
Add an empty do-patch rule. A simple make test here would have shown this to break by removing NO_PATCH without otherwise seeing why it was there..
NO_PATCH is deprecated, says pkglint. Remove it.
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.
Trivially use buildlink2.
Update postgresql and related packages to 7.2. Thanks to Michael Graff
<explorer@flame.org> 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.
Use PKGREVISION to manage the package-specific version number when it differs from the distfile version number. G/C some the unused variables in postgresql/Makefile.common related to the old way of handling version numbers.
Fix dependencies and post-extract target. "Make build" in databases/postgresql should now correctly trigger the full build and installation of PostgreSQL.
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.
Make pgsql's home directory configurable. This is useful e. g. in cases
where ${PREFIX} is mounted read-only etc. Checked with Johnny C. Lam,
who suggested two additional changes.
change default group from ingres to pgsql, to match behaviour of other applications (uname == gname), and because we've removed the default ingres group anyway.
Update to new COMMENT style: COMMENT var in Makefile instead of pkg/COMMENT.
Apply patch to fix alpha-related problems.
Add automatic ${VARIABLE} handling for MESSAGE files.
Convert most MESSAGE files to new syntax (${VARIABLE} gets replaced,
not @VARIABLE@, nor @@VARIABLE@@).
By default, substitutions are done for LOCALBASE, PKGNAME, PREFIX,
X11BASE, X11PREFIX; additional patterns can be added via MESSAGE_SUBST.
Clean up some packages while I'm there; add RCS tags to most MESSAGEs.
Remove some uninteresting MESSAGEs.
Rename this script to pgsql.sh, make this script a bit more complete and robust, and add example command_args setting to allow TCP/IP connections to the PostgreSQL database.
Cosmetic adjustments.
Remove unnecessary substitution of @PGHOME@ in pgsql.sh.tmpl.
PGHOME is a subdir of ${PREFIX}, so pass -b ${PREFIX} to useradd instead
of directly specifying -d ${PGHOME}. Canonicalize usage of PGHOME while
I'm at it. Fixes pkg/11660 by Ben Collver <collver@softhome.net>.
Install rc.d control script as "pgsql" instead of "pgsql.sh" to comply with how NetBSD's rc.d system interprets script names. Also add appropriate REQUIRE and PROVIDE sections to allow direct use in NetBSD's rc.d system.
remove unnecessary whitespace
Install the Server Programming Interface header files. Closes PR#10480.
Update postgresql to 7.0.2. Relevant changes from 7.0: * Enhance rc.d/pgsql.sh script to accept start/stop/restart. * Add fixes for alpha from Kevin P. Neal <kpn@neutralgood.org> in PR#10543. XXX Includes a patch which removes inlining of the alpha's TAS function. XXX This is apparently some code-gen bug in GCC for alpha. * Fix many CLUSTER failures (Tom) * Allow ALTER TABLE RENAME works on indexes (Tom) * Fix plpgsql to handle datetime->timestamp and timespan->interval (Bruce) * New configure --with-setproctitle switch to use setproctitle() (Marc, Bruce) * Fix the off by one errors in ResultSet from 6.5.3, and more. * jdbc ResultSet fixes (Joseph Shraibman) * optimizer tunings (Tom) * Fix create user for pgaccess * Fix for UNLISTEN failure * Reduce COPY IN lock level (Tom) * Change libpqeasy to use PQconnectdb() style parameters (Bruce) * Fix pg_dump to handle OID indexes (Tom) * Fix small memory leak (Tom) * Solaris fix for createdb/dropdb (Tatsuo) * Fix for non-blocking connections (Alfred Perlstein) * Fix improper recovery after RENAME TABLE failures (Tom) * Copy pg_ident.conf.sample into /lib directory in install (Bruce) * Add SJIS UDC (NEC selection IBM kanji) support (Eiji Tokuya) * Fix too long syslog message (Tatsuo) * Fix problem with quoted indexes that are too long (Tom) * JDBC ResultSet.getTimestamp() fix (Gregory Krasnow & Floyd Marinescu) * ecpg changes (Michael)
Remove dependency on "bison". Closes PR pkg/10224, by SUNAGAWA Keiki.
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.
Put headers into /include/pgsql.
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.
Hmmm. I thought I'd committed this a long time ago... Split PGSQL_USE_TCL into PGSQL_USE_TCL and PGSQL_USE_TK so that postgres can be built with tcl support on a machine without tk (such as a machine without X installed...)
Update dependency on ncurses to >=4.2
replaced some commands by their ${COMMAND} counterparts
upgraded PostgreSQL to 6.5.3 and updated the dependent Makefiles
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 <yucao@falcon.kla-tencor.com>
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)
Change the semantics of PGSQL_USE_TCL to be YES/NO, defaulting to YES since the old 6.4.2 package included the Tcl/Tk stuff. "Backwards compatible upgrade."
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.
Add dependency on ncurses, and create ${PREFIX}/${PGUSER} before
"make install". Makes this package compile on 1.4.1.
Use "PLIST_SUBST=PGUSER=${PGUSER}".
Add NetBSD Id to patch-ae.
s|/usr/sbin/chown|${CHOWN}|
s|/bin/chmod|${CHMOD}|
Make sure that "bison" binary from package sources is used.
Record build options in the BuildInfo file via BUILD_DEFS. These can be displayed using the -B option to pkg_info(1).
Must list tcl and tk includes in --with-includes. Noticed by Bjoern Labitzke. Also, libs and includes are found in LOCALBASE.
${...:M...} is not fully glob() compliant. Don't use {,} constructs.
NOT_FOR_PLATFORM= *-*-{alpha,mips} doesn't work.
Worse - it matches (almost?) everything.
Change {ONLY,NOT}_FOR_{ARCH,OPSYS} format to {ONLY,NOT}_FOR_PLATFORM
pattern match format. Minor pkglint along the way.
Remove NOPORTDOCS definition - it was useless anyway, as any attempt to build a binary package with this definition would fail as the PLIST is not correct. If a package's documentation is overwhelming, it should arguably be handled in a separate pre-requisite documentation package.
Upgrade to tcl version 8.0.5. This seems to be primarily a bug-fix release.
Make it possible to build a binary package by moving the "account management" into a REQ script.
Chane versioned DEPENDS on bison to BUILD_DEPENDS. This should have been done with the bison update.
Don't build the directory, as addnerd does this for us and will fail
if it already exists. Should fix pkg/6949 by Nigel Reed <nigel@nelgin.nu>.
Also don't assume ${prefix}/sbin is in the search path and call addnerd
with complete path.
Whoops, I wanted to adjust the comment.
Add mips to NOT_FOR_ARCHS list. There is no TAS implementation. Someone with mips assemply knowledge needed :)
Get rid of obsolete chown(8) operand usage.
Add some cosmetics pointed out in pr 6758 by Greg A. Woods:
- add INSTALL_TARGET=install install-man and remove the patch that did
modify the GNUMakefile, for better maintainance.
- add - in front of @${MKDIR} to silently fail if the dir already exists
- move ld.so.conf warning near the end, so it can be better spotted.
Update postgresql to 6.4.2. Among bugfixes and new features, this also adds patches for m68k support, provided in pr 6664 by MOCHIDA Shuji.
Reflect that addnerd has version 1.6 now, as noted in pr 6721.
Use ${OPSYS}, rather than calling `uname -s` again.
Group the NOT_FOR_ARCHS definitions together, for consistency, and make the second definition "+=", rather than "=".
add NOT_FOR_ARCHS= alpha for all of these pkgs which are *known* to fail on alpha. There may be more, but I haven't seen them yet.
Set NOT_FOR_ARCHS=m68k since postgres does not work on this architecture yet.
The Grand Homepagification: - New, optional Makefile variable HOMEPAGE, specifies a URL for the home page of the software if it has one. - The value of HOMEPAGE is used to add a link from the README.html files. - pkglint updated to know about it. The "correct" location for HOMEPAGE in the Makefile is after MAINTAINER, in that same section.
Use automatic shared object handling
Add bison to DEPENDS; give addnerd the homedir path; be sure that .profile
gets installed to ${PGUSER}s home. Pointed out by Mathias Drochner.
Update package Makefiles for automatic manual page handling.
Upgrade to the latest and greatest version (6.3.2) of PostgreSQL. They told me to say that. Use addnerd to create the user.
Include bsd.prefs.mk, so that /etc/mk.conf is read properly
Mostly cosmetic changes to shut up portlint. Little bugfix for apache.
Remove the old deprecated DEPENDS definition from bsd.pkg.mk. Implement a new DEPENDS definition, which looks for an installed package, building it if not present, and use it in preference to LIB_DEPENDS. This should make the package collection more useful on NetBSD ELF ports.
Substitute all obvious FreeBSD ppl as MAINTAINER with packages@netbsd.org.
Use the bsd.pkg.mk and bsd.pkg.subdir.mk files in the pkgsrc tree. Remove redundant (and sometimes erroneous) comments.
Fix last commit after feedback from Klaus.
don't expand PATH and MANPATH - fixes PR 5165 by Klaus Klein.
The .if defined(USE_TCL) part wouldn't work anyway, so don't bother checking just now. The 'recursive' argument to cp(1) is -R, not -r.
portlint: add "|| ${TRUE}" after ldconfig.
Mention dependency on Perl5. Define PGUSER variable, and use it (defaults to pgsql). Add NetBSD RCS Id. There is no '-c' argument to NetBSD's su(1). cat post-install-notes, rather than using more(1). Just in case. Use explicit paths for executables.
Initial import of Postgresql 6.2.1, an Object Relational Database Management System, into the NetBSD packages collection, from the FreeBSD port.
Initial revision