Commit graph

260 commits

Author SHA1 Message Date
Palle Girgensohn
73c856222e Update PostgreSQL to 9.0.4, 8.4.8, 8.3.15 and 8.2.21.
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.

The issue with pg_upgrade and the fix are detailed on the PostgreSQL
wiki: http://wiki.postgresql.org/wiki/20110408pg_upgrade_fix
Users who have already used pg_upgrade should run the database repair
script given on that page on their databases as soon as possible.

See the release notes for each version at
http://www.postgresql.org/docs/current/static/release.html for a full
list of changes with details.

Allow the username of the postgresql user to configurable for 8.4 and 9.0.
Largely inspired by the work of Jason Helfman [153668, 153136].

Change PGUSER knob to PG_USER not to clash with PGUSER environment.

PR: 153668, 153136, 155493, 155137
2011-04-18 23:34:27 +00:00
Palle Girgensohn
3832212b4c Update to versions 9.0.3, 8.4.7, 8.3.14 and 8.2.20.
This update includes a security fix which prevents a buffer overrun in
the contrib module intarray's input function for the query_int type.
This bug is a security risk since the function's return address could
be overwritten by malicious code.

All supported versions of PostgreSQL are impacted. However, the
affected contrib module is optional. Only users who have installed the
intarray module in their database are affected. See the CVE Advisory
at http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-4015

This release includes 63 bugfixes, including:

- Avoid unexpected conversion overflow in planner for distant date values
- Fix assignment to an array slice that is before the existing range
of subscripts
- Fix pg_restore to do the right thing when escaping large objects
- Avoid failures when EXPLAIN tries to display a simple-form CASE expression
- Improved build support for Windows version
- Fix bug in contrib/seg's GiST picksplit algorithm which caused
performance degredation

The 9.0.3 update also contains several fixes for issues with features
introduced or changed in version 9.0:

- Ensure all the received WAL is fsync'd to disk before exiting walreceiver
- Improve performance of walreceiver by avoiding excess fsync activity
- Make ALTER TABLE revalidate uniqueness and exclusion constraints when needed
- Fix EvalPlanQual for UPDATE of an inheritance tree when the tables
are not all alike

PR:		ports/154436
Security:	http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-4015
Feature safe:	yes
Approved by:	portmgr
2011-02-01 14:48:17 +00:00
Andrej Zverev
065a14d86b Fix @dirrmtry since it already filter stderr and return true.
PR:		ports/153895
Submitted by:	az@
Approved by:	maintainer (timeout)
Feature safe:	yes
2011-01-30 08:39:58 +00:00
Martin Matuska
758204930a - Update to 8.3.13
- unify ICU handling

PR:		ports/153245
Approved by:	maintainer (timeout)
2010-12-31 09:55:31 +00:00
Baptiste Daroussin
bb63afd2dd - Prepare for devel/icu4 deletion
- fix py-icu with icu4.6
- fix portsgresql*server with icu 4.6
- remove now useless icu patch from webkit
2010-12-16 18:47:56 +00:00
Martin Matuska
18ea98ce98 - Fix build if WITH_ICU or WITH_ICU4 defined (bsd.autotools.mk update)
Approved by:	portmgr (pav)
2010-12-09 16:10:19 +00:00
Ade Lovett
4a8684e352 Sync to new bsd.autotools.mk 2010-12-04 07:34:27 +00:00
Sunpoet Po-Chuan Hsieh
989715b602 - Use dirrmtry on share/postgresql/tsearch_data for postgresql{83|84|90}-server
- Bump PORTREVISION

PR:		ports/151882
Submitted by:	sunpoet (myself)
Approved by:	girgen (maintainer timeout, 20 days)
2010-11-22 19:21:09 +00:00
Rene Ladan
2e5b524b0c - Fix optional dependency on security/heimdal
- Bump PORTREVISION
PR:		ports/152029
Submitted by:	Joerg Pulz [Joerg.Pulz frm2.tum.de]
Approved by:	Ryan Steinmetz <rpsfa@rit.edu> (maintainer of net/freeradius*)
		girgen (maintainer of databases/postgresql*-server,
		        14 day timeout)
2010-11-21 23:48:49 +00:00
Ade Lovett
6abd00a86b Punt autoconf267->autoconf268 2010-10-16 11:52:47 +00:00
Palle Girgensohn
060a528952 Update all PostgreSQL ports to latest versions.
Also, try to break the previous 1:1 relation between FreeBSD system and
PostgreSQL versions installed. Use different PREFIX:es to install
different versions on the same system.

PR: ports/132402, ports/145002, ports/146657
2010-10-07 06:58:10 +00:00
Ade Lovett
8262a7b51d Autotools update. Read ports/UPDATING 20100915 for details.
Approved by:	portmgr (for Mk/bsd.port.mk part)
Tested by:	Multiple -exp runs
2010-09-15 18:35:24 +00:00
Erwin Lansing
8c6092e5ec BROKEN should not be quoted.
No functional change.
2010-06-13 08:40:06 +00:00
Ade Lovett
8d837132c7 Bounce PORTREVISION for gettext-related ports. Have fun, ya'll. 2010-05-31 02:01:56 +00:00
Palle Girgensohn
daea94a3e1 Update all PostgreSQL ports to latest version.
Remove postgresql-contrib in favour for postgresqlNN-contrib.
This way we will get packages built, which is nice.

Security:	CVE-2010-1169
Security:	CVE-2010-1170

The PostgreSQL Project today released minor versions updating all active
branches of the PostgreSQL object-relational database system, including
versions 8.4.4, 8.3.11, 8.2.17, 8.1.21, 8.0.25, and 7.4.29. This release
fixes moderate-risk security issues with PL/perl and PL/tcl, as well as
a data corruption issue with standby databases.  Users of any of these
three features should update their PostgreSQL installations immediately.

The PL/perl security fix closes a security hole in PL/perl
procedures which could allow privilege escalation on the host system,
caused by a flaw in Safe.pm; see CVE-2010-1169 and CVE-2010-1447 for
details.  A second patch prevents PL/tcl's pltcl_modules table from
being subverted in order to run arbitrary Tcl scripts; see
CVE-2010-1170.  These issues only affect users who have enabled either
of these two stored procedure languages.

Also corrected is use of the command ALTER TABLE SET TABLESPACE, which
previously could cause data corruption on Warm Standby database slaves.
This issue affects only version 8.4.

There are also 21 other bug fixes in this release, some of which apply
only to version 8.4, and a few of which are specifically for Windows.
While these are generally fixes for minor issues, among the changes are:

     * Fix for a combinational crash condition
     * Prevent normal users from resetting some GUCs in
       their own role definitions
     * Correctly apply constraint exclusion in UPDATE and DELETE queries
     * Minor fixes for WAL archiving
     * Update timezone data for 12 zones

See the release notes for a full list of changes with details.

Releasenotes at http://www.postgresql.org/docs/current/static/release.html
2010-05-20 15:43:39 +00:00
Doug Barton
1d6b4b3f91 Begin the process of deprecating sysutils/rc_subr by
s#. %%RC_SUBR%%#. /etc/rc.subr#
2010-03-27 00:15:24 +00:00
Alex Dupre
90b8bb682d PTHREAD_[CFLAGS|LDFLAGS] are already set in CONFIGURE_ENV.
Approved by:	portmgr and maintainer timeout (1 month)
2010-01-04 20:37:30 +00:00
Alex Dupre
fdbfe9cc75 Don't link unneeded PTHREAD_LIBS. This fixes php extensions and apache modules.
Approved by:	portmgr and maintainer timeout (1 month)
2010-01-04 20:29:37 +00:00
Xin LI
dda14e15e7 Security update to 8.3.9.
Security:	vid e7bc5600-eaa0-11de-bd9c-00215c6a37bb
Security:	CVE-2009-4034 CVE-2009-4136
With hat:	ports-security
2009-12-20 04:32:26 +00:00
Doug Barton
0175383f0a Fix a few "bad example" problems in the rc.d scripts that have been
propogated by copy and paste.

1. Primarily the "empty variable" default assignment, which is mostly
${name}_flags="", but fix a few others as well.
2. Where they are not already documented, add the existence of the _flags
(or other deleted empties) option to the comments, and in some cases add
comments from scratch.
3. Replace things that look like:
prefix=%%PREFIX%%
command=${prefix}/sbin/foo
to just use %%PREFIX%%. In many cases the $prefix variable is only used
once, and in some cases it is not used at all.
4. In a few cases remove ${name}_flags from command_args
5. Remove a long-stale comment about putting the port's rc.d script in
/etc/rc.d (which is no longer necessary).

No PORTREVISION bumps because all of these changes are noops.
2009-07-15 16:56:10 +00:00
Palle Girgensohn
e6109cdbcf Update PostgreSQL to latest versions.
The PostgreSQL Project today released minor versions updating all active
branches of the PostgreSQL object-relational database system, including
versions 8.3.7, 8.2.13, 8.1.17, 8.0.21 and 7.4.25. This release fixes a denial
of service issue with encoding conversion, and all users should update their
installations at the next reasonable opportunity.

There are 12 other minor fixes contained in these update releases, including
fixes for xpath() functions in version 8.3. See the release notes for full
details.

URL: http://www.postgresql.org/docs/8.3/static/release-8-3-7.html
URL: http://www.postgresql.org/docs/8.2/static/release-8-2-13.html
URL: http://www.postgresql.org/docs/8.1/static/release.html#RELEASE-8-1-17
URL: http://www.postgresql.org/docs/8.0/static/release.html#RELEASE-8-0-21
URL: http://www.postgresql.org/docs/7.4/static/release.html#RELEASE-7-4-24
2009-03-18 15:13:39 +00:00
Palle Girgensohn
4faeb886a5 Update PostgreSQL to latest versions.
URL: http://www.postgresql.org/about/news.1055

The PostgreSQL Project today released
updates to all active branches of the
PostgreSQL object-relational database
system, including versions 8.3.6,
8.2.12, 8.1.16, 8.0.20 and 7.4.24. These
updates include two serious fixes, for
autovacuum crashes in version 8.1 and
GiST indexing data loss in 8.3, and
those two versions should be updated as
soon as possible.

These update releases also include
patches for several low-risk security
holes, as well as up to 17 other minor
fixes, depending on your major version
of PostgreSQL. Included as well are
Daylight Savings Time changes for Nepal,
Switzerland and Cuba. See the release
notes for full details.

The first serious issue affects users
who are using version 8.1 with
Autovacuum, which will fail when XID
rollover is required. The second serious
issue can cause data loss when CLUSTER
is used with GiST indexes (such as full
text indexes) on version 8.3. Both
issues are fixed in these releases.
2009-02-10 11:59:15 +00:00
Palle Girgensohn
1c63d5a340 This time, *really* update to *latest* version of PostgreSQL, 8.3.5. 2008-11-07 18:07:50 +00:00
Palle Girgensohn
978e3de48f Update PostgreSQL to latest versions.
http://www.postgresql.org/docs/current/static/release-8-3-5.html
http://www.postgresql.org/docs/current/static/release-8-2-11.html
http://www.postgresql.org/docs/current/static/release-8-1-15.html
http://www.postgresql.org/docs/current/static/release-8-0-19.html
http://www.postgresql.org/docs/current/static/release-7-4-23.html

Note that the GiST problem mentioned does not apply to users of
the FreeBSD port, since the previous version of PostgreSQL never
reached the ports tree, due to the freeze of the tree pending the
FreeBSD 7.1 update.

PR:	121848, 124713
2008-11-07 09:49:49 +00:00
Palle Girgensohn
2181e5d2d4 Fix missed commit when updating ICU patch to chase update of autoconf 2.61 -> 2.62 2008-09-01 11:59:12 +00:00
Palle Girgensohn
c3b2ebe873 Update ICU patch to chase update of autoconf 2.61 -> 2.62
PR:		ports/126773
Submitted by:	Robert Schulze
2008-08-28 15:15:28 +00:00
Ade Lovett
771ea13f41 Conversion from (now defunct) autoconf-2.61 to autoconf-2.62
Tested by:	exp build run (erwin)
2008-08-20 00:57:32 +00:00
Palle Girgensohn
89025407ac Updates of the PostgreSQL ports
Updates for all maintained versions of PostgreSQL are available today:
8.3.3, 8.2.9, 8.1.13, 8.0.17 and 7.4.21.  These releases fix more than
two dozen minor issues reported and patched over the last few months.
All PostgreSQL users should plan to update at their earliest
convenience. People in affected time zones, in particular, should
upgrade as soon as possible.

Release Notes:
        http://www.postgresql.org/docs/8.3/static/release.html

Also, fix umask error in periodic script [1].

PR:		ports/124457 [1]
Submitted by:	Alexandre Perrin
2008-06-12 23:46:07 +00:00
Edwin Groothuis
090059a210 Bump portrevision due to upgrade of devel/gettext.
The affected ports are the ones with gettext as a run-dependency
according to ports/INDEX-7 (5007 of them) and the ones with USE_GETTEXT
in Makefile (29 of them).

PR:             ports/124340
Submitted by:   edwin@
Approved by:    portmgr (pav)
2008-06-06 14:17:21 +00:00
Pav Lucistnik
026e7e59d0 - Remove USE_GETOPT_LONG which is a no-op since March 200 2008-03-20 09:37:21 +00:00
Palle Girgensohn
6d85112973 Update to 8.3.1
Release notes:
http://developer.postgresql.org/pgdocs/postgres/release-8-3-1.html
2008-03-18 22:25:34 +00:00
Palle Girgensohn
7872925f6d The ICU patch <http://people.freebsd.org/~girgen/postgresql-icu/README.html>
is finally ported to postgresql-8.3, thanks to Petr Jelinek and yours truly.
2008-03-09 19:04:04 +00:00
Palle Girgensohn
2cc30ceb2a Remove bad "BETA" alert. This is not beta anymore.
Set update_process_title = off, as suggested by kris@ and others.
2008-02-18 12:55:02 +00:00
Palle Girgensohn
fbbdeec687 Today the PostgreSQL Global Development Group releases the
long-awaited version 8.3 of the most advanced open source database,
which cements our place as the best performing open source
database. Among the performance features you'll be excited about in
8.3 are:

    * Heap Only Tuples
    * BGWriter Autotuning
    * Asynchronous Commit
    * Spread Checkpoints
    * Synchronous Scan
    * "Var-Varlena"
    * L2 Cache Protection
    * Lazy XID

8.3 also has a lot of cool features for PostgreSQL DBAs and developers, including:

    * CSV Logging
    * SQL/XML
    * MS Visual C++ support
    * ENUMs
    * Integrated Tsearch
    * SSPI & GSSAPI
    * Composite Type Arrays
    * pg_standby
2008-02-04 17:12:32 +00:00
Palle Girgensohn
98f3f95bd8 Update to RC2.
[1] Fix problem installing from package.

[2] Use DISTVERSION instead of PORTVERSION.
    (the port reports now correct version 8.3.r2)

[2] Enable more 8.3 features:
    - Add OPTION for the new XML data type (default: enabled)
    - Add OPTION for usage of system timezone data (default: included tzdata)

PR:		ports/119770 [1], ports/119561 [2]
Submitted by:	Artis Caune [1], Martin Matuska [2]
2008-01-22 14:08:48 +00:00
Palle Girgensohn
4e84ab85b9 Fix MASTER_SITE_SUBDIR
PR:		ports/119477
Submitted by:	Sunpoet Po-Chuan Hsieh
2008-01-09 09:15:27 +00:00
Palle Girgensohn
0628585e11 Revert bad commit. The size was OK for *this* version. 2008-01-07 20:45:32 +00:00
Palle Girgensohn
45ad356923 Fix bad distinfo sizes 2008-01-07 20:41:37 +00:00
Palle Girgensohn
1d25499d3d Update all PostgreSQL ports to latest versions.
This includes a bunch of security fixes: CVE-2007-6067, CVE-2007-4772,
CVE-2007-6601, CVE-2007-6600 and CVE-2007-4769.

Security: http://www.postgresql.org/about/news.905
2008-01-07 13:51:57 +00:00
Pav Lucistnik
d342d979ea - Mark BROKEN: unfetchable 2007-12-14 19:50:38 +00:00
Palle Girgensohn
1577187ba7 Update to PostgreSQL 8.3 beta2.
http://www.postgresql.org/developer/beta

This is beta quality, don't use in production.

Approved by:	portmgr (erwin)
2007-11-01 07:10:04 +00:00
Palle Girgensohn
104aa6c048 Introducing the first beta of PostgreSQL 8.3
Note that this is a BETA VERSION of the PostgreSQL server.
Use it only for testing.
2007-10-15 15:32:19 +00:00
Palle Girgensohn
003fae718d Work in progress 2007-10-08 13:17:38 +00:00
Edwin Groothuis
e74f1f2ba2 Remove always-false/true conditions based on OSVERSION 500000 2007-10-04 00:24:54 +00:00
Ade Lovett
3e862d356d Fix plist
Approved by:	maintainer
2007-09-25 22:34:32 +00:00
Palle Girgensohn
9d6b68248f Update PostgreSQL ports to the latest patch releases.
PR: ports/104075
2007-09-17 16:45:00 +00:00
Florent Thoumie
d4f0d0048a - Welcome X.org 7.2 \o/.
- Set X11BASE to ${LOCALBASE} for recent ${OSVERSION}.
- Bump PORTREVISION for ports intalling files in ${X11BASE}.
2007-05-19 20:36:56 +00:00
Palle Girgensohn
0460921154 Update PostgreSQL to 7.3.19, 7.4.17, 8.0.13, 8.1.9 and 8.2.4 respectively:
The PostgreSQL Global Development Group has released updated versions
 for PostgreSQL 8.2 and all back versions to patch a privilege
 escalation exploit in SECURITY DEFINER functions.  All users of this
 feature are urged to update to the latest minor version and follow
 instructions on securing these functions as soon as possible.  This
 minor release also contains other fixes, so all users should plan to
 deploy it.

 Once you have updated, additional steps are required to secure your
 database against the exploit.  Please read the release notes at
 http://www.postgresql.org/docs/8.2/static/release.html and the
 TechDocs article at http://www.postgresql.org/docs/techdocs.77 on how
 to lock down your security definer functions, if you use them.

 As always, application of a minor release does not require a dump and
 reload of the database.

 The frequency of security fixes recently is a result of increased
 scrutiny of the PostgreSQL code by government agencies and
 security-conscious companies.  Rapid turnaround on security patches
 is key to keeping PostgreSQL the most secure SQL database.  Your work
 and vigilance in applying the latest security updates ensures that
 there will never be a PostgreSQL "worm".

http://www.postgresql.org/docs/8.2/static/release-8-2-4.html
http://www.postgresql.org/docs/8.1/static/release.html#RELEASE-8-1-9
http://www.postgresql.org/docs/8.0/static/release.html#RELEASE-8-0-13
http://www.postgresql.org/docs/7.4/static/release.html#RELEASE-7-4-17

http://www.postgresql.org/docs/techdocs.77

Security: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-2138
2007-04-23 16:10:54 +00:00
Norikatsu Shigemura
ded27d2f66 Respect PTHREAD_CFLAGS/PTHREAD_LIBS.
Approved by:	maintainer timeout (1 month)
2007-03-18 16:23:18 +00:00
Palle Girgensohn
8fb2e60bb6 Update PostgreSQL 8.x to 8.0.12, 8.1.8 and 8.2.3 respectively:
The recent security release (8.0.11, 8.1.7, 8.2.2) has been withdrawn.
  It contained an issue which causes error with custom data types, type
  constraints and expression indexes. These upgrades fix the problem.
2007-02-07 09:51:48 +00:00