Some message fixes

Started by Kyotaro Horiguchiover 8 years ago3 messageshackers
Jump to latest
#1Kyotaro Horiguchi
horiguchi.kyotaro@lab.ntt.co.jp

Hello.

While translating message catalogs, I found that some messages
listing object names are missing partitioned tables/indices.
And GUC comment for autovacuum_work_mem has a typo.

1. some messages are missing partitioned table/index

The first attached. I'm not sure how the orering ought to be
but I arranged them in mainly in the appearance order in if()
conditions, or the order of case label in switch()
construct. One exception is ATExecChangeOwner, in which the
order is the others regardless of the case label order just
above.

This is backpatchable to 10 but 10 doesn't have partitioned
index so needs a different fix (Second attached).

# But, I'm not sure if the list may be that long...

2. GUC comment for autovacuum_work_mem has a typo, "max num of
parallel workers *than* can be..". (Third attached)

regards,

--
Kyotaro Horiguchi
NTT Open Source Software Center

Attachments:

fix_msgs_partition.patchtext/x-patch; charset=us-asciiDownload+12-12
fix_msgs_partition_10.patchtext/x-patch; charset=us-asciiDownload+12-12
fix_desc_guc_autovac_work_mem.patchtext/x-patch; charset=us-asciiDownload+1-1
#2Alvaro Herrera
alvherre@2ndquadrant.com
In reply to: Kyotaro Horiguchi (#1)
Re: Some message fixes

Kyotaro HORIGUCHI wrote:

1. some messages are missing partitioned table/index

The first attached. I'm not sure how the orering ought to be
but I arranged them in mainly in the appearance order in if()
conditions, or the order of case label in switch()
construct. One exception is ATExecChangeOwner, in which the
order is the others regardless of the case label order just
above.

This is backpatchable to 10 but 10 doesn't have partitioned
index so needs a different fix (Second attached).

# But, I'm not sure if the list may be that long...

I *think* the idea here is that a partitioned table is a table, so there
is no need to say "foo is not a table or partitioned table". We only
mention partitioned tables when we want to make a distinction between
those that are partitioned and those that aren't.

Same with indexes.

2. GUC comment for autovacuum_work_mem has a typo, "max num of
parallel workers *than* can be..". (Third attached)

Yeah, pushed, though it's parallel_max_workers not autovacuum_work_mem.

--
�lvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

#3Kyotaro Horiguchi
horiguchi.kyotaro@lab.ntt.co.jp
In reply to: Alvaro Herrera (#2)
Re: Some message fixes

At Wed, 7 Mar 2018 07:10:34 -0300, Alvaro Herrera <alvherre@2ndquadrant.com> wrote in <20180307101034.l7z7kqwqfkjg6c2p@alvherre.pgsql>

Kyotaro HORIGUCHI wrote:

1. some messages are missing partitioned table/index

..

I *think* the idea here is that a partitioned table is a table, so there
is no need to say "foo is not a table or partitioned table". We only
mention partitioned tables when we want to make a distinction between
those that are partitioned and those that aren't.

I agree with the direction and code seems following that. I
should have looked wider.

Thanks.

2. GUC comment for autovacuum_work_mem has a typo, "max num of
parallel workers *than* can be..". (Third attached)

Yeah, pushed, though it's parallel_max_workers not autovacuum_work_mem.

Ugg. Inconsistency within a line.. My fingers may have decided to
do somewhat different from my brain.

Anyway, thank you for commiting.

regards,

--
Kyotaro Horiguchi
NTT Open Source Software Center