Commit graph

146 commits

Author SHA1 Message Date
toshii
fe36e8843c 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.
2003-04-03 18:06:12 +00:00
jmc
6ef2882f85 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..
2003-04-01 05:14:08 +00:00
wiz
28a4483bc7 NO_PATCH is deprecated, says pkglint. Remove it. 2003-03-28 21:14:10 +00:00
mycroft
a5b71796c1 Update postgresql-* to 7.3.2. Contains numerous bug fixes, including remote
holes.

   Restore creation of OID column in CREATE TABLE AS / SELECT INTO
   Fix pg_dump core dump when dumping views having comments
   Dump DEFERRABLE/INITIALLY DEFERRED constraints properly
   Fix UPDATE when child table's column numbering differs from parent
   Increase default value of max_fsm_relations
   Fix problem when fetching backwards in a cursor for a single-row query
   Make backward fetch work properly with cursor on SELECT DISTINCT query
   Fix problems with loading pg_dump files containing contrib/lo usage
   Fix problem with all-numeric user names
   Fix possible memory leak and core dump during disconnect in libpgtcl
   Make plpython's spi_execute command handle nulls properly (Andrew Bosma)
   Adjust plpython error reporting so that its regression test passes again
   Work with bison 1.875
   Handle mixed-case names properly in plpgsql's %type (Neil)
   Fix core dump in pltcl when executing a query rewritten by a rule
   Repair array subscript overruns (per report from Yichen Xie)
   Reduce MAX_TIME_PRECISION from 13 to 10 in floating-point case
   Correctly case-fold variable names in per-database and per-user settings
   Fix coredump in plpgsql's RETURN NEXT when SELECT into record returns
        no rows
   Fix outdated use of pg_type.typprtlen in python client interface
   Correctly handle fractional seconds in timestamps in JDBC driver
   Improve performance of getImportedKeys() in JDBC
   Make shared-library symlinks work standardly on HPUX (Giles)
   Repair inconsistent rounding behavior for timestamp, time, interval
   SSL negotiation fixes (Nathan Mueller)
   Make libpq's ~/.pgpass feature work when connecting with PQconnectDB
   Update my2pg, ora2pg
   Translation updates
   Add casts between types lo and oid in contrib/lo
   fastpath code now checks for privilege to call function
2003-02-21 16:09:51 +00:00
jlam
40d4e783e2 Suppress checks for building libpgtcl.a if tcl-postgresql package is
installed.
2003-01-05 20:19:35 +00:00
jlam
4ec712783e 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.
2003-01-05 20:12:07 +00:00
jlam
a0a08eae8e Trivially use buildlink2. 2002-10-19 04:01:22 +00:00
jlam
1f2f4c68c5 Update databases/postgresql to version 7.2.3.
This has a variety of fixes from 7.2.2, including fixes to prevent
   possible data loss.

   A dump/restore is *not* required for those running 7.2.X.

Changes from version 7.2.2 include:

 Prevent possible compressed transaction log loss (Tom)
 Prevent non-superuser from increasing most recent vacuum info (Tom)
 Handle pre-1970 date values in newer versions of glibc (Tom)
 Fix possible hang during server shutdown
 Prevent spinlock hangs on SMP PPC machines (Tomoyuki Niijima)
 Fix pg_dump to properly dump FULL JOIN USING (Tom)
2002-10-19 03:03:49 +00:00
abs
23ea6ff3f0 add comment that this is not included by jdbc-postgresql 2002-09-26 09:56:07 +00:00
jonb
16bae308c0 Update to 7.2.2 for security reasons. Only a security fix since 7.2.1
And create a way to get rid of that stupid message from audit-packages!
2002-09-01 01:14:29 +00:00
jlam
3cfd71c5f7 Fix problem with MASTER_SITES reported by Dan McMahill in private email.
The make variable expansion differs between 1.5.x make and a -current make,
so simplify it by flattening it out.
2002-04-13 06:49:43 +00:00
jlam
bc4a8b3a74 Update databases/postgresql and related sub-packages to 7.2.1.
*** Please note that a dump/restore is NOT required for those ***
*** running PostgreSQL 7.2.                                   ***

Important changes from version 7.2 include:

 Ensure that sequence counters do not go backwards after a crash (Tom)
 Allow psql \connect to handle mixed case database and user names (Tom)
 Return proper OID on command completion even with ON INSERT rules (Tom)
 Allow COPY FROM to use 8-bit DELIMITERS (Tatsuo)
 Improve handling of multiple UNIONs with different lengths (Tom)
 Fix for array subscripts handling (Tom)
 Allow EXECUTE of "CREATE TABLE AS ... SELECT" in PL/PgSQL (Tom)
2002-04-05 16:27:27 +00:00
jlam
90a9130fb1 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.
2002-04-04 07:41:00 +00:00
tv
9ecf94c097 Add directory level "source" to MASTER_SITES. Only the newest version
(now 7.2, but I'm not in a position to upgrade the whole shebang yet) is
accessible directly form the top distro level.
2002-03-12 22:09:35 +00:00
jlam
219833889a 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 <darcy@druid.net>
for pointing out the error and possible solution.
2001-12-06 03:46:21 +00:00
jlam
35cdfd9d76 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.
2001-12-03 08:06:24 +00:00
darcy
3d310da89a The PyGreSQL module here has some nasty bugs which will be fixed in the
next distribution.  This patch brings it up to date now.  Major fixes:

- Support for more types.  This fixes a bug introduced in the current
  PostgreSQL because of the different way of handling agregates.
- Add WIN32 support
- Fix some DB-API quoting problems
2001-11-04 21:25:48 +00:00
zuntum
0ca28723fb Move pkg/ files into package's toplevel directory 2001-11-01 00:11:36 +00:00
veego
37955496bd Fix the MASTER_SITES. Some ftp paths changed. 2001-10-06 21:41:30 +00:00
jlam
ef55182abb Update postgresql and packages built from postgresql sources to 7.1.3.
Relevant changes from version 7.1.2 include:

	Remove unused WAL segements of large transactions
	Multiaction rule fix
	Pl/pgSQL memory allocation fix
	VACUUM buffer fix
	pg_dump fixes for GRANT/REVOKE/comments on views, user-defined types
	Fix subselects with DISTINCT ON or LIMIT
	Disable COPY TO/FROM a view
2001-09-07 08:49:10 +00:00
rh
9732904315 Make this compile under NetBSD-1.4.x and other systems that don't come with
preinstalled libssl and libcrypto.
2001-09-05 12:48:48 +00:00
jlam
a6b06a057c Patch readline detection to try running the test program so that we catch
problems early on if insufficient libraries are specified during linking.
Move the configure script patch to the last patch of the group so that
the configure script will have the most recent timestamp.
2001-07-27 17:52:33 +00:00
jlam
a85615f592 Convert to use buildlink.mk files and mark as USE_BUILDLINK_ONLY. 2001-06-21 21:40:07 +00:00
jlam
328a35f96f LIBS is automatically added to CONFIGURE_ENV by bsd.pkg.mk if
GNU_CONFIGURE is defined, so simply set LIBS to the appropriate value.
2001-06-12 20:33:00 +00:00
jlam
c4e71c5e7a CPPFLAGS is now passed to MAKE_ENV and CONFIGURE_ENV by bsd.pkg.mk, so
adapt by moving CPPFLAGS settings to top-level, and removing explicit
inclusion of CPPFLAGS into MAKE_ENV and CONFIGURE_ENV.
2001-06-11 06:34:17 +00:00
jlam
dbfde59b14 The buildlink include and lib directories are added to CFLAGS, CPPFLAGS,
CXXFLAGS, and LDFLAGS by the buildlink.mk files so remove the extra
definitions to add them from the package Makefiles.  As advised by the
bsd.buildlink.mk file, also ensure that the buildlink.mk files are
included prior to defining any package-specific CFLAGS/LDFLAGS to ensure
that the buildlink directories are at the head of the compiler search
paths.
2001-06-11 02:05:07 +00:00
jlam
e0f28140f1 Update postgresql to 7.1.2. Also update postgresql packages built from
postgresql sources:

	postgresql-client, postgresql-docs, postgresql-lib, postgresql-server,
	postgresql-plperl, postgresql-pltcl,
	odbc-postgresql, py-postgresql, tcl-postgresql, tk-postgresql

to 7.1.2 or to depend on postgresql-libs-7.1.2.  Changes from version 7.1.1:

	Fix PL/PgSQL SELECTs when returning no rows
	Fix for psql backslash core dump
	Referential integrity permission fix
	Optimizer fixes
	pg_dump cleanups
2001-05-29 23:28:05 +00:00
jlam
a25ac52b66 Add definitions for BUILDLINK_INCDIR and BUILDLINK_LIBDIR used by the
post-extract target.
2001-05-25 14:56:34 +00:00
jlam
54718a4db7 Standardize name of file to include for build-links to be "buildlink.mk".
Use BUILDLINK_INCDIR, BUILDLINK_LIBDIR for locations of linked headers
and libraries.  Create a variable BUILDLINK_TARGETS whose value is the
list of build-link targets to execute.
2001-05-24 08:53:54 +00:00
jlam
70b5c5b46c Fix problem reported by David Brownlee <abs@netbsd.org> where psql isn't
built with readline support despite linking against libreadline.
2001-05-16 15:41:03 +00:00
jlam
421b1ef2f0 Adapt postgresql-client to use devel/readline/Makefile.readline instead
of the one in databases/postgresql.  Remove the Makefile.readline in
databases/postgresql as it's no longer used by any packages.
2001-05-16 05:28:55 +00:00
jlam
c755567e00 Move Makefile.getopt to pkgsrc/devel/libgetopt and cosmetic updates
to Makefile.readline.
2001-05-15 19:24:27 +00:00
jlam
eccb41c4f6 Fix dependencies and post-extract target. "Make build" in
databases/postgresql should now correctly trigger the full build and
installation of PostgreSQL.
2001-05-15 15:59:22 +00:00
jlam
110cd4ab9b Document the package naming scheme for PostgreSQL packages. 2001-05-14 15:45:08 +00:00
jlam
ba8db6ad36 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.
2001-05-14 14:52:36 +00:00
jlam
dd9d79d058 Share a common distinfo file with the postgresql package. 2001-05-04 01:05:19 +00:00
agc
6ef28d06c5 Move to sha1 digests, and add distfile sizes. 2001-04-18 16:10:56 +00:00
agc
5092342d3d + move the distfile digest/checksum value from files/md5 to distinfo
+ move the patch digest/checksum values from files/patch-sum to distinfo
+ include distfile filesizes in distinfo
2001-04-17 09:56:50 +00:00
jlam
73cd9e77cb Note inclusion by odbc-postgresql 2001-04-10 13:08:05 +00:00
hubertf
e32afb6fea Change BUILD_DEPENDS semantics:
first component is now a package name+version/pattern, no more
executable/patchname/whatnot.

While there, introduce BUILD_USES_MSGFMT as shorthand to pull in
devel/gettext unless /usr/bin/msgfmt exists (i.e. on post-1.5 -current).

Patch by Alistair Crooks <agc@netbsd.org>
2001-03-27 03:19:43 +00:00
wennmach
11fda0c8b3 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.
2001-03-25 11:29:37 +00:00
lukem
051abd3b1f 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.
2001-02-26 18:09:40 +00:00
wiz
417e8bbabf Update to new COMMENT style: COMMENT var in Makefile instead of pkg/COMMENT. 2001-02-16 14:17:22 +00:00
jlam
c75af80291 Patch to fix alpha-related problems. Sent in private mail by Berndt Josef
Wulf <wulf@ping.net.au>.  Fixes PR#10704.
2001-02-13 02:39:32 +00:00
jlam
bd487625e8 Apply patch to fix alpha-related problems. 2001-02-13 02:37:43 +00:00
jlam
da659d71ac Add `shutdown' KEYWORD to rc.d control script so the database properly
shuts down during shutdown.
2001-02-12 20:11:56 +00:00
jlam
aa2e62587e s/autoreconf/${LOCALBASE}/bin/autoreconf. This was apparently missed in
the previous sweep for such changes (perhaps other Makefile.common files
also?).
2001-02-10 22:37:47 +00:00
wiz
b979f7222a 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.
2001-01-29 11:34:21 +00:00
agc
9c2d582fc9 The way that shared objects were handled in the PLISTs and bsd.pkg.mk was
out of date - it was based on a.out OBJECT_FMT, and added entries in the
generated PLISTs to reflect the symlinks that ELF packages uses. It also
tried to be clever, and removed and recreated any symbolic links that were
created, which has resulted in some fun, especially with packages which
use dlopen(3) to load modules. Some recent changes to our ld.so to bring
it more into line with other Operating Systems also exposed some cracks.

+ Modify bsd.pkg.mk and its shared object handling, so that PLISTs now contain
the ELF symlinks.
+ Don't mess about with file system entries when handling shared objects in
bsd.pkg.mk, since it's likely that libtool and the BSD *.mk processing will
have got it right, and have a much better idea than we do.
+ Modify PLISTs to contain "ELF symlinks"
+ On a.out platforms, delete any "ELF symlinks" from the generated PLISTs
+ On ELF platforms, no extra processing needs to be done in bsd.pkg.mk
+ Modify print-PLIST target in bsd.pkg.mk to add dummy symlink entries on
a.out platforms
+ Update the documentation in Packages.txt

With many thanks to Thomas Klausner for keeping me honest with this.
2001-01-04 15:10:17 +00:00
jlam
1a8e753c59 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.
2000-12-11 20:18:56 +00:00