On Mon, Jul 21, 2014 at 9:51 AM, Andres Freund <and...@2ndquadrant.com> wrote: > > On 2014-07-16 20:45:15 -0300, Fabrízio de Royes Mello wrote: > > > The rewrite will read in the 'old' contents - but because it's done > > > after the pg_class.relpersistence is changed they'll all not be marked > > > as BM_PERMANENT in memory. Then the ALTER TABLE is rolled back, > > > including the relpersistence setting. Which will unfortunately leave > > > pages with the wrong persistency setting in memory, right? > > > > > > > That means should I "FlushRelationBuffers(rel)" before change the > > relpersistence? > > Did my explanation clarify the problem + possible solution sufficiently? >
Yes, your explanation was enough. I didn't had time to working on it yet. But I hope working on it today or tomorrow at least. Regards, -- Fabrízio de Royes Mello Consultoria/Coaching PostgreSQL >> Timbira: http://www.timbira.com.br >> Blog sobre TI: http://fabriziomello.blogspot.com >> Perfil Linkedin: http://br.linkedin.com/in/fabriziomello >> Twitter: http://twitter.com/fabriziomello