Re: [GSoC2014] Patch ALTER TABLE ... SET LOGGED
От | Michael Paquier |
---|---|
Тема | Re: [GSoC2014] Patch ALTER TABLE ... SET LOGGED |
Дата | |
Msg-id | CAB7nPqTmT7Mr09oP_1KEKnvQp5hP_B8_O_L+nvvX5dCaUT2c+Q@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: [GSoC2014] Patch ALTER TABLE ... SET LOGGED (Christian Ullrich <chris@chrullrich.net>) |
Ответы |
Re: [GSoC2014] Patch ALTER TABLE ... SET LOGGED
|
Список | pgsql-hackers |
On Mon, Nov 17, 2014 at 5:56 AM, Christian Ullrich <chris@chrullrich.net> wrote: > * Alvaro Herrera wrote: > >> Michael Paquier wrote: >> >>> Btw, perhaps this diff should be pushed as a different patch as this is a >>> rather different thing: >>> - if (heapRelation->rd_rel->relpersistence == >>> RELPERSISTENCE_UNLOGGED >>> && >>> + if (indexRelation->rd_rel->relpersistence == >>> RELPERSISTENCE_UNLOGGED && >>> !smgrexists(indexRelation->rd_smgr, INIT_FORKNUM) >>> As this is a correctness fix, it does not seem necessary to back-patch >>> it: >>> the parent relation always has the same persistence as its indexes. >> >> >> There was an argument for doing it this way that only applies if this >> patch went in, but I can't remember now what it was. >> >> Anyway I pushed the patch after some slight additional changes. Thanks! > > > The buildfarm says -DCLOBBER_CACHE_ALWAYS does not like this patch. The complaint comes from jaguarundi, like here: http://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=jaguarundi&dt=2014-11-16%2015%3A33%3A23 Adding a new parameter to RelationSetNewRelFile As Tom mentioned, adding a new parameter to set the persistence through RelationSetNewRelfilenode works. Patch, actually tested with CLOBBER_CACHE_ALWAYS, attached. http://www.postgresql.org/message-id/27238.1416073917@sss.pgh.pa.us Regards, -- Michael
Вложения
В списке pgsql-hackers по дате отправления: