Re: Set new system identifier using pg_resetxlog
От | Andres Freund |
---|---|
Тема | Re: Set new system identifier using pg_resetxlog |
Дата | |
Msg-id | 20140618180306.GV3115@awork2.anarazel.de обсуждение исходный текст |
Ответ на | Re: Set new system identifier using pg_resetxlog (Josh Berkus <josh@agliodbs.com>) |
Список | pgsql-hackers |
On 2014-06-18 10:59:59 -0700, Josh Berkus wrote: > On 06/18/2014 10:48 AM, Abhijit Menon-Sen wrote: > > At 2014-06-18 10:44:56 -0700, josh@agliodbs.com wrote: > >> > >> I'm unclear on why we would overload pg_resetxlog for this. > > > > Because pg_resetxlog already does something very similar, so the patch > > is small. If it were independent, it would have to copy quite some code > > from pg_resetxlog. > > Aha. In that case, it seems like it's time to rename pg_resetxlog, if > it does a bunch of things that aren't resetting the xlog. Well, all those actually do write to the xlog (to write a new checkpoint, containing the updated control file). Since pg_resetxlog has done all this pretty much since forever renaming it now seems to be a big hassle for users for pretty much no benefit? This isn't a tool the average user should ever touch. Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services
В списке pgsql-hackers по дате отправления: