From: | Michael Paquier <michael(dot)paquier(at)gmail(dot)com> |
---|---|
To: | Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | Kyotaro HORIGUCHI <horiguchi(dot)kyotaro(at)lab(dot)ntt(dot)co(dot)jp>, Thom Brown <thom(at)linux(dot)com>, Andres Freund <andres(at)2ndquadrant(dot)com>, Fabrízio Mello <fabriziomello(at)gmail(dot)com>, PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Error with index on unlogged table |
Date: | 2015-12-11 00:31:29 |
Message-ID: | CAB7nPqS_cpPHTkP0RZZen_Qzo9nJF_8DH7Nw3SEm9jR6mjTpqw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Fri, Dec 11, 2015 at 1:57 AM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
> On Mon, Nov 30, 2015 at 9:53 PM, Michael Paquier
> <michael(dot)paquier(at)gmail(dot)com> wrote:
>>> I feel quite uncomfortable that it solves the problem from a kind
>>> of nature of unlogged object by arbitrary flagging which is not
>>> fully corresponds to the nature. If we can deduce the necessity
>>> of fsync from some nature, it would be preferable.
>>
>> INIT_FORKNUM is not something only related to unlogged relations,
>> indexes use them as well.
>
> Eh, what?
>
> Indexes use them if they are indexes on unlogged tables, but they'd
> better not use them in any other situation. Otherwise bad things are
> going to happen.
Yes, this was badly formulated, and caused by my lack of knowledge of
unlogged tables, I think I got it now :) Why don't we actually put
some asserts in those code paths to say that INIT_FORKNUM specific
code can just be used for unlogged relations? Just a thought...
--
Michael
From | Date | Subject | |
---|---|---|---|
Next Message | Amit Langote | 2015-12-11 00:41:04 | Re: [PROPOSAL] VACUUM Progress Checker. |
Previous Message | Jim Nasby | 2015-12-11 00:25:56 | array_remove(anyarray, anyarray) |