Commits in 2010
Commits132 commits
0Author
132Committer
0Reviewer
0Reported by
0Co-author
| Credit | Commit | Branches | Thread(s) | Committed |
|---|---|---|---|---|
| Committer | Rewrite the GiST insertion logic so that we don't need the post-recovery cleanup stage to finish incomplete inserts or splits anymore. There was two reasons for the cleanup step: | master9.1alpha3REL_19_STABLE9.1alpha3REL_18_STABLE9.1alpha3REL_17_STABLE9.1alpha3REL_16_STABLE9.1alpha3REL_15_STABLE9.1alpha3REL_14_STABLE9.1alpha3REL_13_STABLE9.1alpha3+9 more | Dec 23, 2010 | |
| CommitterBackported | Fix bugs in the hot standby known-assigned-xids tracking logic. If there's an old transaction running in the master, and a lot of transactions have started and finished since, and a WAL-record is written in the gap between the creating the running-xacts snapshot and WAL-logging it, recovery will fail with "too many KnownAssignedXids" error. This bug was reported by Joachim Wieland on Nov 19th. | master9.1alpha3REL_19_STABLE9.1alpha3REL_18_STABLE9.1alpha3REL_17_STABLE9.1alpha3REL_16_STABLE9.1alpha3REL_15_STABLE9.1alpha3REL_14_STABLE9.1alpha3REL_13_STABLE9.1alpha3+10 more | Dec 07, 2010 | |
| CommitterBackported | Fix two typos, by Fujii Masao. | master9.1alpha3REL_19_STABLE9.1alpha3REL_18_STABLE9.1alpha3REL_17_STABLE9.1alpha3REL_16_STABLE9.1alpha3REL_15_STABLE9.1alpha3REL_14_STABLE9.1alpha3REL_13_STABLE9.1alpha3+10 more | Dec 06, 2010 | |
| Committer | Remove misleading comments. Move _Clone and _DeClone functions before the "END OF FORMAT CALLBACKS" comment, because they are format callbacks too. | master9.1alpha3REL_19_STABLE9.1alpha3REL_18_STABLE9.1alpha3REL_17_STABLE9.1alpha3REL_16_STABLE9.1alpha3REL_15_STABLE9.1alpha3REL_14_STABLE9.1alpha3REL_13_STABLE9.1alpha3+9 more | Dec 03, 2010 | |
| Committer | Refactor the pg_dump zlib code from pg_backup_custom.c to a separate file, to make it easier to reuse that code. There is no user-visible changes. | master9.1alpha3REL_19_STABLE9.1alpha3REL_18_STABLE9.1alpha3REL_17_STABLE9.1alpha3REL_16_STABLE9.1alpha3REL_15_STABLE9.1alpha3REL_14_STABLE9.1alpha3REL_13_STABLE9.1alpha3+9 more | Dec 02, 2010 | |
| Committer | Be consistent about writing "[, ...]" instead "[,...]" in the docs. | master9.1alpha3REL_19_STABLE9.1alpha3REL_18_STABLE9.1alpha3REL_17_STABLE9.1alpha3REL_16_STABLE9.1alpha3REL_15_STABLE9.1alpha3REL_14_STABLE9.1alpha3REL_13_STABLE9.1alpha3+9 more | Nov 29, 2010 | |
| Committer | Remove unused parameter. Patch by Shigeru Hanada. | master9.1alpha3REL_19_STABLE9.1alpha3REL_18_STABLE9.1alpha3REL_17_STABLE9.1alpha3REL_16_STABLE9.1alpha3REL_15_STABLE9.1alpha3REL_14_STABLE9.1alpha3REL_13_STABLE9.1alpha3+9 more | Nov 18, 2010 | |
| CommitterBackported | The GiST scan algorithm uses LSNs to detect concurrent pages splits, but temporary indexes are not WAL-logged. We used a constant LSN for temporary indexes, on the assumption that we don't need to worry about concurrent page splits in temporary indexes because they're only visible to the current session. But that assumption is wrong, it's possible to insert rows and split pages in the same session, while a scan is in progress. For example, by opening a cursor and fetching some rows, and INSERTing new rows before fetching some more. | master9.1alpha3REL_19_STABLE9.1alpha3REL_18_STABLE9.1alpha3REL_17_STABLE9.1alpha3REL_16_STABLE9.1alpha3REL_15_STABLE9.1alpha3REL_14_STABLE9.1alpha3REL_13_STABLE9.1alpha3+14 more | Nov 16, 2010 | |
| CommitterBackported | Add missing support for removing foreign data wrapper / server privileges belonging to a user at DROP OWNED BY. Foreign data wrappers and servers don't do anything useful yet, which is why no-one has noticed, but since we have them, seems prudent to fix this. Per report from Chetan Suttraway. Backpatch to 9.0, 8.4 has the same problem but this patch didn't apply there so I'm not going to bother. | master9.1alpha3REL_19_STABLE9.1alpha3REL_18_STABLE9.1alpha3REL_17_STABLE9.1alpha3REL_16_STABLE9.1alpha3REL_15_STABLE9.1alpha3REL_14_STABLE9.1alpha3REL_13_STABLE9.1alpha3+10 more | Nov 12, 2010 | |
| CommitterBackported | Fix bug introduced by the recent patch to check that the checkpoint redo location read from backup label file can be found: wasShutdown was set incorrectly when a backup label file was found. | master9.1alpha3REL_19_STABLE9.1alpha3REL_18_STABLE9.1alpha3REL_17_STABLE9.1alpha3REL_16_STABLE9.1alpha3REL_15_STABLE9.1alpha3REL_14_STABLE9.1alpha3REL_13_STABLE9.1alpha3+14 more | Nov 11, 2010 | |
| CommitterBackported | In rewriteheap.c (used by VACUUM FULL and CLUSTER), calculate the tuple length stored in the line pointer the same way it's calculated in the normal heap_insert() codepath. As noted by Jeff Davis, the length stored by raw_heap_insert() included padding but the one stored by the normal codepath did not. While the mismatch seems to be harmless, inconsistency isn't good, and the normal codepath has received a lot more testing over the years. | master9.1alpha3REL_19_STABLE9.1alpha3REL_18_STABLE9.1alpha3REL_17_STABLE9.1alpha3REL_16_STABLE9.1alpha3REL_15_STABLE9.1alpha3REL_14_STABLE9.1alpha3REL_13_STABLE9.1alpha3+12 more | Nov 09, 2010 | |
| CommitterBackported | Bootstrap WAL to begin at segment logid=0 logseg=1 (000000010000000000000001) rather than 0/0, so that we can safely use 0/0 as an invalid value. This is a more future-proof fix for the corner-case bug in streaming replication that was fixed yesterday. We had a similar corner-case bug with log/seg 0/0 back in February as well. Avoiding 0/0 as a valid value should prevent bugs like that in the future. Per Tom Lane's idea. | master9.1alpha3REL_19_STABLE9.1alpha3REL_18_STABLE9.1alpha3REL_17_STABLE9.1alpha3REL_16_STABLE9.1alpha3REL_15_STABLE9.1alpha3REL_14_STABLE9.1alpha3REL_13_STABLE9.1alpha3+10 more | Nov 02, 2010 | |
| CommitterBackported | Fix corner-case bug in tracking of latest removed WAL segment during streaming replication. We used log/seg 0/0 to indicate that no WAL segments have been removed since startup, but 0/0 is a valid value for the very first WAL segment after initdb. To make that disambiguous, store (latest removed WAL segment + 1) in the global variable. | master9.1alpha3REL_19_STABLE9.1alpha3REL_18_STABLE9.1alpha3REL_17_STABLE9.1alpha3REL_16_STABLE9.1alpha3REL_15_STABLE9.1alpha3REL_14_STABLE9.1alpha3REL_13_STABLE9.1alpha3+10 more | Nov 01, 2010 | |
| Committer | Give a more specific error message if you try to COMMIT, ROLLBACK or COPY FROM STDIN in PL/pgSQL. We alread did this for dynamic EXECUTE statements, ie. "EXECUTE 'COMMIT'", but not otherwise. | master9.1alpha2REL_19_STABLE9.1alpha2REL_18_STABLE9.1alpha2REL_17_STABLE9.1alpha2REL_16_STABLE9.1alpha2REL_15_STABLE9.1alpha2REL_14_STABLE9.1alpha2REL_13_STABLE9.1alpha2+9 more | Oct 29, 2010 | |
| CommitterBackported | Fix long-standing segfault when accept() or one of the calls made right after accepting a connection fails, and the server is compiled with GSSAPI support. Report and patch by Alexander V. Chernikov, bug #5731. | master9.1alpha2REL_19_STABLE9.1alpha2REL_18_STABLE9.1alpha2REL_17_STABLE9.1alpha2REL_16_STABLE9.1alpha2REL_15_STABLE9.1alpha2REL_14_STABLE9.1alpha2REL_13_STABLE9.1alpha2+12 more | Oct 27, 2010 | |
| CommitterBackported | Note explicitly that hash indexes are also not replicated because they're not WAL-logged. Make the notice about the lack of WAL-logging more visible by making it a <caution>. Also remove the false statement from hot standby caveats section that hash indexes are not used during hot standby. | master9.1alpha2REL_19_STABLE9.1alpha2REL_18_STABLE9.1alpha2REL_17_STABLE9.1alpha2REL_16_STABLE9.1alpha2REL_15_STABLE9.1alpha2REL_14_STABLE9.1alpha2REL_13_STABLE9.1alpha2+10 more | Oct 26, 2010 | |
| CommitterBackported | Before removing backup_label and irrevocably changing pg_control file, check that WAL file containing the checkpoint redo-location can be found. This avoids making the cluster irrecoverable if the redo location is in an earlie WAL file than the checkpoint record. | master9.1alpha2REL_19_STABLE9.1alpha2REL_18_STABLE9.1alpha2REL_17_STABLE9.1alpha2REL_16_STABLE9.1alpha2REL_15_STABLE9.1alpha2REL_14_STABLE9.1alpha2REL_13_STABLE9.1alpha2+14 more | Oct 26, 2010 | |
| CommitterBackported | Add semicolon, missed in previous patch. And update the keyword list in the docs to reflect that OFF is now unreserved. Spotted by Tom Lane. | master9.1alpha2REL_19_STABLE9.1alpha2REL_18_STABLE9.1alpha2REL_17_STABLE9.1alpha2REL_16_STABLE9.1alpha2REL_15_STABLE9.1alpha2REL_14_STABLE9.1alpha2REL_13_STABLE9.1alpha2+10 more | Oct 22, 2010 | |
| CommitterBackported | Make OFF keyword unreserved. It's not hard to imagine wanting to use 'off' as a variable or column name, and it's not reserved in recent versions of the SQL spec either. This became particularly annoying in 9.0, before that PL/pgSQL replaced variable names in queries with parameter markers, so it was possible to use OFF and many other backend parser keywords as variable names. Because of that, backpatch to 9.0. | master9.1alpha2REL_19_STABLE9.1alpha2REL_18_STABLE9.1alpha2REL_17_STABLE9.1alpha2REL_16_STABLE9.1alpha2REL_15_STABLE9.1alpha2REL_14_STABLE9.1alpha2REL_13_STABLE9.1alpha2+10 more | Oct 22, 2010 | |
| CommitterBackported | If pk is NULL, the backend would segfault when accessing ->algo and the following NULL check was never reached. | master9.1alpha2REL_19_STABLE9.1alpha2REL_18_STABLE9.1alpha2REL_17_STABLE9.1alpha2REL_16_STABLE9.1alpha2REL_15_STABLE9.1alpha2REL_14_STABLE9.1alpha2REL_13_STABLE9.1alpha2+14 more | Oct 20, 2010 | |
| CommitterBackported | Initialize tableoid field correctly when dumping foreign data wrappers and servers. AFAICT it's harmless at the moment because nothing can depend on either, but as soon as we introduce an object type with such dependencies, tableoid needs to be set or pg_dump will fail to interpret the dependencies correctly. In theory, I guess the uninitialized garbage in tableoid could cause the object to be mistaken for some other object with same OID as well. | master9.1alpha2REL_19_STABLE9.1alpha2REL_18_STABLE9.1alpha2REL_17_STABLE9.1alpha2REL_16_STABLE9.1alpha2REL_15_STABLE9.1alpha2REL_14_STABLE9.1alpha2REL_13_STABLE9.1alpha2+11 more | Sep 23, 2010 | |
| Committer | Fix two typos in comments, spotted by Fujii Masao and Thom Brown | master9.1alpha2REL_19_STABLE9.1alpha2REL_18_STABLE9.1alpha2REL_17_STABLE9.1alpha2REL_16_STABLE9.1alpha2REL_15_STABLE9.1alpha2REL_14_STABLE9.1alpha2REL_13_STABLE9.1alpha2+9 more | Sep 15, 2010 | |
| Committer | Use a latch to make startup process wake up and replay immediately when new WAL arrives via streaming replication. This reduces the latency, and also allows us to use a longer polling interval, which is good for energy efficiency. | master9.1alpha2REL_19_STABLE9.1alpha2REL_18_STABLE9.1alpha2REL_17_STABLE9.1alpha2REL_16_STABLE9.1alpha2REL_15_STABLE9.1alpha2REL_14_STABLE9.1alpha2REL_13_STABLE9.1alpha2+9 more | Sep 15, 2010 | |
| Committer | Simplify Windows implementation of latches. There's no need to keep a dynamic pool of event handles, we can permanently assign one for each shared latch. Thanks to that, we no longer need a separate shared memory block for latches, and we don't need to know in advance how many shared latches there is, so you no longer need to remember to update NumSharedLatches when you introduce a new latch to the system. | master9.1alpha2REL_19_STABLE9.1alpha2REL_18_STABLE9.1alpha2REL_17_STABLE9.1alpha2REL_16_STABLE9.1alpha2REL_15_STABLE9.1alpha2REL_14_STABLE9.1alpha2REL_13_STABLE9.1alpha2+9 more | Sep 15, 2010 | |
| Committer | Don't call OwnLatch while holding a spinlock. OwnLatch can elog() under some "can't happen" scenarios, and spinlocks should only be held for a few instructions anyway. As pointed out by Fujii Masao. | master9.1alpha2REL_19_STABLE9.1alpha2REL_18_STABLE9.1alpha2REL_17_STABLE9.1alpha2REL_16_STABLE9.1alpha2REL_15_STABLE9.1alpha2REL_14_STABLE9.1alpha2REL_13_STABLE9.1alpha2+9 more | Sep 15, 2010 | |
| Committer | Oops, the timeout argument to WaitLatchOrSocket is in microseconds, not milliseconds. | master9.1alpha2REL_19_STABLE9.1alpha2REL_18_STABLE9.1alpha2REL_17_STABLE9.1alpha2REL_16_STABLE9.1alpha2REL_15_STABLE9.1alpha2REL_14_STABLE9.1alpha2REL_13_STABLE9.1alpha2+9 more | Sep 14, 2010 | |
| CommitterBackported | Don't warn about an in-progress online backup, when we're recovering from an online backup instead of performing one. pg_ctl can detect that by checking if recovery.conf exists. | master9.1alpha2REL_19_STABLE9.1alpha2REL_18_STABLE9.1alpha2REL_17_STABLE9.1alpha2REL_16_STABLE9.1alpha2REL_15_STABLE9.1alpha2REL_14_STABLE9.1alpha2REL_13_STABLE9.1alpha2+10 more | Sep 14, 2010 | |
| Committer | Add a comment noting that the owner_pid test in OwnLatch is just a sanity check, per request by Jeff Davis. | master9.1alpha2REL_19_STABLE9.1alpha2REL_18_STABLE9.1alpha2REL_17_STABLE9.1alpha2REL_16_STABLE9.1alpha2REL_15_STABLE9.1alpha2REL_14_STABLE9.1alpha2REL_13_STABLE9.1alpha2+9 more | Sep 13, 2010 | |
| CommitterBackported | Remove prototype for non-existent function from walreceiver.h. Tidy up by separating prototypes for functions in walreceiver.c and walreceiverfuncs.c with comments. | master9.1alpha2REL_19_STABLE9.1alpha2REL_18_STABLE9.1alpha2REL_17_STABLE9.1alpha2REL_16_STABLE9.1alpha2REL_15_STABLE9.1alpha2REL_14_STABLE9.1alpha2REL_13_STABLE9.1alpha2+10 more | Sep 13, 2010 | |
| CommitterBackported | Process options from the startup packed in walsender. Only few options make sense for walsender, but for example application_name and client_encoding do. We still don't apply per-role settings from pg_db_role_setting, because that would require connecting to a database to read the table. | master9.1alpha2REL_19_STABLE9.1alpha2REL_18_STABLE9.1alpha2REL_17_STABLE9.1alpha2REL_16_STABLE9.1alpha2REL_15_STABLE9.1alpha2REL_14_STABLE9.1alpha2REL_13_STABLE9.1alpha2+10 more | Sep 13, 2010 | |
| Committer | Add missing #includes, needed on some platforms. This should make the unixware buildfarm animals happy again. | master9.1alpha2REL_19_STABLE9.1alpha2REL_18_STABLE9.1alpha2REL_17_STABLE9.1alpha2REL_16_STABLE9.1alpha2REL_15_STABLE9.1alpha2REL_14_STABLE9.1alpha2REL_13_STABLE9.1alpha2+9 more | Sep 11, 2010 | |
| Committer | Introduce latches. A latch is a boolean variable, with the capability to wait until it is set. Latches can be used to reliably wait until a signal arrives, which is hard otherwise because signals don't interrupt select() on some platforms, and even when they do, there's race conditions. | master9.1alpha2REL_19_STABLE9.1alpha2REL_18_STABLE9.1alpha2REL_17_STABLE9.1alpha2REL_16_STABLE9.1alpha2REL_15_STABLE9.1alpha2REL_14_STABLE9.1alpha2REL_13_STABLE9.1alpha2+9 more | Sep 11, 2010 | |
| CommitterBackported | Fix typo in comment. | master9.1alpha1REL_19_STABLE9.1alpha1REL_18_STABLE9.1alpha1REL_17_STABLE9.1alpha1REL_16_STABLE9.1alpha1REL_15_STABLE9.1alpha1REL_14_STABLE9.1alpha1REL_13_STABLE9.1alpha1+10 more | Aug 30, 2010 | |
| CommitterBackported | Revert patch to coerce 'unknown' type parameters in the backend. As Tom pointed out, it would need a 2nd pass after the whole query is processed to correctly check that an unknown Param is coerced to the same target type everywhere. Adding the 2nd pass would add a lot more code, which doesn't seem worth the risk given that there isn't much of a use case for passing unknown Params in the first place. The code would work without that check, but it might be confusing and the behavior would be different from the varparams case. | master9.1alpha1REL_19_STABLE9.1alpha1REL_18_STABLE9.1alpha1REL_17_STABLE9.1alpha1REL_16_STABLE9.1alpha1REL_15_STABLE9.1alpha1REL_14_STABLE9.1alpha1REL_13_STABLE9.1alpha1+11 more | Aug 19, 2010 | |
| CommitterBackported | Coerce 'unknown' type parameters to the right type in the fixed-params parse_analyze() function. That case occurs e.g with PL/pgSQL EXECUTE ... USING 'stringconstant'. | master9.1alpha1REL_19_STABLE9.1alpha1REL_18_STABLE9.1alpha1REL_17_STABLE9.1alpha1REL_16_STABLE9.1alpha1REL_15_STABLE9.1alpha1REL_14_STABLE9.1alpha1REL_13_STABLE9.1alpha1+10 more | Aug 18, 2010 | |
| CommitterBackported | The sanity check added to array_recv() wa a bit too tight; we must continue to accept an empty array with dimension information. array_send() can output such arrays. | master9.1alpha1REL_19_STABLE9.1alpha1REL_18_STABLE9.1alpha1REL_17_STABLE9.1alpha1REL_16_STABLE9.1alpha1REL_15_STABLE9.1alpha1REL_14_STABLE9.1alpha1REL_13_STABLE9.1alpha1+10 more | Aug 11, 2010 | |
| CommitterBackported | Fix typo spotted by Thom Brown. | master9.1alpha1REL_19_STABLE9.1alpha1REL_18_STABLE9.1alpha1REL_17_STABLE9.1alpha1REL_16_STABLE9.1alpha1REL_15_STABLE9.1alpha1REL_14_STABLE9.1alpha1REL_13_STABLE9.1alpha1+10 more | Jul 16, 2010 | |
| CommitterBackported | Add a paragraph explaining what restartpoints are. Mention that wal_keep_segments does not take effect during recovery. | master9.1alpha1REL_19_STABLE9.1alpha1REL_18_STABLE9.1alpha1REL_17_STABLE9.1alpha1REL_16_STABLE9.1alpha1REL_15_STABLE9.1alpha1REL_14_STABLE9.1alpha1REL_13_STABLE9.1alpha1+10 more | Jul 16, 2010 | |
| CommitterBackported | Oops, in the previous fix to prevent a cursor that's being used in a FOR loop from being dropped, I missed subtransaction cleanup. Pinned portals must be dropped at subtransaction cleanup just as they are at main transaction cleanup. | master9.1alpha1REL_19_STABLE9.1alpha1REL_18_STABLE9.1alpha1REL_17_STABLE9.1alpha1REL_16_STABLE9.1alpha1REL_15_STABLE9.1alpha1REL_14_STABLE9.1alpha1REL_13_STABLE9.1alpha1+15 more | Jul 13, 2010 | |
| CommitterBackported | The previous fix in CVS HEAD and 8.4 for handling the case where a cursor being used in a PL/pgSQL FOR loop is closed was inadequate, as Tom Lane pointed out. The bug affects FOR statement variants too, because you can close an implicitly created cursor too by guessing the "<unnamed portal X>" name created for it. | master9.0beta3REL_19_STABLE9.0beta3REL_18_STABLE9.0beta3REL_17_STABLE9.0beta3REL_16_STABLE9.0beta3REL_15_STABLE9.0beta3REL_14_STABLE9.0beta3REL_13_STABLE9.0beta3+16 more | Jul 05, 2010 | |
| CommitterBackported | stringToNode() and deparse_expression_pretty() crash on invalid input, but we have nevertheless exposed them to users via pg_get_expr(). It would be too much maintenance effort to rigorously check the input, so put a hack in place instead to restrict pg_get_expr() so that the argument must come from one of the system catalog columns known to contain valid expressions. | master9.0beta3REL_19_STABLE9.0beta3REL_18_STABLE9.0beta3REL_17_STABLE9.0beta3REL_16_STABLE9.0beta3REL_15_STABLE9.0beta3REL_14_STABLE9.0beta3REL_13_STABLE9.0beta3+16 more | Jun 30, 2010 | |
| CommitterBackported | In a PL/pgSQL "FOR cursor" statement, the statements executed in the loop might close the cursor, rendering the Portal pointer to it invalid. Closing the cursor in the middle of the loop is not a very sensible thing to do, but we must handle it gracefully and throw an error instead of crashing. | master9.0beta3REL_19_STABLE9.0beta3REL_18_STABLE9.0beta3REL_17_STABLE9.0beta3REL_16_STABLE9.0beta3REL_15_STABLE9.0beta3REL_14_STABLE9.0beta3REL_13_STABLE9.0beta3+11 more | Jun 21, 2010 | |
| Committer | If a corrupt WAL record is received by streaming replication, disconnect and retry. If the record is genuinely corrupt in the master database, there's little hope of recovering, but it's better than simply retrying to apply the corrupt WAL record in a tight loop without even trying to retransmit it, which is what we used to do. | master9.0beta3REL_19_STABLE9.0beta3REL_18_STABLE9.0beta3REL_17_STABLE9.0beta3REL_16_STABLE9.0beta3REL_15_STABLE9.0beta3REL_14_STABLE9.0beta3REL_13_STABLE9.0beta3+10 more | Jun 14, 2010 | |
| Committer | Use "replication" as the database name when constructing a connection string for a streaming replication connection. It's ignored by the server, but allows libpq to pick up the password from .pgpass where "replication" is specified as the database name. | master9.0beta3REL_19_STABLE9.0beta3REL_18_STABLE9.0beta3REL_17_STABLE9.0beta3REL_16_STABLE9.0beta3REL_15_STABLE9.0beta3REL_14_STABLE9.0beta3REL_13_STABLE9.0beta3+10 more | Jun 11, 2010 | |
| Committer | Make TriggerFile variable static. It's not used outside xlog.c. | master9.0beta3REL_19_STABLE9.0beta3REL_18_STABLE9.0beta3REL_17_STABLE9.0beta3REL_16_STABLE9.0beta3REL_15_STABLE9.0beta3REL_14_STABLE9.0beta3REL_13_STABLE9.0beta3+10 more | Jun 10, 2010 | |
| Committer | Return NULL instead of 0/0 in pg_last_xlog_receive_location() and pg_last_xlog_replay_location(). Per Robert Haas's suggestion, after Itagaki Takahiro pointed out an issue in the docs. Also, some wording changes in the docs by me. | master9.0beta3REL_19_STABLE9.0beta3REL_18_STABLE9.0beta3REL_17_STABLE9.0beta3REL_16_STABLE9.0beta3REL_15_STABLE9.0beta3REL_14_STABLE9.0beta3REL_13_STABLE9.0beta3+10 more | Jun 10, 2010 | |
| Committer | In standby mode, respect checkpoint_segments in addition to checkpoint_timeout to trigger restartpoints. We used to deliberately only do time-based restartpoints, because if checkpoint_segments is small we would spend time doing restartpoints more often than really necessary. But now that restartpoints are done in bgwriter, they're not as disruptive as they used to be. Secondly, because streaming replication stores the streamed WAL files in pg_xlog, we want to clean it up more often to avoid running out of disk space when checkpoint_timeout is large and checkpoint_segments small. | master9.0beta3REL_19_STABLE9.0beta3REL_18_STABLE9.0beta3REL_17_STABLE9.0beta3REL_16_STABLE9.0beta3REL_15_STABLE9.0beta3REL_14_STABLE9.0beta3REL_13_STABLE9.0beta3+10 more | Jun 09, 2010 | |
| Committer | Fix obsolete comments that I neglected to update in a previous patch. | master9.0beta2REL_19_STABLE9.0beta2REL_18_STABLE9.0beta2REL_17_STABLE9.0beta2REL_16_STABLE9.0beta2REL_15_STABLE9.0beta2REL_14_STABLE9.0beta2REL_13_STABLE9.0beta2+10 more | Jun 02, 2010 | |
| Committer | Send all outstanding WAL before exiting when smart shutdown is requested. This was broken by my previous patch to send WAL in smaller batches. | master9.0beta2REL_19_STABLE9.0beta2REL_18_STABLE9.0beta2REL_17_STABLE9.0beta2REL_16_STABLE9.0beta2REL_15_STABLE9.0beta2REL_14_STABLE9.0beta2REL_13_STABLE9.0beta2+10 more | May 31, 2010 | |
| Committer | Fix typos in recent doc patch. Fujii Masao | master9.0beta2REL_19_STABLE9.0beta2REL_18_STABLE9.0beta2REL_17_STABLE9.0beta2REL_16_STABLE9.0beta2REL_15_STABLE9.0beta2REL_14_STABLE9.0beta2REL_13_STABLE9.0beta2+10 more | May 29, 2010 | |
| Committer | Update High Availability docs. Clarify terms master/primary standby/slave, move two paragraphs that apply to log shipping in general from the "Alternative method for log shipping" section to the earlier sections. Add varname tags where missing. Some small wording changes. | master9.0beta2REL_19_STABLE9.0beta2REL_18_STABLE9.0beta2REL_17_STABLE9.0beta2REL_16_STABLE9.0beta2REL_15_STABLE9.0beta2REL_14_STABLE9.0beta2REL_13_STABLE9.0beta2+10 more | May 28, 2010 | |
| Committer | Make it more clear that you need to release savepoint with RELEASE SAVEPOINT to make an older savepoint with the same name accessible. It's also possible to implicitly release the savepoint by rolling back to an earlier savepoint, but mentioning that too would make the note just more verbose and confusing. | master9.0beta2REL_19_STABLE9.0beta2REL_18_STABLE9.0beta2REL_17_STABLE9.0beta2REL_16_STABLE9.0beta2REL_15_STABLE9.0beta2REL_14_STABLE9.0beta2REL_13_STABLE9.0beta2+10 more | May 27, 2010 | |
| Committer | Adjust comment to reflect that we now have Hot Standby. Pointed out by Robert Haas. | master9.0beta2REL_19_STABLE9.0beta2REL_18_STABLE9.0beta2REL_17_STABLE9.0beta2REL_16_STABLE9.0beta2REL_15_STABLE9.0beta2REL_14_STABLE9.0beta2REL_13_STABLE9.0beta2+10 more | May 27, 2010 | |
| Committer | Thinko in previous commit: ensure that MAX_SEND_SIZE is always greater than XLOG_BLCKSZ, by defining it as 16 * XLOG_BLCKSZ rather than directly as 128k bytes. | master9.0beta2REL_19_STABLE9.0beta2REL_18_STABLE9.0beta2REL_17_STABLE9.0beta2REL_16_STABLE9.0beta2REL_15_STABLE9.0beta2REL_14_STABLE9.0beta2REL_13_STABLE9.0beta2+10 more | May 26, 2010 | |
| Committer | In walsender, don't sleep if there's outstanding WAL waiting to be sent, otherwise we effectively rate-limit the streaming as pointed out by Simon Riggs. Also, send the WAL in smaller chunks, to respond to signals more promptly. | master9.0beta2REL_19_STABLE9.0beta2REL_18_STABLE9.0beta2REL_17_STABLE9.0beta2REL_16_STABLE9.0beta2REL_15_STABLE9.0beta2REL_14_STABLE9.0beta2REL_13_STABLE9.0beta2+10 more | May 26, 2010 | |
| CommitterBackported | Fix typos in comments, spotted by Josh Kupershmidt. | master9.0beta2REL_19_STABLE9.0beta2REL_18_STABLE9.0beta2REL_17_STABLE9.0beta2REL_16_STABLE9.0beta2REL_15_STABLE9.0beta2REL_14_STABLE9.0beta2REL_13_STABLE9.0beta2+12 more | May 15, 2010 | |
| CommitterBackported | Fix incorrect parameter tag in docs, spotted by KOIZUMI Satoru. | master9.0beta2REL_19_STABLE9.0beta2REL_18_STABLE9.0beta2REL_17_STABLE9.0beta2REL_16_STABLE9.0beta2REL_15_STABLE9.0beta2REL_14_STABLE9.0beta2REL_13_STABLE9.0beta2+12 more | May 05, 2010 | |
| Committer | Need to hold ControlFileLock while updating control file. Update 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. | master9.0beta2REL_19_STABLE9.0beta2REL_18_STABLE9.0beta2REL_17_STABLE9.0beta2REL_16_STABLE9.0beta2REL_15_STABLE9.0beta2REL_14_STABLE9.0beta2REL_13_STABLE9.0beta2+10 more | May 03, 2010 | |
| Committer | Change wording so that you don't need to understand that wal_levels form a hierarchy. Per Simon's suggestion. | master9.0beta2REL_19_STABLE9.0beta2REL_18_STABLE9.0beta2REL_17_STABLE9.0beta2REL_16_STABLE9.0beta2REL_15_STABLE9.0beta2REL_14_STABLE9.0beta2REL_13_STABLE9.0beta2+10 more | May 03, 2010 | |
| Committer | Change "literal" tag to the more appropriate "firstterm", when describing what "eventually consistent" means. | master9.0beta2REL_19_STABLE9.0beta2REL_18_STABLE9.0beta2REL_17_STABLE9.0beta2REL_16_STABLE9.0beta2REL_15_STABLE9.0beta2REL_14_STABLE9.0beta2REL_13_STABLE9.0beta2+10 more | May 03, 2010 | |
| Committer | Add cross-reference from wal_level to hot_standby setting. Update 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. | master9.0beta2REL_19_STABLE9.0beta2REL_18_STABLE9.0beta2REL_17_STABLE9.0beta2REL_16_STABLE9.0beta2REL_15_STABLE9.0beta2REL_14_STABLE9.0beta2REL_13_STABLE9.0beta2+10 more | May 03, 2010 | |
| Committer | Fix handling of b-tree reuse WAL records when hot standby is disabled, 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. | master9.0beta2REL_19_STABLE9.0beta2REL_18_STABLE9.0beta2REL_17_STABLE9.0beta2REL_16_STABLE9.0beta2REL_15_STABLE9.0beta2REL_14_STABLE9.0beta2REL_13_STABLE9.0beta2+10 more | Apr 30, 2010 | |
| Committer | Introduce wal_level GUC to explicitly control if information needed for 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. | master9.0beta1REL_19_STABLE9.0beta1REL_18_STABLE9.0beta1REL_17_STABLE9.0beta1REL_16_STABLE9.0beta1REL_15_STABLE9.0beta1REL_14_STABLE9.0beta1REL_13_STABLE9.0beta1+10 more | Apr 28, 2010 | |
| Committer | Add recovery.conf parameters to the documentation index, per suggestion by Fujii Masao. | master9.0beta1REL_19_STABLE9.0beta1REL_18_STABLE9.0beta1REL_17_STABLE9.0beta1REL_16_STABLE9.0beta1REL_15_STABLE9.0beta1REL_14_STABLE9.0beta1REL_13_STABLE9.0beta1+10 more | Apr 28, 2010 | |
| Committer | If a base backup is cancelled by server shutdown or crash, throw an error 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. | master9.0beta1REL_19_STABLE9.0beta1REL_18_STABLE9.0beta1REL_17_STABLE9.0beta1REL_16_STABLE9.0beta1REL_15_STABLE9.0beta1REL_14_STABLE9.0beta1REL_13_STABLE9.0beta1+10 more | Apr 27, 2010 | |
| CommitterBackported | On Windows, syslogger runs in two threads. The main thread processes config reload and rotation signals, and a helper thread reads messages from the pipe and writes them to the log file. However, server code isn't generally thread-safe, so if both try to do e.g palloc()/pfree() at the same time, bad things will happen. To fix that, use a critical section (which is like a mutex) to enforce that only one the threads are active at a time. | master9.0beta1REL_19_STABLE9.0beta1REL_18_STABLE9.0beta1REL_17_STABLE9.0beta1REL_16_STABLE9.0beta1REL_15_STABLE9.0beta1REL_14_STABLE9.0beta1REL_13_STABLE9.0beta1+13 more | Apr 16, 2010 | |
| Committer | In standby mode, suppress repeated LOG messages about a corrupt record, which just indicates that we've reached the end of valid WAL found in the standby. | master9.0beta1REL_19_STABLE9.0beta1REL_18_STABLE9.0beta1REL_17_STABLE9.0beta1REL_16_STABLE9.0beta1REL_15_STABLE9.0beta1REL_14_STABLE9.0beta1REL_13_STABLE9.0beta1+10 more | Apr 16, 2010 | |
| Committer | Fix typo, spotted by Erik Rijkers. | master9.0beta1REL_19_STABLE9.0beta1REL_18_STABLE9.0beta1REL_17_STABLE9.0beta1REL_16_STABLE9.0beta1REL_15_STABLE9.0beta1REL_14_STABLE9.0beta1REL_13_STABLE9.0beta1+10 more | Apr 15, 2010 | |
| Committer | Allow Hot Standby to begin from a shutdown checkpoint. | master9.0beta1REL_19_STABLE9.0beta1REL_18_STABLE9.0beta1REL_17_STABLE9.0beta1REL_16_STABLE9.0beta1REL_15_STABLE9.0beta1REL_14_STABLE9.0beta1REL_13_STABLE9.0beta1+10 more | Apr 13, 2010 | |
| Committer | Update the location of last removed WAL segment in shared memory only after actually removing one, so that if we can't remove segments because WAL archiving is lagging behind, we don't unnecessarily forbid streaming the old not-yet-archived segments that are still perfectly valid. Per suggestion from Fujii Masao. | master9.0beta1REL_19_STABLE9.0beta1REL_18_STABLE9.0beta1REL_17_STABLE9.0beta1REL_16_STABLE9.0beta1REL_15_STABLE9.0beta1REL_14_STABLE9.0beta1REL_13_STABLE9.0beta1+10 more | Apr 12, 2010 | |
| Committer | Need to use the start pointer of a block we read from WAL segment in the calculation, not the end pointer, as pointed out by Fujii Masao. | master9.0beta1REL_19_STABLE9.0beta1REL_18_STABLE9.0beta1REL_17_STABLE9.0beta1REL_16_STABLE9.0beta1REL_15_STABLE9.0beta1REL_14_STABLE9.0beta1REL_13_STABLE9.0beta1+10 more | Apr 12, 2010 | |
| Committer | Adjust paragraph about monitoring streaming replication, now that we have standby_keep_segments. | master9.0beta1REL_19_STABLE9.0beta1REL_18_STABLE9.0beta1REL_17_STABLE9.0beta1REL_16_STABLE9.0beta1REL_15_STABLE9.0beta1REL_14_STABLE9.0beta1REL_13_STABLE9.0beta1+10 more | Apr 12, 2010 | |
| Committer | Change the logic to decide when to delete old WAL segments, so that it doesn't take into account how far the WAL senders are. This way a hung WAL sender doesn't prevent old WAL segments from being recycled/removed in the primary, ultimately causing the disk to fill up. Instead add standby_keep_segments setting to control how many old WAL segments are kept in the primary. This also makes it more reliable to use streaming replication without WAL archiving, assuming that you set standby_keep_segments high enough. | master9.0beta1REL_19_STABLE9.0beta1REL_18_STABLE9.0beta1REL_17_STABLE9.0beta1REL_16_STABLE9.0beta1REL_15_STABLE9.0beta1REL_14_STABLE9.0beta1REL_13_STABLE9.0beta1+10 more | Apr 12, 2010 | |
| Committer | Allow quotes to be escaped in recovery.conf, by doubling them. This patch also makes the parsing a little bit stricter, rejecting garbage after the parameter value and values with missing ending quotes, for example. | master9.0beta1REL_19_STABLE9.0beta1REL_18_STABLE9.0beta1REL_17_STABLE9.0beta1REL_16_STABLE9.0beta1REL_15_STABLE9.0beta1REL_14_STABLE9.0beta1REL_13_STABLE9.0beta1+10 more | Apr 07, 2010 | |
| Committer | Forbid using pg_xlogfile_name() and pg_xlogfile_name_offset() during recovery. We might want to relax this in the future, but ThisTimeLineID isn't currently correct in backends during recovery, so the filename returned was wrong. | master9.0beta1REL_19_STABLE9.0beta1REL_18_STABLE9.0beta1REL_17_STABLE9.0beta1REL_16_STABLE9.0beta1REL_15_STABLE9.0beta1REL_14_STABLE9.0beta1REL_13_STABLE9.0beta1+10 more | Apr 07, 2010 | |
| Committer | Rename "Log-streaming replication parameters" header to "Standby server parameters" in recovery.conf, to match the grouping in the documentation. | master9.0beta1REL_19_STABLE9.0beta1REL_18_STABLE9.0beta1REL_17_STABLE9.0beta1REL_16_STABLE9.0beta1REL_15_STABLE9.0beta1REL_14_STABLE9.0beta1REL_13_STABLE9.0beta1+10 more | Apr 06, 2010 | |
| CommitterBackported | Don't pass an invalid file handle to dup2(). That causes a crash on Windows, thanks to a feature in CRT called Parameter Validation. | master9.0beta1REL_19_STABLE9.0beta1REL_18_STABLE9.0beta1REL_17_STABLE9.0beta1REL_16_STABLE9.0beta1REL_15_STABLE9.0beta1REL_14_STABLE9.0beta1REL_13_STABLE9.0beta1+13 more | Apr 01, 2010 | |
| Committer | Fix typos, spotted by Thom Brown. | master9.0alpha5REL_19_STABLE9.0alpha5REL_18_STABLE9.0alpha5REL_17_STABLE9.0alpha5REL_16_STABLE9.0alpha5REL_15_STABLE9.0alpha5REL_14_STABLE9.0alpha5REL_13_STABLE9.0alpha5+11 more | Mar 31, 2010 | |
| Committer | Enhance standby documentation. | master9.0alpha5REL_19_STABLE9.0alpha5REL_18_STABLE9.0alpha5REL_17_STABLE9.0alpha5REL_16_STABLE9.0alpha5REL_15_STABLE9.0alpha5REL_14_STABLE9.0alpha5REL_13_STABLE9.0alpha5+11 more | Mar 31, 2010 | |
| Committer | Mention in the docs that if special keywords like "sameuser" and "replication" are quoted in pg_hba.conf, they lose their special meaning. | master9.0alpha5REL_19_STABLE9.0alpha5REL_18_STABLE9.0alpha5REL_17_STABLE9.0alpha5REL_16_STABLE9.0alpha5REL_15_STABLE9.0alpha5REL_14_STABLE9.0alpha5REL_13_STABLE9.0alpha5+11 more | Mar 31, 2010 | |
| Committer | Enhance documentation of the build-in standby mode, explaining the retry loop in standby mode, trying to restore from archive, pg_xlog and streaming. | master9.0alpha5REL_19_STABLE9.0alpha5REL_18_STABLE9.0alpha5REL_17_STABLE9.0alpha5REL_16_STABLE9.0alpha5REL_15_STABLE9.0alpha5REL_14_STABLE9.0alpha5REL_13_STABLE9.0alpha5+11 more | Mar 31, 2010 | |
| Committer | Change the retry-loop in standby mode to also try restoring files from pg_xlog directory. This is essential for replaying WAL records that were streamed from the master, after a standby server restart. | master9.0alpha5REL_19_STABLE9.0alpha5REL_18_STABLE9.0alpha5REL_17_STABLE9.0alpha5REL_16_STABLE9.0alpha5REL_15_STABLE9.0alpha5REL_14_STABLE9.0alpha5REL_13_STABLE9.0alpha5+11 more | Mar 30, 2010 | |
| Committer | Flush CopyOutResponse when starting streaming in walsender, so that it's not delayed until the first WAL record is sent. | master9.0alpha5REL_19_STABLE9.0alpha5REL_18_STABLE9.0alpha5REL_17_STABLE9.0alpha5REL_16_STABLE9.0alpha5REL_15_STABLE9.0alpha5REL_14_STABLE9.0alpha5REL_13_STABLE9.0alpha5+11 more | Mar 26, 2010 | |
| Committer | Update description of walrcv_receive() function to match reality. | master9.0alpha5REL_19_STABLE9.0alpha5REL_18_STABLE9.0alpha5REL_17_STABLE9.0alpha5REL_16_STABLE9.0alpha5REL_15_STABLE9.0alpha5REL_14_STABLE9.0alpha5REL_13_STABLE9.0alpha5+11 more | Mar 24, 2010 | |
| Committer | Fix bug in %r handling in recovery_end_command, it always came out as 0 because InRedo was cleared before recovery_end_command was executed. Also, always take ControlFileLock when reading checkpoint location for %r. That didn't matter before, but in 8.4 bgwriter is active during recovery and can modify the control file concurrently. | REL8_4_STABLE8.4.4 | Mar 18, 2010 | |
| Committer | Add restartpoint_command option to recovery.conf. Fix bug in %r handling in recovery_end_command, it always came out as 0 because InRedo was cleared before recovery_end_command was executed. Also, always take ControlFileLock when reading checkpoint location for %r. | master9.0alpha5REL_19_STABLE9.0alpha5REL_18_STABLE9.0alpha5REL_17_STABLE9.0alpha5REL_16_STABLE9.0alpha5REL_15_STABLE9.0alpha5REL_14_STABLE9.0alpha5REL_13_STABLE9.0alpha5+11 more | Mar 18, 2010 | |
| Committer | Throw a nicer error message if a standby server attempts to connect while the master is still in recovery. We don't support cascading slaves yet. | master9.0alpha5REL_19_STABLE9.0alpha5REL_18_STABLE9.0alpha5REL_17_STABLE9.0alpha5REL_16_STABLE9.0alpha5REL_15_STABLE9.0alpha5REL_14_STABLE9.0alpha5REL_13_STABLE9.0alpha5+11 more | Mar 16, 2010 | |
| Committer | Fix bug in KnownAssignedXidsMany(). I saw this when looking at the assertion failure reported by Erik Rijkers, but this alone doesn't explain the failure. | master9.0alpha5REL_19_STABLE9.0alpha5REL_18_STABLE9.0alpha5REL_17_STABLE9.0alpha5REL_16_STABLE9.0alpha5REL_15_STABLE9.0alpha5REL_14_STABLE9.0alpha5REL_13_STABLE9.0alpha5+11 more | Mar 11, 2010 | |
| Committer | Fix comment which was apparently copy-pasted from another function. | master9.0alpha5REL_19_STABLE9.0alpha5REL_18_STABLE9.0alpha5REL_17_STABLE9.0alpha5REL_16_STABLE9.0alpha5REL_15_STABLE9.0alpha5REL_14_STABLE9.0alpha5REL_13_STABLE9.0alpha5+11 more | Mar 11, 2010 | |
| CommitterBackported | Fix IsBinaryCoercible to not confuse a cast using in/out functions with binary compatibility. | master9.0alpha5REL_19_STABLE9.0alpha5REL_18_STABLE9.0alpha5REL_17_STABLE9.0alpha5REL_16_STABLE9.0alpha5REL_15_STABLE9.0alpha5REL_14_STABLE9.0alpha5REL_13_STABLE9.0alpha5+12 more | Mar 04, 2010 | |
| CommitterBackported | Fix pg_dump of ACLs of foreign servers. The command to grant/revoke privileges of foreign servers is "GRANT ... ON *FOREIGN* SERVER ...". | master9.0alpha5REL_19_STABLE9.0alpha5REL_18_STABLE9.0alpha5REL_17_STABLE9.0alpha5REL_16_STABLE9.0alpha5REL_15_STABLE9.0alpha5REL_14_STABLE9.0alpha5REL_13_STABLE9.0alpha5+12 more | Mar 03, 2010 | |
| CommitterBackported | Fix translation of strings in psql \d output (translation in headers worked, but not in cells). | master9.0alpha5REL_19_STABLE9.0alpha5REL_18_STABLE9.0alpha5REL_17_STABLE9.0alpha5REL_16_STABLE9.0alpha5REL_15_STABLE9.0alpha5REL_14_STABLE9.0alpha5REL_13_STABLE9.0alpha5+12 more | Mar 01, 2010 | |
| CommitterBackported | Fix numericlocale psql option when used with a null string and latex and troff formats; a null string must not be formatted as a numeric. The more exotic formats latex and troff also incorrectly formatted all strings as numerics when numericlocale was on. | master9.0alpha5REL_19_STABLE9.0alpha5REL_18_STABLE9.0alpha5REL_17_STABLE9.0alpha5REL_16_STABLE9.0alpha5REL_15_STABLE9.0alpha5REL_14_STABLE9.0alpha5REL_13_STABLE9.0alpha5+15 more | Mar 01, 2010 | |
| Committer | Document max_standby_delay=-1 option, now that it's allowed again. | master9.0alpha5REL_19_STABLE9.0alpha5REL_18_STABLE9.0alpha5REL_17_STABLE9.0alpha5REL_16_STABLE9.0alpha5REL_15_STABLE9.0alpha5REL_14_STABLE9.0alpha5REL_13_STABLE9.0alpha5+11 more | Feb 27, 2010 | |
| Committer | Clarify that the connection string for primary_conninfo is in the same format as in PQconnectdb(). As pointed out by Thom Brown. | master9.0alpha5REL_19_STABLE9.0alpha5REL_18_STABLE9.0alpha5REL_17_STABLE9.0alpha5REL_16_STABLE9.0alpha5REL_15_STABLE9.0alpha5REL_14_STABLE9.0alpha5REL_13_STABLE9.0alpha5+11 more | Feb 25, 2010 | |
| Committer | Fix typo. | master9.0alpha5REL_19_STABLE9.0alpha5REL_18_STABLE9.0alpha5REL_17_STABLE9.0alpha5REL_16_STABLE9.0alpha5REL_15_STABLE9.0alpha5REL_14_STABLE9.0alpha5REL_13_STABLE9.0alpha5+11 more | Feb 25, 2010 | |
| Committer | Small streaming replication document improvements. Be more explicit that it's asynchronous. | master9.0alpha5REL_19_STABLE9.0alpha5REL_18_STABLE9.0alpha5REL_17_STABLE9.0alpha5REL_16_STABLE9.0alpha5REL_15_STABLE9.0alpha5REL_14_STABLE9.0alpha5REL_13_STABLE9.0alpha5+11 more | Feb 25, 2010 | |
| Committer | Fix streaming replication starting at the very first WAL segment. Per complaint from Greg Stark. | master9.0alpha5REL_19_STABLE9.0alpha5REL_18_STABLE9.0alpha5REL_17_STABLE9.0alpha5REL_16_STABLE9.0alpha5REL_15_STABLE9.0alpha5REL_14_STABLE9.0alpha5REL_13_STABLE9.0alpha5+11 more | Feb 25, 2010 | |
| Committer | Move documentation of all recovery.conf option to a new chapter. They used to be scattered between the "backup and restore" and "streaming replication" chapters. | master9.0alpha5REL_19_STABLE9.0alpha5REL_18_STABLE9.0alpha5REL_17_STABLE9.0alpha5REL_16_STABLE9.0alpha5REL_15_STABLE9.0alpha5REL_14_STABLE9.0alpha5REL_13_STABLE9.0alpha5+11 more | Feb 22, 2010 | |
| Committer | Don't use O_DIRECT when writing WAL files if archiving or streaming is enabled. Bypassing the kernel cache is counter-productive in that case, because the archiver/walsender process will read from the WAL file soon after it's written, and if it's not cached the read will cause a physical read, eating I/O bandwidth available on the WAL drive. | master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more | Feb 19, 2010 | |
| Committer | Forbid setval() during recovery. This prevents the PANIC reported by Erik Rijkers. Patch by Andres Freund. | master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more | Feb 19, 2010 | |
| Committer | Fix pq_getbyte_if_available() function. It was confused on what it returns if no data is immediately available. Patch by me with numerous fixes from Fujii Masao and Magnus Hagander. | master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more | Feb 18, 2010 | |
| Committer | Update Hot Standby documentation to reflect the change in the LOG messages printed at startup. As pointed out by Simon Riggs. | master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more | Feb 12, 2010 | |
| Committer | Reduce the chatter to the log when starting a standby server. Don't echo all the recovery.conf options. Don't emit the "initializing recovery connections" message, which doesn't mean anything to a user. Remove the "starting archive recovery" message and replace the "automatic recovery in progress" message with a more informative message saying whether the server is doing PITR, normal archive recovery, or standby mode. | master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more | Feb 12, 2010 | |
| Committer | Clean up Streaming Replication documentation a little bit. A lot more needs to be done, but it's a step forward.. | master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more | Feb 12, 2010 | |
| Committer | If primary_conninfo is not set, don't try to establish streaming connection. | master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more | Feb 12, 2010 | |
| Committer | Check for partial WAL files in standby mode. If restore_command restores a partial WAL file, assume it's because the file is just being copied to the archive and treat it the same as "file not found" in standby mode. pg_standby has a similar check, so it seems reasonable to have the same level of protection in the built-in standby mode. | master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more | Feb 12, 2010 | |
| Committer | Now that streaming replication switches between streaming mode and restoring from archive, the last WAL segment is not necessarily open at the end of recovery. Fix assertion that assumed that. | master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more | Feb 10, 2010 | |
| CommitterBackported | Fix bug in GIN WAL redo cleanup function: don't free fake relcache entry while it's still being used. | master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+13 more | Feb 09, 2010 | |
| Committer | Move "Warm Standby Servers for High Availability" and "Hot Standby" sections under "High Availability, Load Balancing, and Replication" chapter. Streaming replication chapter needs a lot more work, but this commit just moves things around. | master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more | Feb 09, 2010 | |
| CommitterBackported | Remove obsolete comment about 'fsm' argument, which isn't an argument anymore. | master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+13 more | Feb 08, 2010 | |
| Committer | Remove piece of code to zero out minRecoveryPoint when starting crash recovery. It's zeroed out whenever a checkpoint is written, so the only scenario where the removed code did anything is when you kill archive recovery, remove recovery.conf, and start up the server, so that it goes into crash recovery instead. That's a "don't do that" scenario, but it seems better to not clear minRecoveryPoint but instead update it like we do in archive recovery, which is what will now happen. | master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more | Feb 08, 2010 | |
| Committer | Add a note to the documentation of pg_standby that it's important that the postgres process has permissions to delete the trigger file, per suggestion by Mason Hale. | REL8_3_STABLE8.3.10 | Feb 05, 2010 | |
| Committer | Move the responsibility of writing a "unlogged WAL operation" record from heap_sync() to the callers, because heap_sync() is sometimes called even if the operation itself is WAL-logged. This eliminates the bogus unlogged records from CLUSTER that Simon Riggs reported, patch by Fujii Masao. | master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more | Feb 03, 2010 | |
| Committer | Add a message type header to the CopyData messages sent from primary to standby in streaming replication. While we only have one message type at the moment, adding a message type header makes this easier to extend. | master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more | Feb 03, 2010 | |
| Committer | Fix crashing bug at the end of recovery in Streaming Replication, when restore_command is not given. Fujii Masao. | master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more | Jan 28, 2010 | |
| Committer | Change a few remaining calls of XLogArchivingActive() to use XLogIsNeeded() instead, to determine if an otherwise non-logged operation needs to be logged in WAL for standby servers. | master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more | Jan 28, 2010 | |
| Committer | Fix bug in wasender's xlogid boundary handling, reported by Erik Rijkers. LogwrtRqst.Write can be set to non-existent FF log segment, we mustn't try to send that in XLogSend(). | master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more | Jan 27, 2010 | |
| Committer | Make standby server continuously retry restoring the next WAL segment with restore_command, if the connection to the primary server is lost. This ensures that the standby can recover automatically, if the connection is lost for a long time and standby falls behind so much that the required WAL segments have been archived and deleted in the master. | master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more | Jan 27, 2010 | |
| Committer | Add note that PREPARE TRANSACTION is for transaction managers, not regular applications. Also add a comment pointing out that tab-complition for PREPARE TRANSACTION is missing on purpose. | master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more | Jan 25, 2010 | |
| Committer | Fix bogus comments. | master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more | Jan 21, 2010 | |
| Committer | Fix bogus subdir setting. Again. I must've unfixed it by accident while moving files around. | master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more | Jan 20, 2010 | |
| Committer | Write a WAL record whenever we perform an operation without WAL-logging that would've been WAL-logged if archiving was enabled. If we encounter such records in archive recovery anyway, we know that some data is missing from the log. A WARNING is emitted in that case. | master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more | Jan 20, 2010 | |
| Committer | Now that much of walreceiver has been pulled back into the postgres binary, revert PGDLLIMPORT decoration of global variables. I'm not sure if there's any real harm from unnecessary PGDLLIMPORTs, but these are all internal variables that external modules really shouldn't be messing with. ThisTimeLineID still needs PGDLLIMPORT. | master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more | Jan 20, 2010 | |
| Committer | Add missing "!= NULL", for the sake of consistency. | master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more | Jan 20, 2010 | |
| Committer | Adjust windows makefiles too, now that the walreceiver dynamic module has been renamed. | master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more | Jan 20, 2010 | |
| Committer | Adjust MSVC build script too, now that the walreceiver dynamic module has been renamed. | master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more | Jan 20, 2010 | |
| Committer | Rethink the way walreceiver is linked into the backend. Instead than shoving walreceiver as whole into a dynamically loaded module, split the libpq-specific parts of it into dynamically loaded module and keep the rest in the main backend binary. | master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more | Jan 20, 2010 | |
| Committer | Move build of src/backend/replication/walreceiver/ later in the build process, after src/interfaces, because it depends on libpq. Also add missing lines for clean etc. targets | master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more | Jan 15, 2010 | |
| Committer | Remove unused (in non-assertion-enabled build) variable. | master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more | Jan 15, 2010 | |
| Committer | Introduce Streaming Replication. | master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more | Jan 15, 2010 | |
| Committer | Write an end-of-backup WAL record at pg_stop_backup(), and wait for it at recovery instead of reading the backup history file. This is more robust, as it stops you from prematurely starting up an inconsisten cluster if the backup history file is lost for some reason, or if the base backup was never finished with pg_stop_backup(). | master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more | Jan 04, 2010 |