From: | Amit Langote <Langote_Amit_f8(at)lab(dot)ntt(dot)co(dot)jp> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | Amit Langote <amitlangote09(at)gmail(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: sketchy partcollation handling |
Date: | 2017-06-07 00:30:14 |
Message-ID: | 6f36ef92-0e83-e83a-c0df-c589371e70ff@lab.ntt.co.jp |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 2017/06/07 1:08, Tom Lane wrote:
> Robert Haas <robertmhaas(at)gmail(dot)com> writes:
>> On Sun, Jun 4, 2017 at 10:18 PM, Amit Langote
>> <Langote_Amit_f8(at)lab(dot)ntt(dot)co(dot)jp> wrote:
>>> BTW, the places which check whether the collation to store a dependency
>>> for is the database default collation don't need to do that. I mean the
>>> following code block in all of these places:
>>>
>>> /* The default collation is pinned, so don't bother recording it */
>>> if (OidIsValid(attr->attcollation) &&
>>> attr->attcollation != DEFAULT_COLLATION_OID)
>
>> We could go change them all, but I guess I don't particularly see the point.
>
> That's an intentional measure to save the catalog activity involved in
> finding out that the default collation is pinned. It's not *necessary*,
> sure, but it's a useful and easy optimization.
I see. Thanks for explaining.
Regards,
Amit
From | Date | Subject | |
---|---|---|---|
Next Message | Amit Langote | 2017-06-07 00:30:46 | Re: sketchy partcollation handling |
Previous Message | Michael Paquier | 2017-06-07 00:20:56 | Coverage improvements of src/bin/pg_basebackup and pg_receivewal --endpos |