Re: [GSoC2014] Patch ALTER TABLE ... SET LOGGED

From: Thom Brown <thom(at)linux(dot)com>
To: Fabrízio Mello <fabriziomello(at)gmail(dot)com>
Cc: Christoph Berg <cb(at)df7cb(dot)de>, Andres Freund <andres(at)2ndquadrant(dot)com>, Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org>, Stephen Frost <sfrost(at)snowman(dot)net>
Subject: Re: [GSoC2014] Patch ALTER TABLE ... SET LOGGED
Date: 2014-08-20 15:35:18
Message-ID: CAA-aLv7TeF8iM=7U7TsgL4S5Jh1a+shQ_Ny7gOrZc_g_YJ7uKA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 17 August 2014 21:45, Fabrízio de Royes Mello <fabriziomello(at)gmail(dot)com>
wrote:

>
> On Mon, Jul 28, 2014 at 2:24 PM, Fabrízio de Royes Mello <
> fabriziomello(at)gmail(dot)com> wrote:
> >
> >
> > On Mon, Jul 28, 2014 at 1:41 PM, Christoph Berg <cb(at)df7cb(dot)de> wrote:
> > >
> > > Re: Fabrízio de Royes Mello 2014-07-28
> <CAFcNs+pctx4Q2UYsLOvVFWaznO3U0XhPpkMx5DRhR=Jw8w3tYg(at)mail(dot)gmail(dot)com>
> > > > There are something that should I do on this patch yet?
> > >
> > > I haven't got around to have a look at the newest incarnation yet, but
> > > I plan to do that soonish. (Of course that shouldn't stop others from
> > > doing that as well if they wish.)
> > >
> >
> > Thanks!
> >
>
> Updated version.
>

Hi Fabrizio,

+ This form changes the table persistence type from unlogged to
permanent or
+ from unlogged to permanent (see <xref
linkend="SQL-CREATETABLE-UNLOGGED">).

Shouldn't this read "unlogged to permanent or from permanent to unlogged"?

"ERROR: table test is not permanent"

Perhaps this would be better as "table test is unlogged" as "permanent"
doesn't match the term used in the DDL syntax.

Gave the patch a quick test-drive on a replicated instance, and it appears
to operate as described.
--
Thom

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Mayeul Kauffmann 2014-08-20 15:39:08 Patching for increasing the number of columns
Previous Message Tom Lane 2014-08-20 15:29:55 Re: jsonb format is pessimal for toast compression