summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-05-12Add pg_upgrade to /contrib; will be in 9.0 beta2.Bruce Momjian
Add documentation. Supports migration from PG 8.3 and 8.4.
2010-05-11Update time zone data files to tzdata release 2010j: DST law changes inTom Lane
Argentina, Australian Antarctic, Bangladesh, Mexico, Morocco, Pakistan, Palestine, Russia, Syria, Tunisia. Historical corrections for Taiwan.
2010-05-11Add PKST to the default set of timezone abbreviations.Tom Lane
Per discussion, if we have PKT in there then PKST should be too. Also, fix mistaken claim that these abbrevs are not known to zic.
2010-05-11Change typedef for rb_appendator to avoid conflict with C++ reserved words.Robert Haas
Fixes a complaint from src/tools/pginclude/cpluspluscheck reported by Peter Eisentraut.
2010-05-11Cause the archiver process to adopt new postgresql.conf settings (particularlyTom Lane
archive_command) as soon as possible, namely just before issuing a new call of archive_command, even when there is a backlog of files to be archived. The original coding would only absorb new settings after clearing the backlog and returning to the outer loop. Per discussion. Back-patch to 8.3. The logic in prior versions is a bit different and it doesn't seem worth taking any risks of breaking it.
2010-05-11Mention related ALTER TABLE variants in documentation for CLUSTER.Robert Haas
As suggested by Andy Lester.
2010-05-11Fix incorrect patch that removed permission checks on inheritance childTom Lane
tables --- the parent table no longer got checked, either. Per bug #5458 from Takahiro Itagaki.
2010-05-11Set per-function GUC settings during validating the function.Itagaki Takahiro
Now validators work properly even when the settings contain parameters that affect behavior of the function, like search_path. Reported by Erwin Brandstetter.
2010-05-10When adding a "target IS NOT NULL" indexqual to the plan for an index-optimizedTom Lane
MIN or MAX, we must take care to insert the added qual in a legal place among the existing indexquals, if any. The btree index AM requires the quals to appear in index-column order. We didn't have to worry about this before because "target IS NOT NULL" was just treated as a plain scan filter condition; but as of 9.0 it can be an index qual and then it has to follow the rule. Per report from Ian Barwick.
2010-05-09Suppress signed-vs-unsigned-char warning.Tom Lane
2010-05-09Fix missing static declaration for XLogRead().Tom Lane
2010-05-09Fix typo: PGTYPES_NUM_OVERFLOW should be PGTYPES_NUM_UNDERFLOW.Tom Lane
Noted by KOIZUMI Satoru.
2010-05-09Adjust comments about avoiding use of printf's %.*s.Tom Lane
My initial impression that glibc was measuring the precision in characters (which is what the Linux man page says it does) was incorrect. It does take the precision to be in bytes, but it also tries to truncate the string at a character boundary. The bottom line remains the same: it will mess up if the string is not in the encoding it expects, so we need to avoid %.*s anytime there's a significant risk of that. Previous code changes are still good, but adjust the comments to reflect this knowledge. Per research by Hernan Gonzalez.
2010-05-08Work around a subtle portability problem in use of printf %s format.Tom Lane
Depending on which spec you read, field widths and precisions in %s may be counted either in bytes or characters. Our code was assuming bytes, which is wrong at least for glibc's implementation, and in any case libc might have a different idea of the prevailing encoding than we do. Hence, for portable results we must avoid using anything more complex than just "%s" unless the string to be printed is known to be all-ASCII. This patch fixes the cases I could find, including the psql formatting failure reported by Hernan Gonzalez. In HEAD only, I also added comments to some places where it appears safe to continue using "%.*s".
2010-05-07ECPG connect routine only checked for NULL to find empty parameters, but ↵Michael Meskes
user and password can also be "".
2010-05-06On Linux, use --enable-new-dtags when specifying -rpath to linker.Tom Lane
This should allow LD_LIBRARY_PATH to work as desired. Per trouble report from Andy Colson.
2010-05-06Code page for EUC-KR is surely 51949.Itagaki Takahiro
2010-05-05Fix psql to not go into infinite recursion when expanding a variable thatTom Lane
refers to itself (directly or indirectly). Instead, print a message when recursion is detected, and don't expand the repeated reference. Per bug #5448 from Francis Markham. Back-patch to 8.0. Although the issue exists in 7.4 as well, it seems impractical to fix there because of the lack of any state stack that could be used to track active expansions.
2010-05-05Fix incorrect parameter tag in docs, spotted by KOIZUMI Satoru.Heikki Linnakangas
2010-05-03Remove spurious dot, per bug #5446 reported by koizumistr@minos.ocn.ne.jpAlvaro Herrera
2010-05-03Need to hold ControlFileLock while updating control file. UpdateHeikki Linnakangas
minRecoveryPoint in control file when replaying a parameter change record, to ensure that we don't allow hot standby on WAL generated without wal_level='hot_standby' after a standby restart.
2010-05-03Change wording so that you don't need to understand that wal_levelsHeikki Linnakangas
form a hierarchy. Per Simon's suggestion.
2010-05-03Change "literal" tag to the more appropriate "firstterm", when describingHeikki Linnakangas
what "eventually consistent" means.
2010-05-03Add cross-reference from wal_level to hot_standby setting. UpdateHeikki Linnakangas
the PITR documentation to mention that you need to set wal_level to 'archive' or 'hot_standby', to enable WAL archiving. Per Simon's request.
2010-05-02Improve printing of XLOG_HEAP_NEWPAGE records to include the forknum.Tom Lane
2010-05-02Fix replay of XLOG_HEAP_NEWPAGE WAL records to pay attention to the forknumTom Lane
field of the WAL record. The previous coding always wrote to the main fork, resulting in data corruption if the page was meant to go into a non-default fork. At present, the only operation that can produce such WAL records is ALTER TABLE/INDEX SET TABLESPACE when executed with archive_mode = on. Data corruption would be observed on standby slaves, and could occur on the master as well if a database crash and recovery occurred after committing the ALTER and before the next checkpoint. Per report from Gordon Shannon. Back-patch to 8.4; the problem doesn't exist in earlier branches because we didn't have a concept of multiple relation forks then.
2010-05-02Update standbycheck test output with new ERROR message changes. No changesSimon Riggs
to tests and no changes in accepted server behaviour.
2010-05-02Docs for standbycheck regression tests.Simon Riggs
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.