summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-05-02Mention that max_standby_delay has units of milliseconds. Units are mentionedSimon Riggs
for all other parameters where the default is expressed in a different unit.
2010-05-02Clean up some awkward, inaccurate, and inefficient processing aroundTom Lane
MaxStandbyDelay. Use the GUC units mechanism for the value, and choose more appropriate timestamp functions for performing tests with it. Make the ps_activity manipulation in ResolveRecoveryConflictWithVirtualXIDs have behavior similar to ps_activity code elsewhere, notably not updating the display when update_process_title is off and not truncating the display contents at an arbitrarily-chosen length. Improve the docs to be explicit about what MaxStandbyDelay actually measures, viz the difference between primary and standby servers' clocks, and the possible hazards if their clocks aren't in sync.
2010-05-01Add code to InternalIpcMemoryCreate() to handle the case where shmget()Tom Lane
returns EINVAL for an existing shared memory segment. Although it's not terribly sensible, that behavior does meet the POSIX spec because EINVAL is the appropriate error code when the existing segment is smaller than the requested size, and the spec explicitly disclaims any particular ordering of error checks. Moreover, it does in fact happen on OS X and probably other BSD-derived kernels. (We were able to talk NetBSD into changing their code, but purging that behavior from the wild completely seems unlikely to happen.) We need to distinguish collision with a pre-existing segment from invalid size request in order to behave sensibly, so it's worth some extra code here to get it right. Per report from Gavin Kistner and subsequent investigation. Back-patch to all supported versions, since any of them could get used with a kernel having the debatable behavior.
2010-05-01Install hack workaround for failure of 'make all' in VPATH builds.Tom Lane
It appears that gmake gets confused if postgres.sgml is not present in the working directory, and instantiates some default rule or other that would let postgres.sgml be built from postgres.xml. I haven't been able to track down exactly where that's coming from, but the problem can be dodged by specifying srcdir explicitly in the rule for postgres.xml. Per report from Vladimir Kokovic.
2010-05-01Adjust postgres.xml rule so that make will notice a failure exit from osx.Tom Lane
The previous coding had it in a pipe, which on most shells won't report the error. Per experimentation with a bug report from Vladimir Kokovic. This doesn't actually fix his problem, but it does explain why make didn't report that there was a problem.
2010-05-01Fix leakage of proc-related storage in plpython's inline handler.Tom Lane
Per report from Andres Freund.
2010-04-30Update our information about OS X shared memory configuration: it's nowTom Lane
possible to set most of the SHM kernel parameters without a reboot. Also, reorder the paragraph to explain the modern configuration method first. There are probably not too many people who still care about how to do it on OS X 10.3 or older.
2010-04-30Improve COPY documentation to clarify that it doesn't copy data to or fromTom Lane
child tables. Per gripe from Jaime Casanova.
2010-04-30Fix multiple memory leaks in PLy_spi_execute_fetch_result: it would leakTom Lane
memory if the result had zero rows, and also if there was any sort of error while converting the result tuples into Python data. Reported and partially fixed by Andres Freund. Back-patch to all supported versions. Note: I haven't tested the 7.4 fix. 7.4's configure check for python is so obsolete it doesn't work on my current machines :-(. The logic change is pretty straightforward though.
2010-04-30Fix a couple of places where the result of fgets() wasn't checked.Tom Lane
This is mostly to suppress compiler warnings, although in principle the cases could result in undesirable behavior. Martin Pitt
2010-04-30Fix handling of b-tree reuse WAL records when hot standby is disabled,Heikki Linnakangas
and add missing code in btree_desc for them. This fixes the bug with "tree_redo: unknown op code 208" error reported by Jaime Casanova.
2010-04-30tag for 9.0beta1REL9_0_BETA1Marc G. Fournier
2010-04-29Documentation fix: CREATE TRIGGER 'WHERE' -> 'WHEN'Bruce Momjian
Selena Deckelmann
2010-04-29Adjust error checks in pg_start_backup and pg_stop_backup to make it possibleTom Lane
to perform a backup without archive_mode being enabled. This gives up some user-error protection in order to improve usefulness for streaming-replication scenarios. Per discussion.
2010-04-29Rename the parameter recovery_connections to hot_standby, to reduce possibleTom Lane
confusion with streaming-replication settings. Also, change its default value to "off", because of concern about executing new and poorly-tested code during ordinary non-replicating operation. Per discussion. In passing do some minor editing of related documentation.
2010-04-29Doc fix -- last major item should not be a bullet.Bruce Momjian
2010-04-29Move alpha release notes into a separate file; re-align sgml tags.Bruce Momjian
2010-04-29Update 9.0 release notes to current; add major items and introductoryBruce Momjian
text.
2010-04-29Install a workaround for 'TeX capacity exceeded' problemTom Lane
when building PDF output for recent versions of the documentation. There is probably a better answer out there somewhere, but we need something now so we can build beta releases.
2010-04-28Fix typo, per Thom Brown.Tom Lane
2010-04-28Modify information_schema._pg_keysequal() to avoid search path risk whenTom Lane
contrib/intarray is loaded. Per bug #5417 from Kenaniah Cerny. Not forcing initdb since backend doesn't directly depend on this, and few people have run into it.
2010-04-28Minor editorializing on pg_controldata and pg_resetxlog: adjust some messageTom Lane
wording, deal explicitly with some fields that were being silently left zero.
2010-04-28pg_controldata needs #define FRONTEND, same as pg_resetxlog.Tom Lane
Per buildfarm results from dawn_bat.
2010-04-28Modify ShmemInitStruct and ShmemInitHash to throw errors internally,Tom Lane
rather than returning NULL for some-but-not-all failures as they used to. Remove now-redundant tests for NULL from call sites. We had to do something about this because many call sites were failing to check for NULL; and changing it like this seems a lot more useful and mistake-proof than adding checks to the call sites without them.
2010-04-28Make pg_stats example query result a bit less wide, and add comment aboutAlvaro Herrera
pg_stats.inherited
2010-04-28Introduce wal_level GUC to explicitly control if information needed forHeikki Linnakangas
archival or hot standby should be WAL-logged, instead of deducing that from other options like archive_mode. This replaces recovery_connections GUC in the primary, where it now has no effect, but it's still used in the standby to enable/disable hot standby. Remove the WAL-logging of "unlogged operations", like creating an index without WAL-logging and fsyncing it at the end. Instead, we keep a copy of the wal_mode setting and the settings that affect how much shared memory a hot standby server needs to track master transactions (max_connections, max_prepared_xacts, max_locks_per_xact) in pg_control. Whenever the settings change, at server restart, write a WAL record noting the new settings and update pg_control. This allows us to notice the change in those settings in the standby at the right moment, they used to be included in checkpoint records, but that meant that a changed value was not reflected in the standby until the first checkpoint after the change. Bump PG_CONTROL_VERSION and XLOG_PAGE_MAGIC. Whack XLOG_PAGE_MAGIC back to the sequence it used to follow, before hot standby and subsequent patches changed it to 0x9003.
2010-04-28Fix contrib/tsearch2 expected results to match recent changes in URL parsing.Tom Lane
2010-04-28Fix typo that had the code check the same thing twice.Magnus Hagander
Fujii Masao
2010-04-28Add recovery.conf parameters to the documentation index, per suggestionHeikki Linnakangas
by Fujii Masao.
2010-04-28Modify the built-in text search parser to handle URLs more nearly accordingTom Lane
to RFC 3986. In particular, these characters now terminate the path part of a URL: '"', '<', '>', '\', '^', '`', '{', '|', '}'. The previous behavior was inconsistent and depended on whether a "?" was present in the path. Per gripe from Donald Fraser and spec research by Kevin Grittner. This is a pre-existing bug, but not back-patching since the risks of breaking existing applications seem to outweigh the benefits.
2010-04-28Fix stupid typo in refnameRangeTblEntry() --- mea maxima culpa.Tom Lane
Per report from Josh.
2010-04-28Add CP949 as an alias for UHC encoding. pg_get_encoding_from_locale()Itagaki Takahiro
with kor locale on Windows can use the path. Reported by Hiroshi Inoue.
2010-04-28Replace the KnownAssignedXids hash table with a sorted-array data structure,Tom Lane
and be more tense about the locking requirements for it, to improve performance in Hot Standby mode. In passing fix a few bugs and improve a number of comments in the existing HS code. Simon Riggs, with some editorialization by Tom
2010-04-27Reformat code examples in plpgsql docs for better readability in PDF outputAlvaro Herrera
Erik Rijkers
2010-04-27If a base backup is cancelled by server shutdown or crash, throw an errorHeikki Linnakangas
in WAL recovery when it sees the shutdown checkpoint record. It's more user-friendly to find out about it at that point than at the end of recovery, and you're not left wondering why your hot standby server never opens up for read-only connections.
2010-04-26Update documentation to match pg_stat_activity changes.Tom Lane
2010-04-26Document that pgpool can be used with master/slave servers to avoidBruce Momjian
problems with non-deterministic functions.
2010-04-26Add missing newlines in WPARSER_TRACE output.Tom Lane
2010-04-26Reorder pg_stat_activity columns to be more consistent, using layoutBruce Momjian
suggested by Tom Lane. Catalog version bumped due to system view change.
2010-04-26Add comments about why we set LC_CTYPE in WIN32 for time when we don'tBruce Momjian
actually access it, per information from Hiroshi.
2010-04-26When we're restricting who can connect, don't allow new walsenders.Robert Haas
Normal superuser processes are allowed to connect even when the database system is shutting down, or when fewer than superuser_reserved_connection slots remain. This is intended to make sure an administrator can log in and troubleshoot, so don't extend these same courtesies to users connecting for replication.
2010-04-24Add C comments for recent to_char('L') fix for Win32.Bruce Momjian
2010-04-24Patch revoked because of objections.Simon Riggs
2010-04-23Fix various instances of "the the".Robert Haas
Two of these were pointed out by Erik Rijkers; the rest I found.
2010-04-23Add missing optimizer hooks for function cost and number of rows.Simon Riggs
Closely follow design of other optimizer hooks: if hook exists retrieve value from plugin; if still not set then get from cache.
2010-04-23Previous patch revoked following objections.Simon Riggs
2010-04-23Make CheckRequiredParameterValues() depend upon correct combinationSimon Riggs
of parameters. Fix bug report by Robert Haas that error message and hint was incorrect if wrong mode parameters specified on master. Internal changes only. Proposals for parameter simplification on master/primary still under way.
2010-04-22Fix message punctuationPeter Eisentraut
2010-04-22Optimise btree delete processing when no active backends.Simon Riggs
Clarify comments, downgrade a message to DEBUG and remove some debug counters. Direct from ideas by Heikki Linnakangas.
2010-04-22Further reductions in Hot Standby conflict processing. TheseSimon Riggs
come from the realistion that HEAP2_CLEAN records don't always remove user visible data, so conflict processing for them can be skipped. Confirm validity using Assert checks, clarify circumstances under which we log heap_cleanup_info records. Tuning arises from bug fixing of earlier safety check failures.