- 19 4月, 2010 4 次提交
-
-
由 Tom Lane 提交于
Per Alex Hunsaker
-
由 Simon Riggs 提交于
Now doesn't report it is waiting until it actually is waiting, plus message doesn't appear until at least 5 seconds wait, so we avoid reporting the wait before we've given the archiver a reasonable time to wake up and archive the file we just created earlier in the function. Also add new unconditional message to confirm safe completion. Now a normal, healthy execution does not report waiting at all, just safe completion.
-
由 Simon Riggs 提交于
-
由 Simon Riggs 提交于
through normal backends. Makes code clearer also, since we avoid various Assert()s. Performance of snapshots taken during recovery no longer depends upon number of read-only backends.
-
- 17 4月, 2010 1 次提交
-
-
由 Robert Haas 提交于
-
- 16 4月, 2010 7 次提交
-
-
由 Heikki Linnakangas 提交于
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.
-
由 Heikki Linnakangas 提交于
which just indicates that we've reached the end of valid WAL found in the standby.
-
由 Bruce Momjian 提交于
-
由 Peter Eisentraut 提交于
-
由 Peter Eisentraut 提交于
backpatched to 8.1, where this first appeared
-
由 Tom Lane 提交于
identify the system time zone setting. Per recent discussion.
-
由 Heikki Linnakangas 提交于
-
- 15 4月, 2010 6 次提交
-
-
由 Magnus Hagander 提交于
it with the list we have in pgtz.c, showing any differences.
-
由 Peter Eisentraut 提交于
-
由 Bruce Momjian 提交于
-
由 Tom Lane 提交于
even when the expression is a query that returns no rows. So far as I can tell, the only caller that actually fails when a garbage OID is returned is exec_stmt_case(), which is new in 8.4 --- in all other cases, we might make a useless trip through casting logic, but we won't fail since the isnull flag will be set. Hence, backpatch only to 8.4, just in case there are apps out there that aren't expecting an error to be thrown if the query returns more or less than one column. (Which seems unlikely, since the error would be thrown if the query ever did return a row; but it's possible there's some never-exercised code out there.) Per report from Mario Splivalo.
-
由 Tom Lane 提交于
relcache reload works. In the patched code, a relcache entry in process of being rebuilt doesn't get unhooked from the relcache hash table; which means that if a cache flush occurs due to sinval queue overrun while we're rebuilding it, the entry could get blown away by RelationCacheInvalidate, resulting in crash or misbehavior. Fix by ensuring that an entry being rebuilt has positive refcount, so it won't be seen as a target for removal if a cache flush occurs. (This will mean that the entry gets rebuilt twice in such a scenario, but that's okay.) It appears that the problem can only arise within a transaction that has previously reassigned the relfilenode of a pre-existing table, via TRUNCATE or a similar operation. Per bug #5412 from Rusty Conover. Back-patch to 8.2, same as the patch that introduced the problem. I think that the failure can't actually occur in 8.2, since it lacks the rd_newRelfilenodeSubid optimization, but let's make it work like the later branches anyway. Patch by Heikki, slightly editorialized on by me.
-
由 Robert Haas 提交于
-
- 14 4月, 2010 2 次提交
-
-
由 Simon Riggs 提交于
-
由 Bruce Momjian 提交于
-
- 13 4月, 2010 6 次提交
-
-
由 Heikki Linnakangas 提交于
Patch by Simon Riggs & me
-
由 Bruce Momjian 提交于
-
由 Magnus Hagander 提交于
Fujii Masao
-
由 Magnus Hagander 提交于
shared library with the disconnect function in it. Fixes segmentation fault reported by Jeff Davis. Fujii Masao
-
由 Bruce Momjian 提交于
users look at the referenced section for examples, per idea from Greg Smith.
-
由 Bruce Momjian 提交于
archiving example, per suggestion from Greg Smith.
-
- 12 4月, 2010 4 次提交
-
-
由 Heikki Linnakangas 提交于
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.
-
由 Heikki Linnakangas 提交于
the calculation, not the end pointer, as pointed out by Fujii Masao.
-
由 Heikki Linnakangas 提交于
standby_keep_segments.
-
由 Heikki Linnakangas 提交于
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.
-
- 09 4月, 2010 3 次提交
-
-
由 Magnus Hagander 提交于
and indentation styles.
-
由 Magnus Hagander 提交于
-
由 Magnus Hagander 提交于
to one that's up to date with Windows 2003R2.
-
- 08 4月, 2010 3 次提交
-
-
由 Magnus Hagander 提交于
Windows timezone name where the information in the registry is incomplete, instead of aborting. This fixes cases when the registry information is incomplete for a timezone that is alphabetically before the one that is in use. Per report from Alexander Forschner
-
由 Robert Haas 提交于
At present, killing the startup process does not release any locks it holds, so we must wait to stop the startup and walreceiver processes until all read-only backends have exited. Without this patch, the startup and walreceiver processes never exit, so the server gets permanently stuck in a half-shutdown state. Fujii Masao, with review, docs, and comment adjustments by me.
-
由 Tom Lane 提交于
rather than only sort-of working as the previous attempt had left it. Clean up some unnecessary differences between the way these were coded and the way the YYYY case was coded. Update the regression test cases that proved that it wasn't working.
-
- 07 4月, 2010 4 次提交
-
-
由 Heikki Linnakangas 提交于
also makes the parsing a little bit stricter, rejecting garbage after the parameter value and values with missing ending quotes, for example.
-
由 Heikki Linnakangas 提交于
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.
-
由 Itagaki Takahiro 提交于
-
由 Itagaki Takahiro 提交于
and use cygwin_conv_to_full_win32_path() in older versions.
-