- 30 3月, 2011 1 次提交
-
-
由 Heikki Linnakangas 提交于
archive recovery. It's possible to restore an online backup without recovery.conf, by simply copying all the necessary WAL files to pg_xlog. "pg_basebackup -x" does that too. That's the use case where this cross-check is useful. Backpatch to 9.0. We used to do this in earlier versins, but in 9.0 the code was inadvertently changed so that the check is only performed after archive recovery. Fujii Masao.
-
- 24 3月, 2011 1 次提交
-
-
由 Simon Riggs 提交于
Change location LOG message so it works each time we pause, not just for final pause. Ensure that we pause only if we are in Hot Standby and can connect to allow us to run resume function. This change supercedes the code to override parameter recoveryPauseAtTarget to false if not attempting to enter Hot Standby, which is now removed.
-
- 23 3月, 2011 1 次提交
-
-
由 Simon Riggs 提交于
Startup process waited for cleanup lock but when hot_standby = off the pid was not registered, so that the bgwriter would not wake the waiting process as intended.
-
- 21 3月, 2011 1 次提交
-
-
由 Heikki Linnakangas 提交于
ensure that they use different checkpoints as the starting point. We use the checkpoint redo location as a unique identifier for the base backup in the end-of-backup record, and in the backup history file name. Bug spotted by Fujii Masao.
-
- 18 3月, 2011 1 次提交
-
-
由 Robert Haas 提交于
Without this, the startup process goes into a tight loop, consuming 100% of one CPU and failing to respond to interrupts.
-
- 11 3月, 2011 2 次提交
-
-
由 Bruce Momjian 提交于
opposed to O_DSYNC.
-
由 Robert Haas 提交于
Fujii Masao
-
- 08 3月, 2011 2 次提交
-
-
由 Heikki Linnakangas 提交于
than doing it aggressively whenever the tail-XID pointer is advanced, because this way we don't need to do it while holding SerializableXactHashLock. This also fixes bug #5915 spotted by YAMAMOTO Takashi, and removes an obsolete comment spotted by Kevin Grittner.
-
由 Heikki Linnakangas 提交于
periodically rescan the archive for new timelines, while waiting for new WAL segments to arrive. This allows you to set up a standby server that follows the TLI change if another standby server is promoted to master. Before this, you had to restart the standby server to make it notice the new timeline. This patch only scans the archive for TLI changes, it won't follow a TLI change in streaming replication. That is much needed too, but it would be a much bigger patch than I dare to sneak in this late in the release cycle. There was discussion on improving the sanity checking of the WAL segments so that the system would notice more reliably if the new timeline isn't an ancestor of the current one, but that is not included in this patch. Reviewed by Fujii Masao.
-
- 25 2月, 2011 1 次提交
-
-
由 Robert Haas 提交于
Emit a log message when creating a named restore point, and improve documentation for pg_create_restore_point(). Euler Taveira de Oliveira, per suggestions from Thom Brown, with some additional wordsmithing by me.
-
- 17 2月, 2011 1 次提交
-
-
由 Simon Riggs 提交于
Standby optionally sends back information about oldestXmin of queries which is then checked and applied to the WALSender's proc->xmin. GetOldestXmin() is modified slightly to agree with GetSnapshotData(), so that all backends on primary include WALSender within their snapshots. Note this does nothing to change the snapshot xmin on either master or standby. Feedback piggybacks on the standby reply message. vacuum_defer_cleanup_age is no longer used on standby, though parameter still exists on primary, since some use cases still exist. Simon Riggs, review comments from Fujii Masao, Heikki Linnakangas, Robert Haas
-
- 16 2月, 2011 1 次提交
-
-
由 Robert Haas 提交于
Fujii Masao, reviewed by Robert Haas, Stephen Frost, and Magnus Hagander.
-
- 15 2月, 2011 1 次提交
-
-
由 Simon Riggs 提交于
though must not update the last transaction timestamp. Plus comment and message cleanup for recent named restore point. Fujii Masao, minor changes by me
-
- 11 2月, 2011 1 次提交
-
-
由 Heikki Linnakangas 提交于
the standby has written, flushed, and applied the WAL. At the moment, this is for informational purposes only, the values are only shown in pg_stat_replication system view, but in the future they will also be needed for synchronous replication. Extracted from Simon riggs' synchronous replication patch by Robert Haas, with some tweaking by me.
-
- 09 2月, 2011 3 次提交
-
-
由 Magnus Hagander 提交于
Specifying this option makes the server not wait for the xlog to be archived, or emit a warning that it can't, instead leaving the responsibility with the client. This is useful when the log is being streamed using the streaming protocol in parallel with the backup, without having log archiving enabled.
-
由 Simon Riggs 提交于
new recovery.conf parameter recovery_target_name allows PITR to specify named points as recovery targets. Jaime Casanova, reviewed by Euler Taveira de Oliveira, plus minor edits
-
由 Simon Riggs 提交于
Status check functions only. Also, new recovery.conf parameter to pause_at_recovery_target, default on. Simon Riggs, reviewed by Fujii Masao
-
- 08 2月, 2011 1 次提交
-
-
由 Simon Riggs 提交于
If the standby was streaming when trigger file arrives, check also in the archive for additional WAL files. This is a corner case since it is unlikely that we would trigger a failover while the master is still available and sending data to standby, while at the same time running in archive mode and also while the streaming standby has fallen behind archive. Someone would eventually be unlucky; we must plug all gaps however small. Fujii Masao
-
- 03 2月, 2011 1 次提交
-
-
由 Robert Haas 提交于
Prior to 9.0, restartpoints never created, deleted, or recycled WAL files, but now they can. This code makes log_checkpoints treat checkpoints and restartpoints symmetrically. It also adjusts up the documentation of the parameter to mention restartpoints. Fujii Masao. Docs by me, as suggested by Itagaki Takahiro.
-
- 01 2月, 2011 1 次提交
-
-
由 Heikki Linnakangas 提交于
With this patch, pg_basebackup doesn't write a backup_label file in the data directory, so it doesn't interfere with a pg_start/stop_backup() based backup anymore. backup_label is still included in the backup, but it is injected directly into the tar stream. Heikki Linnakangas, reviewed by Fujii Masao and Magnus Hagander.
-
- 23 1月, 2011 1 次提交
-
-
由 Tom Lane 提交于
If wal_buffers is initially set to -1 (which is now the default), it's replaced by 1/32nd of shared_buffers, with a minimum of 8 (the old default) and a maximum of the XLOG segment size. The allowed range for manual settings is still from 4 up to whatever will fit in shared memory. Greg Smith, with implementation correction by me.
-
- 10 1月, 2011 1 次提交
-
-
由 Magnus Hagander 提交于
Move the actual functionality into a separate function that's easier to call internally, and change the SQL-callable function to be a wrapper calling this. Also create a pg_abort_backup() function, only callable internally, that does only the most vital parts of pg_stop_backup(), making it safe(r) to call from error handlers.
-
- 02 1月, 2011 1 次提交
-
-
由 Bruce Momjian 提交于
-
- 29 12月, 2010 2 次提交
-
-
由 Robert Haas 提交于
The contents of an unlogged table are WAL-logged; thus, they are not available on standby servers and are truncated whenever the database system enters recovery. Indexes on unlogged tables are also unlogged. Unlogged GiST indexes are not currently supported.
-
由 Magnus Hagander 提交于
This privilege is required to do Streaming Replication, instead of superuser, making it possible to set up a SR slave that doesn't have write permissions on the master. Superuser privileges do NOT override this check, so in order to use the default superuser account for replication it must be explicitly granted the REPLICATION permissions. This is backwards incompatible change, in the interest of higher default security.
-
- 14 12月, 2010 1 次提交
-
-
由 Robert Haas 提交于
Greg Smith, reviewed by Jeff Janes
-
- 11 12月, 2010 1 次提交
-
-
由 Tom Lane 提交于
Purely cosmetic patch to make our coding standards more consistent --- we were doing symbolic some places and octal other places. This patch fixes all C-coded uses of mkdir, chmod, and umask. There might be some other calls I missed. Inconsistency noted while researching tablespace directory permissions issue.
-
- 07 12月, 2010 1 次提交
-
-
由 Heikki Linnakangas 提交于
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. In the same scenario, when fewer transactions have started so that all the xids fit in KnownAssignedXids despite the first bug, a more serious bug arises. We incorrectly initialize the clog code with the oldest still running transaction, and when we see the WAL record belonging to a transaction with an XID larger than one that committed already before the checkpoint we're recovering from, we zero the clog page containing the already committed transaction, leading to data loss. In hindsight, trying to track xids in the known-assigned-xids array before seeing the running-xacts record was too complicated. To fix that, hold XidGenLock while the running-xacts snapshot is taken and WAL-logged. That ensures that no transaction can begin or end in that gap, so that in recvoery we know that the snapshot contains all transactions running at that point in WAL.
-
- 06 12月, 2010 1 次提交
-
-
由 Heikki Linnakangas 提交于
-
- 03 12月, 2010 1 次提交
-
-
由 Robert Haas 提交于
This eliminates some crufty, special-purpose code and, as a non-trivial side benefit, allows recovery.conf parameters to be unquoted. Dimitri Fontaine, with review and cleanup by Alvaro Herrera, Itagaki Takahiro, and me.
-
- 24 11月, 2010 1 次提交
-
-
由 Peter Eisentraut 提交于
-
- 12 11月, 2010 1 次提交
-
-
由 Heikki Linnakangas 提交于
location read from backup label file can be found: wasShutdown was set incorrectly when a backup label file was found. Jeff Davis, with a little tweaking by me.
-
- 10 11月, 2010 1 次提交
-
-
由 Robert Haas 提交于
Fujii Masao, with a little wordsmithing by me.
-
- 02 11月, 2010 1 次提交
-
-
由 Heikki Linnakangas 提交于
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. Back-patch to 9.0. Since this only affects bootstrapping, it makes no difference to existing installations. We don't need to worry about the bug in existing installations, because if you've managed to get past the initial base backup already, you won't hit the bug in the future either.
-
- 01 11月, 2010 1 次提交
-
-
由 Heikki Linnakangas 提交于
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. Per report from Matt Chesler, also reproduced by Greg Smith.
-
- 27 10月, 2010 1 次提交
-
-
由 Heikki Linnakangas 提交于
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. Report, analysis and patch by Jeff Davis, with small changes by me.
-
- 15 10月, 2010 2 次提交
-
-
由 Simon Riggs 提交于
A tidy up for recently committed changes to startup latch. Fujii Masao
-
由 Simon Riggs 提交于
Fujii Masao
-
- 21 9月, 2010 1 次提交
-
-
由 Magnus Hagander 提交于
-
- 15 9月, 2010 1 次提交
-
-
由 Heikki Linnakangas 提交于
-