Filter:

Commits in 2010

Commits132 commits of which 38 backported
0Author
132Committer
0Reviewer
0Reported by
0Co-author
CreditCommitBranchesThread(s)Committed
CommitterRewrite 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:
9de3aa65
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
No linked threadDec 23, 2010
CommitterBackportedFix 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.
5a031a55
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
No linked threadDec 07, 2010
CommitterBackportedFix two typos, by Fujii Masao.
95e42a2c
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
No linked threadDec 06, 2010
CommitterRemove misleading comments. Move _Clone and _DeClone functions before the "END OF FORMAT CALLBACKS" comment, because they are format callbacks too.
9cea52a5
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
No linked threadDec 03, 2010
CommitterRefactor 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.
bf9aa490
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
No linked threadDec 02, 2010
CommitterBe consistent about writing "[, ...]" instead "[,...]" in the docs.
3c42efce
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
No linked threadNov 29, 2010
CommitterRemove unused parameter. Patch by Shigeru Hanada.
ecf70b91
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
No linked threadNov 18, 2010
CommitterBackportedThe 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.
2edc5cd4
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
No linked threadNov 16, 2010
CommitterBackportedAdd 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.
e356743f
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
No linked threadNov 12, 2010
CommitterBackportedFix 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.
542bdb21
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
No linked threadNov 11, 2010
CommitterBackportedIn 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.
000efc3d
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
No linked threadNov 09, 2010
CommitterBackportedBootstrap 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.
8c843fff
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
No linked threadNov 02, 2010
CommitterBackportedFix 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.
931b6db3
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
No linked threadNov 01, 2010
CommitterGive 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.
f184de35
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
No linked threadOct 29, 2010
CommitterBackportedFix 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.
869af50f
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
No linked threadOct 27, 2010
CommitterBackportedNote 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.
5c38782c
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
No linked threadOct 26, 2010
CommitterBackportedBefore 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.
0c6293dd
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
No linked threadOct 26, 2010
CommitterBackportedAdd semicolon, missed in previous patch. And update the keyword list in the docs to reflect that OFF is now unreserved. Spotted by Tom Lane.
57b80b4c
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
No linked threadOct 22, 2010
CommitterBackportedMake 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.
5c84fe46
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
No linked threadOct 22, 2010
CommitterBackportedIf pk is NULL, the backend would segfault when accessing ->algo and the following NULL check was never reached.
18e752f2
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
No linked threadOct 20, 2010
CommitterBackportedInitialize 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.
7e8c25c6
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
No linked threadSep 23, 2010
CommitterFix two typos in comments, spotted by Fujii Masao and Thom Brown
79b54816
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
No linked threadSep 15, 2010
CommitterUse 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.
723d0184
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
No linked threadSep 15, 2010
CommitterSimplify 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.
236b6bc2
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
No linked threadSep 15, 2010
CommitterDon'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.
1eab7a56
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
No linked threadSep 15, 2010
CommitterOops, the timeout argument to WaitLatchOrSocket is in microseconds, not milliseconds.
3522217b
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
No linked threadSep 14, 2010
CommitterBackportedDon'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.
06e8c8e3
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
No linked threadSep 14, 2010
CommitterAdd a comment noting that the owner_pid test in OwnLatch is just a sanity check, per request by Jeff Davis.
c1ba7db6
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
No linked threadSep 13, 2010
CommitterBackportedRemove prototype for non-existent function from walreceiver.h. Tidy up by separating prototypes for functions in walreceiver.c and walreceiverfuncs.c with comments.
d1c33ccf
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
No linked threadSep 13, 2010
CommitterBackportedProcess 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.
418039d3
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
No linked threadSep 13, 2010
CommitterAdd missing #includes, needed on some platforms. This should make the unixware buildfarm animals happy again.
262c71ab
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
No linked threadSep 11, 2010
CommitterIntroduce 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.
2746e5f2
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
No linked threadSep 11, 2010
CommitterBackportedFix typo in comment.
e1cc96db
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
No linked threadAug 30, 2010
CommitterBackportedRevert 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.
ff645bf5
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
No linked threadAug 19, 2010
CommitterBackportedCoerce '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'.
ef713753
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
No linked threadAug 18, 2010
CommitterBackportedThe 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.
c9ae257e
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
No linked threadAug 11, 2010
CommitterBackportedFix typo spotted by Thom Brown.
6b0937cd
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
No linked threadJul 16, 2010
CommitterBackportedAdd a paragraph explaining what restartpoints are. Mention that wal_keep_segments does not take effect during recovery.
8f9c4611
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
No linked threadJul 16, 2010
CommitterBackportedOops, 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.
2751a249
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
No linked threadJul 13, 2010
CommitterBackportedThe 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.
eb81b650
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
No linked threadJul 05, 2010
CommitterBackportedstringToNode() 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.
350ab443
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
No linked threadJun 30, 2010
CommitterBackportedIn 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.
2e8a832d
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
No linked threadJun 21, 2010
CommitterIf 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.
6da07cd8
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
No linked threadJun 14, 2010
CommitterUse "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.
e751b71b
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
No linked threadJun 11, 2010
CommitterMake TriggerFile variable static. It's not used outside xlog.c.
0a7cb855
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
No linked threadJun 10, 2010
CommitterReturn 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.
346d7cd7
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
No linked threadJun 10, 2010
CommitterIn 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.
71815306
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
No linked threadJun 09, 2010
CommitterFix obsolete comments that I neglected to update in a previous patch.
6b240363
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
No linked threadJun 02, 2010
CommitterSend all outstanding WAL before exiting when smart shutdown is requested. This was broken by my previous patch to send WAL in smaller batches.
e0b581ac
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
No linked threadMay 31, 2010
CommitterFix typos in recent doc patch. Fujii Masao
23e9fe03
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
No linked threadMay 29, 2010
CommitterUpdate 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.
fe76f93d
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
No linked threadMay 28, 2010
CommitterMake 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.
aa5bec67
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
No linked threadMay 27, 2010
CommitterAdjust comment to reflect that we now have Hot Standby. Pointed out by Robert Haas.
c5bd8fea
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
No linked threadMay 27, 2010
CommitterThinko 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.
fbcdff39
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
No linked threadMay 26, 2010
CommitterIn 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.
ea551608
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
No linked threadMay 26, 2010
CommitterBackportedFix typos in comments, spotted by Josh Kupershmidt.
de4e18a3
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
No linked threadMay 15, 2010
CommitterBackportedFix incorrect parameter tag in docs, spotted by KOIZUMI Satoru.
1ba23f76
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
No linked threadMay 05, 2010
CommitterNeed 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.
ffe8c7c6
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
No linked threadMay 03, 2010
CommitterChange wording so that you don't need to understand that wal_levels form a hierarchy. Per Simon's suggestion.
c0de88c4
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
No linked threadMay 03, 2010
CommitterChange "literal" tag to the more appropriate "firstterm", when describing what "eventually consistent" means.
1b6c7b1c
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
No linked threadMay 03, 2010
CommitterAdd 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.
f3595161
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
No linked threadMay 03, 2010
CommitterFix 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.
21992dd4
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
No linked threadApr 30, 2010
CommitterIntroduce 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.
9b8a7332
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
No linked threadApr 28, 2010
CommitterAdd recovery.conf parameters to the documentation index, per suggestion by Fujii Masao.
8f9fe24b
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
No linked threadApr 28, 2010
CommitterIf 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.
3efba16d
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
No linked threadApr 27, 2010
CommitterBackportedOn 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.
961ad3fd
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
No linked threadApr 16, 2010
CommitterIn 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.
78974cfb
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
No linked threadApr 16, 2010
CommitterFix typo, spotted by Erik Rijkers.
95eaea4c
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
No linked threadApr 15, 2010
CommitterAllow Hot Standby to begin from a shutdown checkpoint.
361bd166
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
No linked threadApr 13, 2010
CommitterUpdate 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.
30556568
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
No linked threadApr 12, 2010
CommitterNeed 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.
258174b4
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
No linked threadApr 12, 2010
CommitterAdjust paragraph about monitoring streaming replication, now that we have standby_keep_segments.
e76b4e0d
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
No linked threadApr 12, 2010
CommitterChange 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.
e57cd7f0
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
No linked threadApr 12, 2010
CommitterAllow 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.
0f11ed58
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
No linked threadApr 07, 2010
CommitterForbid 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.
370f770c
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
No linked threadApr 07, 2010
CommitterRename "Log-streaming replication parameters" header to "Standby server parameters" in recovery.conf, to match the grouping in the documentation.
492d9f23
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
No linked threadApr 06, 2010
CommitterBackportedDon't pass an invalid file handle to dup2(). That causes a crash on Windows, thanks to a feature in CRT called Parameter Validation.
93001dfd
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
No linked threadApr 01, 2010
CommitterFix typos, spotted by Thom Brown.
f185fc3c
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
No linked threadMar 31, 2010
CommitterEnhance standby documentation.
ec9ee938
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
No linked threadMar 31, 2010
CommitterMention in the docs that if special keywords like "sameuser" and "replication" are quoted in pg_hba.conf, they lose their special meaning.
259f60e9
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
No linked threadMar 31, 2010
CommitterEnhance documentation of the build-in standby mode, explaining the retry loop in standby mode, trying to restore from archive, pg_xlog and streaming.
991bfe11
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
No linked threadMar 31, 2010
CommitterChange 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.
2a77355e
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
No linked threadMar 30, 2010
CommitterFlush CopyOutResponse when starting streaming in walsender, so that it's not delayed until the first WAL record is sent.
59292f28
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
No linked threadMar 26, 2010
CommitterUpdate description of walrcv_receive() function to match reality.
de3483ac
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
No linked threadMar 24, 2010
CommitterFix 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.
9c563b6f
REL8_4_STABLE8.4.4
No linked threadMar 18, 2010
CommitterAdd 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.
c21ac0b5
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
No linked threadMar 18, 2010
CommitterThrow 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.
a383c55a
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
No linked threadMar 16, 2010
CommitterFix bug in KnownAssignedXidsMany(). I saw this when looking at the assertion failure reported by Erik Rijkers, but this alone doesn't explain the failure.
e0f9e2b6
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
No linked threadMar 11, 2010
CommitterFix comment which was apparently copy-pasted from another function.
daaeac88
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
No linked threadMar 11, 2010
CommitterBackportedFix IsBinaryCoercible to not confuse a cast using in/out functions with binary compatibility.
3bdede39
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
No linked threadMar 04, 2010
CommitterBackportedFix pg_dump of ACLs of foreign servers. The command to grant/revoke privileges of foreign servers is "GRANT ... ON *FOREIGN* SERVER ...".
eb1c3b5e
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
No linked threadMar 03, 2010
CommitterBackportedFix translation of strings in psql \d output (translation in headers worked, but not in cells).
95c833b4
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
No linked threadMar 01, 2010
CommitterBackportedFix 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.
93df658a
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
No linked threadMar 01, 2010
CommitterDocument max_standby_delay=-1 option, now that it's allowed again.
7ab9305c
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
No linked threadFeb 27, 2010
CommitterClarify that the connection string for primary_conninfo is in the same format as in PQconnectdb(). As pointed out by Thom Brown.
0a4807dd
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
No linked threadFeb 25, 2010
CommitterFix typo.
6e11a10c
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
No linked threadFeb 25, 2010
CommitterSmall streaming replication document improvements. Be more explicit that it's asynchronous.
7c6c09c0
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
No linked threadFeb 25, 2010
CommitterFix streaming replication starting at the very first WAL segment. Per complaint from Greg Stark.
cd2b7d3c
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
No linked threadFeb 25, 2010
CommitterMove documentation of all recovery.conf option to a new chapter. They used to be scattered between the "backup and restore" and "streaming replication" chapters.
3229db2d
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
No linked threadFeb 22, 2010
CommitterDon'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.
ad458cfe
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
No linked threadFeb 19, 2010
CommitterForbid setval() during recovery. This prevents the PANIC reported by Erik Rijkers. Patch by Andres Freund.
94f610b1
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
No linked threadFeb 19, 2010
CommitterFix 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.
3e87ba6e
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
No linked threadFeb 18, 2010
CommitterUpdate Hot Standby documentation to reflect the change in the LOG messages printed at startup. As pointed out by Simon Riggs.
a5348faf
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
No linked threadFeb 12, 2010
CommitterReduce 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.
e465390d
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
No linked threadFeb 12, 2010
CommitterClean up Streaming Replication documentation a little bit. A lot more needs to be done, but it's a step forward..
1026be15
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
No linked threadFeb 12, 2010
CommitterIf primary_conninfo is not set, don't try to establish streaming connection.
54cbd175
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
No linked threadFeb 12, 2010
CommitterCheck 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.
9fa01f6c
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
No linked threadFeb 12, 2010
CommitterNow 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.
161d9d51
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
No linked threadFeb 10, 2010
CommitterBackportedFix bug in GIN WAL redo cleanup function: don't free fake relcache entry while it's still being used.
79647eed
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
No linked threadFeb 09, 2010
CommitterMove "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.
8740fe71
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
No linked threadFeb 09, 2010
CommitterBackportedRemove obsolete comment about 'fsm' argument, which isn't an argument anymore.
4d3d2e2b
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
No linked threadFeb 08, 2010
CommitterRemove 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.
4cea6031
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
No linked threadFeb 08, 2010
CommitterAdd 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.
a085a6a7
REL8_3_STABLE8.3.10
No linked threadFeb 05, 2010
CommitterMove 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.
9de778b2
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
No linked threadFeb 03, 2010
CommitterAdd 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.
808969d0
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
No linked threadFeb 03, 2010
CommitterFix crashing bug at the end of recovery in Streaming Replication, when restore_command is not given. Fujii Masao.
b0509ef6
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
No linked threadJan 28, 2010
CommitterChange 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.
e0e8b963
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
No linked threadJan 28, 2010
CommitterFix 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().
83cb7da7
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
No linked threadJan 27, 2010
CommitterMake 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.
1bb25580
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
No linked threadJan 27, 2010
CommitterAdd 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.
1d1f425f
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
No linked threadJan 25, 2010
CommitterFix bogus comments.
2d29f5f5
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
No linked threadJan 21, 2010
CommitterFix bogus subdir setting. Again. I must've unfixed it by accident while moving files around.
e8aae273
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
No linked threadJan 20, 2010
CommitterWrite 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.
09b115f7
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
No linked threadJan 20, 2010
CommitterNow 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.
47ce95a7
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
No linked threadJan 20, 2010
CommitterAdd missing "!= NULL", for the sake of consistency.
b3a1ef53
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
No linked threadJan 20, 2010
CommitterAdjust windows makefiles too, now that the walreceiver dynamic module has been renamed.
e31bf1c7
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
No linked threadJan 20, 2010
CommitterAdjust MSVC build script too, now that the walreceiver dynamic module has been renamed.
55d87718
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
No linked threadJan 20, 2010
CommitterRethink 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.
32bc08b1
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
No linked threadJan 20, 2010
CommitterMove 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
3daf3821
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
No linked threadJan 15, 2010
CommitterRemove unused (in non-assertion-enabled build) variable.
d3be71a2
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
No linked threadJan 15, 2010
CommitterIntroduce Streaming Replication.
40f908bd
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
No linked threadJan 15, 2010
CommitterWrite 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().
06f82b29
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
No linked threadJan 04, 2010