OSDN Git Service
Peter Eisentraut [Fri, 30 Jul 2004 12:26:40 +0000 (12:26 +0000)]
PostgreSQL extension makefile framework ("pgxs"), by Fabien Coelho, with
some massaging by Peter Eisentraut. This is basically a simple
generalization of the existing contrib makefiles.
Peter Eisentraut [Fri, 30 Jul 2004 05:28:53 +0000 (05:28 +0000)]
Translation updates
Bruce Momjian [Thu, 29 Jul 2004 16:47:07 +0000 (16:47 +0000)]
Add:
> * Allow administrators to safely terminate individual sessions
Bruce Momjian [Thu, 29 Jul 2004 16:30:32 +0000 (16:30 +0000)]
Update Turkish FAQ.
Devrim GUNDUZ
Bruce Momjian [Thu, 29 Jul 2004 16:24:02 +0000 (16:24 +0000)]
Add:
> * Allow server logs to be read using SQL commands
> * Allow server configuration parameters to be modified remotetly
Bruce Momjian [Thu, 29 Jul 2004 16:11:11 +0000 (16:11 +0000)]
Fix for pg_ctl -o processing. Report from Sean Chittenden.
Peter Eisentraut [Thu, 29 Jul 2004 14:54:09 +0000 (14:54 +0000)]
Translation update
Tom Lane [Wed, 28 Jul 2004 22:05:47 +0000 (22:05 +0000)]
Revert ill-conceived patch that made elog(FATAL) the same as elog(ERROR)
followed by seeing EOF from client. If we want a safe session-kill
capability we will need to write one, not break our error handling
mechanism.
Bruce Momjian [Wed, 28 Jul 2004 14:28:57 +0000 (14:28 +0000)]
Update release notes with better wording.
Brian B.
Tom Lane [Wed, 28 Jul 2004 14:23:31 +0000 (14:23 +0000)]
Fix subtransaction behavior for large objects, temp namespace, files,
password/group files. Also allow read-only subtransactions of a read-write
parent, but not vice versa. These are the reasonably noncontroversial
parts of Alvaro's recent mop-up patch, plus further work on large objects
to minimize use of the TopTransactionResourceOwner.
Tom Lane [Tue, 27 Jul 2004 05:11:48 +0000 (05:11 +0000)]
Replace nested-BEGIN syntax for subtransactions with spec-compliant
SAVEPOINT/RELEASE/ROLLBACK-TO syntax. (Alvaro)
Cause COMMIT of a failed transaction to report ROLLBACK instead of
COMMIT in its command tag. (Tom)
Fix a few loose ends in the nested-transactions stuff.
Bruce Momjian [Tue, 27 Jul 2004 03:27:48 +0000 (03:27 +0000)]
Update tuple header size.
Tom Lane [Tue, 27 Jul 2004 01:46:03 +0000 (01:46 +0000)]
Fix oversight: in case where SIGTERM is received while there are
live backends, the archiver and stats processes never got sent a
kill signal. They'd eventually exit on their own, but not for awhile,
which is a bit annoying when you are trying to replace the executable
file on a platform that doesn't allow removal of busy executables.
Also, tweak main loop logic so that we will perform the background
tasks after select() returns EINTR.
Tom Lane [Mon, 26 Jul 2004 18:53:38 +0000 (18:53 +0000)]
Add some more logging to simplify diagnosis of problems in IDENT
authorization. Inspired by problem report from Ian Pilcher.
Michael Meskes [Mon, 26 Jul 2004 10:28:28 +0000 (10:28 +0000)]
SQL defines are only used in SQL space in Informix mode.
Bruce Momjian [Mon, 26 Jul 2004 01:48:00 +0000 (01:48 +0000)]
Here is a patch that fixes the pipes used in find_other_exec() when
running as a service on windows <= 2000. Required to make the pg_ctl
service wrapper to work at all.
Magnus Hagander
Bruce Momjian [Mon, 26 Jul 2004 00:26:42 +0000 (00:26 +0000)]
Adjust release notes based on community feedback.
Peter Eisentraut [Sun, 25 Jul 2004 12:00:07 +0000 (12:00 +0000)]
Translation updates
Bruce Momjian [Sun, 25 Jul 2004 04:18:05 +0000 (04:18 +0000)]
Update 7.5 release notes.
Bruce Momjian [Sun, 25 Jul 2004 03:30:31 +0000 (03:30 +0000)]
Improve description of release note creation.
Tom Lane [Sat, 24 Jul 2004 20:01:42 +0000 (20:01 +0000)]
Fix obsolete comment.
Tom Lane [Sat, 24 Jul 2004 19:51:23 +0000 (19:51 +0000)]
log_destination should only be PGC_SIGHUP, not PGC_POSTMASTER, as per
discussion yesterday. Also a few improvements in the associated
documentation.
Bruce Momjian [Sat, 24 Jul 2004 09:36:53 +0000 (09:36 +0000)]
First draft of 7.5 release notes. Still needs markup, additional major
items, and detailed text descriptions.
Bruce Momjian [Sat, 24 Jul 2004 03:06:47 +0000 (03:06 +0000)]
Add steps for creating release notes.
Bruce Momjian [Fri, 23 Jul 2004 01:58:36 +0000 (01:58 +0000)]
Move Win32 defines from port.h to win32.h.
Tom Lane [Thu, 22 Jul 2004 21:09:37 +0000 (21:09 +0000)]
Add cross-check that current timeline of pg_control is an ancestor of
recovery_target_timeline --- otherwise there is no path from the backup
to the requested timeline. This check was foreseen in the original
discussion but I forgot to implement it.
Tom Lane [Thu, 22 Jul 2004 20:18:40 +0000 (20:18 +0000)]
Add a check on file size as an additional safety check that a WAL file
recovered from archive is not corrupt. It's not much but it will catch
one common problem, viz out-of-disk-space.
Also, force a WAL recovery scan when recovery.conf is present, even if
pg_control shows a clean shutdown. This allows recovery with a tar backup
that was taken with the postmaster shut down, as per complaint from
Mark Kirkwood.
Bruce Momjian [Thu, 22 Jul 2004 12:24:13 +0000 (12:24 +0000)]
Updated wording:
> * Have psql show current values for a sequence
Bruce Momjian [Thu, 22 Jul 2004 11:49:19 +0000 (11:49 +0000)]
Done:
> * -Have psql show more information about sequences
Tom Lane [Thu, 22 Jul 2004 05:28:30 +0000 (05:28 +0000)]
Still another try at automatically detecting the best match in the zic
timezone database for the system behavior we find ourselves in. Scan
backwards from current time and choose the zone that matches furthest
back. As per discussion a week or so back.
Tom Lane [Thu, 22 Jul 2004 01:44:36 +0000 (01:44 +0000)]
Avoid default: followed by no statement, per Dann Corbit.
Tom Lane [Thu, 22 Jul 2004 01:41:24 +0000 (01:41 +0000)]
Add missing <getopt.h>, per Dann Corbit.
Tom Lane [Wed, 21 Jul 2004 22:31:26 +0000 (22:31 +0000)]
Invent WAL timelines, as per recent discussion, to make point-in-time
recovery more manageable. Also, undo recent change to add FILE_HEADER
and WASTED_SPACE records to XLOG; instead make the XLOG page header
variable-size with extra fields in the first page of an XLOG file.
This should fix the boundary-case bugs observed by Mark Kirkwood.
initdb forced due to change of XLOG representation.
Bruce Momjian [Wed, 21 Jul 2004 20:45:54 +0000 (20:45 +0000)]
The attached patch allows 'select foo()' as well as 'select * from
foo()' where foo() is a plperl function that returns a single composite.
Andrew Dunstan
Bruce Momjian [Wed, 21 Jul 2004 20:44:52 +0000 (20:44 +0000)]
Please find enclosed a patch that matches the PL/Perl documentation
(fairly closely, I hope) to the current PL/Perl implementation.
David Fetter
Bruce Momjian [Wed, 21 Jul 2004 20:43:53 +0000 (20:43 +0000)]
The attached patch shows the new column "tablespace" in the mentioned
views.
Klaus Naumann
Bruce Momjian [Wed, 21 Jul 2004 20:34:50 +0000 (20:34 +0000)]
Back out pg_autovacuum commit after cvs clean failure causes commit.
Bruce Momjian [Wed, 21 Jul 2004 20:23:05 +0000 (20:23 +0000)]
lease find enclosed a patch that matches the PL/Perl documentation
(fairly closely, I hope) to the current PL/Perl implementation.
David Fetter
Bruce Momjian [Wed, 21 Jul 2004 13:46:44 +0000 (13:46 +0000)]
Mention plpgsql:
< o -Allow parameters to be specified by name and type during definition
> o -Allow PL/pgSQL parameters to be specified by name and type during definition
Bruce Momjian [Wed, 21 Jul 2004 03:07:40 +0000 (03:07 +0000)]
Allow borland compiles.
Bruce Momjian [Tue, 20 Jul 2004 22:56:40 +0000 (22:56 +0000)]
As per the following:
http://archives.postgresql.org/pgsql-cygwin/2004-07/msg00090.php
Jason Tishler
Bruce Momjian [Tue, 20 Jul 2004 22:56:29 +0000 (22:56 +0000)]
Fix unused variable when Assert() not used.
Bruce Momjian [Tue, 20 Jul 2004 22:28:16 +0000 (22:28 +0000)]
Update:
< * Allow psql to display permission information using \df+ and \l+
> * Consistenly display privilege information for all objects in psql
Bruce Momjian [Tue, 20 Jul 2004 21:01:22 +0000 (21:01 +0000)]
Add:
> * Allow psql to display permission information using \df+ and \l+
Bruce Momjian [Tue, 20 Jul 2004 20:37:13 +0000 (20:37 +0000)]
Suppress readline usage in mingw in configure.
Bruce Momjian [Tue, 20 Jul 2004 19:52:03 +0000 (19:52 +0000)]
Add:
> * Fix data types where equality comparison isn't intuitive, e.g. box
Bruce Momjian [Tue, 20 Jul 2004 19:37:36 +0000 (19:37 +0000)]
Done:
> o -Allow parameters to be specified by name and type during definition
Michael Meskes [Tue, 20 Jul 2004 18:06:41 +0000 (18:06 +0000)]
Synced parser and keyword list.
Fixed handling of cyclic defines.
Bruce Momjian [Mon, 19 Jul 2004 21:39:48 +0000 (21:39 +0000)]
Here is another patch that fixes a stack of pg_dump bugs:
* Fix help text ordering
* Add back --set-session-authorization to pg_dumpall. Updated the docs
for that. Updated help for that.
* Dump ALTER USER commands for the cluster owner ("pgsql"). These are
dumped AFTER the create user and create database commands in case the
permissions to do these have been revoked.
* Dump ALTER OWNER for public schema (because it's possible to change
it). This was done by adding TOC entries for the public schema, and
filtering them out at archiver time. I also save the owner in the TOC
entry just for the public schema.
* Suppress dumping single quotes around schema_path and DateStyle
options when they are set using ALTER USER or ALTER DATABASE. Added a
comment to the steps in guc.c to remind people to update that list.
* Fix dumping in --clean mode against a pre-7.3 server. It just sets
all drop statements to assume the public schema, allowing it to restore
without error.
* Cleaned up text output. eg. Don't output -- Tablespaces comment if
there are none. Same for groups and users.
* Make the commands to DELETE FROM pg_shadow and DELETE FROM pg_group
only be output when -c mode is enabled. I'm not sure why that hasn't
been done before?!?!
This should be good for application asap, after which I will start on
regression dumping 7.0-7.4 databases.
Christopher Kings-Lynne
Tom Lane [Mon, 19 Jul 2004 21:02:17 +0000 (21:02 +0000)]
Fix incorrect tracking of session authorization in the presence of ACLs
that contain rights granted by non-owners. Per bug report from
Nishad Prakash.
Bruce Momjian [Mon, 19 Jul 2004 20:57:30 +0000 (20:57 +0000)]
Done:
> * -Allow configuration files to be specified in a different directory
Bruce Momjian [Mon, 19 Jul 2004 20:30:16 +0000 (20:30 +0000)]
No CVS FAQ, just CVS docs.
Bruce Momjian [Mon, 19 Jul 2004 20:28:43 +0000 (20:28 +0000)]
*** empty log message ***
Tom Lane [Mon, 19 Jul 2004 17:03:56 +0000 (17:03 +0000)]
Install recovery.conf.sample into the /share install directory.
Tom Lane [Mon, 19 Jul 2004 14:34:39 +0000 (14:34 +0000)]
Remove unportable use of strptime() to parse recovery target time spec.
Instead use our own abstimein code, which is more flexible anyway.
Tom Lane [Mon, 19 Jul 2004 02:47:16 +0000 (02:47 +0000)]
XLOG file archiving and point-in-time recovery. There are still some
loose ends and a glaring lack of documentation, but it basically works.
Simon Riggs with some editorialization by Tom Lane.
Peter Eisentraut [Sat, 17 Jul 2004 18:53:56 +0000 (18:53 +0000)]
Rename AC_PROG_LD* macros to PGAC_PROG_LD*. This avoids clashes with the
macros provided by the real libtool, when other packages borrow some macros
from PostgreSQL, as in the case of the ODBC driver.
Tom Lane [Sat, 17 Jul 2004 17:28:29 +0000 (17:28 +0000)]
When renaming a column that participates in a foreign key, we must
force relcache rebuild for the other table as well as the column's
own table. Otherwise, already-cached foreign key triggers will stop
working. Per example from Alexander Pravking.
Tom Lane [Sat, 17 Jul 2004 16:33:31 +0000 (16:33 +0000)]
Fix broken markup, per Jonathan Gardner.
Bruce Momjian [Sat, 17 Jul 2004 10:50:05 +0000 (10:50 +0000)]
Add:
> o Enforce rules for setting combinations
Tom Lane [Sat, 17 Jul 2004 03:32:14 +0000 (03:32 +0000)]
Invent ResourceOwner mechanism as per my recent proposal, and use it to
keep track of portal-related resources separately from transaction-related
resources. This allows cursors to work in a somewhat sane fashion with
nested transactions. For now, cursor behavior is non-subtransactional,
that is a cursor's state does not roll back if you abort a subtransaction
that fetched from the cursor. We might want to change that later.
Bruce Momjian [Fri, 16 Jul 2004 19:18:24 +0000 (19:18 +0000)]
Here is a patch required to build plperl with win32. The issues were:
* perl_useshrplib gets set to "yes" and not to "true". I assume it's set
to "true" on unix, so I left both.
* Need to translate backslashes into slashes
* The linker config coming out of perl was for MSVC and not for mingw
Magnus Hagander
Bruce Momjian [Thu, 15 Jul 2004 18:53:44 +0000 (18:53 +0000)]
Properly order mysql links.
Bruce Momjian [Thu, 15 Jul 2004 15:25:25 +0000 (15:25 +0000)]
Add French FAQ.
LELARGE Guillaume
Bruce Momjian [Thu, 15 Jul 2004 15:23:32 +0000 (15:23 +0000)]
> pg_ctl --help
> ---skiped---
> -P user name of account to register PostgreSQL server
> -U password of account to register PostgreSQL server
> ---skiped---
>
> I think that isn't right ;)
Claudio Natoli
Tom Lane [Thu, 15 Jul 2004 13:51:38 +0000 (13:51 +0000)]
For a SQL function declared to return a named composite type, make
sure the tuple datums it returns actually show that type and not RECORD.
Bruce Momjian [Thu, 15 Jul 2004 03:56:06 +0000 (03:56 +0000)]
Add permission display to \db+.
Peter Eisentraut [Wed, 14 Jul 2004 17:55:10 +0000 (17:55 +0000)]
Detect locale/encoding mismatch in initdb, or pick a suitable encoding
automatically if none was specified.
Bruce Momjian [Tue, 13 Jul 2004 16:48:16 +0000 (16:48 +0000)]
Have \dn+ show permissions and description for schemas.
Dennis Bjorklund
Bruce Momjian [Tue, 13 Jul 2004 03:00:17 +0000 (03:00 +0000)]
Change pg_dump to use ALTER OWNER commands instead of SET SESSION
AUTHORIZATION commands by default. Move all GRANT and REVOKE commands
to the end of the dump to avoid restore failures in several situations.
Bring back --use-set-session-authorization option to get previous SET
behaviour
Christopher Kings-Lyne
Tom Lane [Tue, 13 Jul 2004 02:55:25 +0000 (02:55 +0000)]
Can't have blank lines in resultmap; some versions of expr complain.
Bruce Momjian [Tue, 13 Jul 2004 02:54:08 +0000 (02:54 +0000)]
Add new join file.
Bruce Momjian [Tue, 13 Jul 2004 02:46:21 +0000 (02:46 +0000)]
Move tablespace name up on to the same line in psql \d.
Bruce Momjian [Tue, 13 Jul 2004 02:05:09 +0000 (02:05 +0000)]
Rename join ordering named join_1.out
Tom Lane [Tue, 13 Jul 2004 00:06:46 +0000 (00:06 +0000)]
Cause libpq and ecpg libraries to be built as proper shared libraries
(.dylib format) on Mac OS X, while not messing up loadable modules for
the backend (which are the same kind of animal as a shared library on
every other platform, but not here). Also get the naming convention
to match OS X practice, viz libFOO.version.so not libFOO.so.version.
In support of that last, refactor code in Makefile.shlib to make it
easier to have platform-specific shlib naming conventions.
This patch is loosely based on the Fink project's current postgresql.patch.
Tested by yours truly on OS X 10.3.4; does anyone have 10.2.* to check
it on?
Peter Eisentraut [Mon, 12 Jul 2004 22:12:34 +0000 (22:12 +0000)]
Make installation instructions match reality.
Bruce Momjian [Mon, 12 Jul 2004 20:41:13 +0000 (20:41 +0000)]
Add tablespace location display for psql \d.
Gavin Sherry
Bruce Momjian [Mon, 12 Jul 2004 20:23:59 +0000 (20:23 +0000)]
Add has_tablespace_privilege().
Christopher Kings-Lynne
Bruce Momjian [Mon, 12 Jul 2004 20:11:37 +0000 (20:11 +0000)]
Add Win32-specific join ordering.
Bruce Momjian [Mon, 12 Jul 2004 19:27:31 +0000 (19:27 +0000)]
Add blank line to new canonicalize_path file, which handles "a b\" properly.
Bruce Momjian [Mon, 12 Jul 2004 19:18:18 +0000 (19:18 +0000)]
canonicalization adjustments.
Bruce Momjian [Mon, 12 Jul 2004 19:15:14 +0000 (19:15 +0000)]
Put back canonicalization of PGDATA environment variable.
Bruce Momjian [Mon, 12 Jul 2004 18:17:13 +0000 (18:17 +0000)]
Use strdup in pg_ctl for canonicalize_path on environment variable.
Simplify postmaster call too.
Bruce Momjian [Mon, 12 Jul 2004 14:35:45 +0000 (14:35 +0000)]
This patch adds the following options to pg_dumpall, to be passed to
pg_dump:
-S, --superuser=NAME
-O, --no-owner
-X disable-dollar-quoting, --disable-dollar-quoting
-X disable-triggers, --disable-triggers
Christopher Kings-Lynne
Bruce Momjian [Mon, 12 Jul 2004 14:31:04 +0000 (14:31 +0000)]
The attached patch, which incorporates the previous one sent and
currently unapplied regarding spi_internal.c, makes some additional
fixes relating to return types, and also contains the fix for
preventing the use of insecure versions of Safe.pm.
There is one remaing return case that does not appear to work, namely
return of a composite directly in a select, i.e. if foo returns some
composite type, 'select * from foo()' works but 'select foo()' doesn't.
We will either fix that or document it as a limitation.
The function plperl_func_handler is a mess - I will try to get it
cleaned up (and split up) in a subsequent patch, time permitting.
Also, reiterating previous advice - this changes slightly the API for
spi_exec_query - the returned object has either 2 or 3 members: 'status'
(string) and 'proceesed' (int,- number of rows) and, if rows are
returned, 'rows' (array of tuple hashes).
Andrew Dunstan
Bruce Momjian [Mon, 12 Jul 2004 14:23:28 +0000 (14:23 +0000)]
> win32 doesn't support a static initializer for mutexes, thus the first
> user must initialize the lock. The problem are concurrent "first" users
> - the pthread_mutex_t initialization must be synchronized.
> The current implementation is broken, the attached patches fixes that:
> mutex_initlock is a spinlock. If the pthread_mutex_t mutex is not
> initialized, then the spinlock is acquired, if the pthread_mutex_t is
> initialized if it's not yet initialized and then the spinlock is dropped.
Manfred Spraul
Bruce Momjian [Mon, 12 Jul 2004 14:16:28 +0000 (14:16 +0000)]
Back out thread fix until I get clarification.
Bruce Momjian [Mon, 12 Jul 2004 14:11:17 +0000 (14:11 +0000)]
win32 doesn't support a static initializer for mutexes, thus the first
user must initialize the lock. The problem are concurrent "first" users
- the pthread_mutex_t initialization must be synchronized.
The current implementation is broken, the attached patches fixes that:
mutex_initlock is a spinlock. If the pthread_mutex_t mutex is not
initialized, then the spinlock is acquired, if the pthread_mutex_t is
initialized if it's not yet initialized and then the spinlock is
dropped.
Manfred Spraul
Tom Lane [Mon, 12 Jul 2004 05:38:11 +0000 (05:38 +0000)]
Remove TABLESPACE option of CREATE SEQUENCE; sequences will now always
live in database or schema's default tablespace, as per today's discussion.
Also, remove some unused keywords from the grammar (PATH, PENDANT,
VERSION), and fix ALSO, which was added as a keyword but not added
to the keyword classification lists, thus making it worse-than-reserved.
Bruce Momjian [Mon, 12 Jul 2004 03:58:34 +0000 (03:58 +0000)]
New text.
Bruce Momjian [Mon, 12 Jul 2004 02:22:51 +0000 (02:22 +0000)]
Fix library_path with canonicalization.
Bruce Momjian [Mon, 12 Jul 2004 01:54:10 +0000 (01:54 +0000)]
Fix username mismatch in initdb. Magnus.
Bruce Momjian [Mon, 12 Jul 2004 01:37:01 +0000 (01:37 +0000)]
Wording improvement.
Bruce Momjian [Mon, 12 Jul 2004 01:22:53 +0000 (01:22 +0000)]
Tablespace examples for CREATE TABLE/INDEX/SCHEMA/DATABASE as well as
some other examples for CREATE DATABASE.
Gavin Sherry
Bruce Momjian [Mon, 12 Jul 2004 01:10:17 +0000 (01:10 +0000)]
Move comma.
Bruce Momjian [Mon, 12 Jul 2004 01:00:45 +0000 (01:00 +0000)]
The outer #define was forgotten. Attached patch adds it; please apply.
Alvaro
Bruce Momjian [Mon, 12 Jul 2004 00:39:11 +0000 (00:39 +0000)]
Add:
> * Add session start time and last statement time to pg_stat_activity
Bruce Momjian [Mon, 12 Jul 2004 00:23:59 +0000 (00:23 +0000)]
Added Matthew:
< rather than in /contrib
> rather than in /contrib (Matthew)
515a516
> * Matthew T. O'Connor <matthew@zeut.net>
Bruce Momjian [Mon, 12 Jul 2004 00:22:51 +0000 (00:22 +0000)]
New Czech FAQ.
Pavel Stehule
Bruce Momjian [Mon, 12 Jul 2004 00:18:57 +0000 (00:18 +0000)]
Add FAQ entry on hardware selection.