Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > Also, how do I find the current xlog segment position. Is it one of
> > these fields shown by pg_controldata?
> "latest checkpoint location" should do.
> BTW, if your script is relying on pg_resetxlog to be available, best to
> ensure that it's there before you do anything irreversible ...
OK, here is code to set the checkpoint log id and offset using a new -l
flag. It also now displays the checkpoint location with -n.
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
In response to
pgsql-hackers by date
|Next:||From: Bruce Momjian||Date: 2002-01-10 20:08:26|
|Subject: Re: 7.1 vs. 7.2 on AIX 5L|
|Previous:||From: Bruce Momjian||Date: 2002-01-10 19:40:25|
|Subject: Re: again on index usage|
pgsql-patches by date
|Next:||From: Greg Sabino Mullane||Date: 2002-01-10 21:05:10|
|Subject: doc/src/FAQ/FAQ.html changes|
|Previous:||From: Bruce Momjian||Date: 2002-01-10 19:06:55|
|Subject: Re: [HACKERS] pg_upgrade|