Re: initdb -S and tablespaces
От | Alvaro Herrera |
---|---|
Тема | Re: initdb -S and tablespaces |
Дата | |
Msg-id | 20150430224414.GA4369@alvh.no-ip.org обсуждение исходный текст |
Ответ на | Re: initdb -S and tablespaces (Robert Haas <robertmhaas@gmail.com>) |
Ответы |
Re: initdb -S and tablespaces
|
Список | pgsql-hackers |
Robert Haas wrote: > On Thu, Apr 30, 2015 at 6:18 PM, Alvaro Herrera > <alvherre@2ndquadrant.com> wrote: > >> Also, it seems awfully unfortunate to me that we're duplicating a > >> whole pile of code into xlog.c here. Maybe there's no way to avoid > >> the code duplication, but pre_sync_fname() seems like it'd more > >> naturally go in fd.c than here. I dunno where walkdir should go, but > >> again, not in xlog.c. > > > > Hm, there's an interest in backpatching this as a bugfix, if I > > understand correctly; hence the duplicated code. We could remove the > > duplicity later with a refactoring patch in master only. > > That seems pretty silly. If we going to add pre_sync_fname() to every > branch, we should add it to the same (correct) file in all of them, > not put it in xlog.c in the back-branches and fd.c in master. Ah, so that's not the duplicate code that I was remembering -- I think it's walkdir() or something like that, which is in initdb IIRC. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
В списке pgsql-hackers по дате отправления: