Re: GSoC proposal - "make an unlogged table logged"

From: Fabrízio de Royes Mello <fabriziomello(at)gmail(dot)com>
To: Andres Freund <andres(at)2ndquadrant(dot)com>
Cc: Stephen Frost <sfrost(at)snowman(dot)net>, Robert Haas <robertmhaas(at)gmail(dot)com>, Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: GSoC proposal - "make an unlogged table logged"
Date: 2014-03-04 04:38:04
Message-ID: CAFcNs+qWPRJ82vR9BjzR=MX2aCaUrcCsimqJeixVzkXvrRerqg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Mar 3, 2014 at 2:42 PM, Andres Freund <andres(at)2ndquadrant(dot)com>
wrote:
>
> On 2014-03-03 12:08:26 -0500, Stephen Frost wrote:
> > * Robert Haas (robertmhaas(at)gmail(dot)com) wrote:
> > > On Mon, Mar 3, 2014 at 11:28 AM, Fabrízio de Royes Mello
> > > <fabriziomello(at)gmail(dot)com> wrote:
> > > > Is the TODO item "make an unlogged table logged" [1] a good GSoC
project?
> > >
> > > I'm pretty sure we found some problems in that design that we couldn't
> > > figure out how to solve. I don't have a pointer to the relevant
> > > -hackers discussion off-hand, but I think there was one.
> >
> > ISTR the discussion going something along the lines of "we'd have to WAL
> > log the entire table to do that, and if we have to do that, what's the
> > point?".
>
> I don't see that as a particularly problematic problem. The primary
> reason to want to convert a unlogged to a logged table probably is that
> it's easier to do so than to recreate the table + dependencies. Also the
> overhead of logging full pages will be noticeably smaller than the
> overhead of adding all rows individually, even if using
> heap_multi_insert().
>

Do you know some similar in the source code?

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2014-03-04 04:59:02 Re: jsonb and nested hstore
Previous Message Fabrízio de Royes Mello 2014-03-04 04:36:30 Re: GSoC proposal - "make an unlogged table logged"