Commit graph

130 commits

Author SHA1 Message Date
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
jlam
2d6083c327 Cosmetic adjustments. 2000-12-11 16:43:11 +00:00
jlam
dd98fdf4d4 Note the packages that include this file so we note when other packages are
update when this one is updated.
2000-12-08 17:16:32 +00:00
jlam
2792146bd0 Remove unnecessary substitution of @PGHOME@ in pgsql.sh.tmpl. 2000-12-07 16:57:54 +00:00
jlam
e2cdf6a424 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>.
2000-12-07 16:56:39 +00:00
mjl
6575822ad4 Update to 7.0.3.
Jdbc fixes (Peter)
Large object fix (Tom)
Fix lean in COPY WITH OIDS leak (Tom)
Fix backwards-index-scan (Tom)
Fix SELECT ... FOR UPDATE so it checks for duplicate keys (Hiroshi)
Add --enable-syslog to configure (Marc)
Fix abort transaction at backend exit in rare cases (Tom)
Fix for psql \l+ when multi-byte enabled (Tatsuo)
Allow PL/pgSQL to accept non ascii identifiers (Tatsuo)
Make vacuum always flush buffers (Tom)
Fix to allow cancel while waiting for a lock (Hiroshi)
Fix for memory aloocation problem in user authentication code (Tom)
Remove bogus use of int4out() (Tom)
Fixes for multiple subqueries in COALESCE or BETWEEN (Tom)
Fix for failure of triggers on heap open in certain cases (Jeroen van Vianen)
Fix for erroneous selectivity of not-equals (Tom)
Fix for erroneous use of strcmp() (Tom)
Fix for bug where storage manager accesses items beyond end of file (Tom)
Fix to include kernel errno message in all smgr elog messages (Tom)
Fix for '.' not in PATH at build time (SL Baur)
Fix for out-of-file-descriptors error (Tom)
Fix to make pg_dump dump 'iscachable' flag for functions (Tom)
Fix for subselect in targetlist of Append node (Tom)
Fix for mergejoin plans (Tom)
Fix TRUNCATE failure on relations with indexes (Tom)
Avoid database-wide restart on write error (Hiroshi)
Fix nodeMaterial to honor chgParam by recomputing its output (Tom)
Fix VACUUM problem with moving chain of update tuples when source and destination of a tuple lie on the same page (Tom)
Fix user.c CommandCounterIncrement (Tom)
Fix for AM/PM boundary problem in to_char() (Karel Zak)
Fix TIME aggregate handling (Tom)
Fix to_char() to avoid coredump on NULL input (Tom)
Buffer fix (Tom)
Fix for inserting/copying longer multibyte strings into char() data types (Tatsuo)
Fix for crash of backend, on abort (Tom)
2000-12-07 08:29:00 +00:00
jlam
608cc53477 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.
2000-09-21 14:34:56 +00:00
wiz
dc1b4dd34d add RCS Id 2000-09-03 09:51:19 +00:00
wiz
29d66b632a remove unnecessary whitespace 2000-09-03 09:51:12 +00:00
wiz
49dfa3cb09 Use @PREFIX@ instead of hardwired /usr/pkg (brrr) 2000-09-01 23:57:18 +00:00
jwise
013f4050c2 Adapt patch used by ../tcl-postgresql to tcl-8.3.2. 2000-09-01 14:19:44 +00:00
jlam
f33a677414 Install the Server Programming Interface header files.
Closes PR#10480.
2000-07-15 01:23:56 +00:00
jlam
65ba05a599 Forgot these patches 2000-07-14 04:44:53 +00:00
jlam
6816c67e9c 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)
2000-07-14 04:44:11 +00:00
jlam
290d0483a5 Don't install the extra shared library links on a.out platforms. 2000-06-20 06:06:46 +00:00
fredb
0b51d75182 Remove dependency on "bison". Closes PR pkg/10224, by SUNAGAWA Keiki. 2000-05-29 15:29:11 +00:00
rh
905fee2d38 Fix MASTER_SITES
Add some additional mirrors
2000-05-24 09:11:24 +00:00