On 2014-04-01 20:39:35 +0300, Heikki Linnakangas wrote: > On 03/07/2014 05:36 AM, Tom Lane wrote: > >=?ISO-8859-1?Q?Fabr=EDzio_de_Royes_Mello?= <fabriziome...@gmail.com> writes: > >>Do you think is difficult to implement "ALTER TABLE ... SET UNLOGGED" too? > >>Thinking in a scope of one GSoC, of course. > > > >I think it's basically the same thing. You might hope to optimize it; > >but you have to create (rather than remove) an init fork, and there's > >no way to do that in exact sync with the commit. > > You just have to include that information with the commit WAL record, no?
Sure, it's possible to do that. But that seems like complicating generic paths more than I'd like for a minor feature. Especially as the unlinking of the files would need to happen somewhere in RecordTransactionCommit(). After the XLogFlush(), but before unsetting MyPgXact->delayChkpt. That's a crit section, right? Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers