|
7 | 7 | * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group |
8 | 8 | * Portions Copyright (c) 1994, Regents of the University of California |
9 | 9 | * |
10 | | - * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.283 2007/09/2901:36:10 tgl Exp $ |
| 10 | + * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.284 2007/09/2918:32:56 tgl Exp $ |
11 | 11 | * |
12 | 12 | *------------------------------------------------------------------------- |
13 | 13 | */ |
|
48 | 48 | #include"storage/spin.h" |
49 | 49 | #include"utils/builtins.h" |
50 | 50 | #include"utils/pg_locale.h" |
51 | | - |
| 51 | +#include"utils/ps_status.h" |
52 | 52 |
|
53 | 53 |
|
54 | 54 | /* File path names (all relative to $PGDATA) */ |
@@ -2276,6 +2276,7 @@ XLogFileRead(uint32 log, uint32 seg, int emode) |
2276 | 2276 | { |
2277 | 2277 | charpath[MAXPGPATH]; |
2278 | 2278 | charxlogfname[MAXFNAMELEN]; |
| 2279 | +charactivitymsg[MAXFNAMELEN+16]; |
2279 | 2280 | ListCell*cell; |
2280 | 2281 | intfd; |
2281 | 2282 |
|
@@ -2311,6 +2312,12 @@ XLogFileRead(uint32 log, uint32 seg, int emode) |
2311 | 2312 | { |
2312 | 2313 | /* Success! */ |
2313 | 2314 | curFileTLI=tli; |
| 2315 | + |
| 2316 | +/* Report recovery progress in PS display */ |
| 2317 | +strcpy(activitymsg,"recovering "); |
| 2318 | +XLogFileName(activitymsg+11,tli,log,seg); |
| 2319 | +set_ps_display(activitymsg, false); |
| 2320 | + |
2314 | 2321 | returnfd; |
2315 | 2322 | } |
2316 | 2323 | if (errno!=ENOENT)/* unexpected failure? */ |
|