[PATCH]Add tab completion for foreigh table

Started by tanghy.fnst@fujitsu.comalmost 5 years ago3 messageshackers
Jump to latest
#1tanghy.fnst@fujitsu.com
tanghy.fnst@fujitsu.com

Hi

Attached a patch to improve the tab completion for foreigh table.

Also modified some DOC description of ALTER TABLE at [1]https://www.postgresql.org/docs/devel/sql-altertable.html in according with CREATE INDEX at [2]https://www.postgresql.org/docs/devel/sql-createindex.html.

In [1]https://www.postgresql.org/docs/devel/sql-altertable.html, we use "ALTER INDEX ATTACH PARTITION"
In [2]https://www.postgresql.org/docs/devel/sql-createindex.html, we use "ALTER INDEX ... ATTACH PARTITION"

I think the format in [2]https://www.postgresql.org/docs/devel/sql-createindex.html is better.

[1]: https://www.postgresql.org/docs/devel/sql-altertable.html
[2]: https://www.postgresql.org/docs/devel/sql-createindex.html

Regards,
Tang

Attachments:

v1-0001-add-tab-completion-for-PARTITION-OF-when-creating.patchapplication/octet-stream; name=v1-0001-add-tab-completion-for-PARTITION-OF-when-creating.patchDownload+6-3
#2Fujii Masao
masao.fujii@oss.nttdata.com
In reply to: tanghy.fnst@fujitsu.com (#1)
Re: [PATCH]Add tab completion for foreigh table

On 2022/01/11 21:43, tanghy.fnst@fujitsu.com wrote:

Hi

Attached a patch to improve the tab completion for foreigh table.

Thanks!

Isn't it better to tab-complete not only "PARTITION OF" but also "(" for CREATE FOREIGN TABLE?

Also modified some DOC description of ALTER TABLE at [1] in according with CREATE INDEX at [2].

In [1], we use "ALTER INDEX ATTACH PARTITION"
In [2], we use "ALTER INDEX ... ATTACH PARTITION"

I think the format in [2] is better.

Agreed.

IMO it's better to make the docs changes in separate patch because they are not directly related to the improvement of tab-completion.

Regards,

--
Fujii Masao
Advanced Computing Technology Center
Research and Development Headquarters
NTT DATA CORPORATION

#3tanghy.fnst@fujitsu.com
tanghy.fnst@fujitsu.com
In reply to: Fujii Masao (#2)
RE: [PATCH]Add tab completion for foreigh table

On Thursday, January 13, 2022 12:38 PM, Fujii Masao <masao.fujii@oss.nttdata.com> wrote:

Isn't it better to tab-complete not only "PARTITION OF" but also "(" for CREATE
FOREIGN TABLE?

Thanks for your review. Left bracket completion added.

IMO it's better to make the docs changes in separate patch because they are not
directly related to the improvement of tab-completion.

Agreed. The former one patch was divided into two.
0001 patch, added tab completion for foreign table.
0002 patch, modified some doc description.

Regards,
Tang

Attachments:

v2-0002-Modify-doc-description-for-ALTER-TABLE-in-accordi.patchapplication/octet-stream; name=v2-0002-Modify-doc-description-for-ALTER-TABLE-in-accordi.patchDownload+2-3
v-0001-add-tab-completion-for-PARTITION-OF-when-creating.patchapplication/octet-stream; name=v-0001-add-tab-completion-for-PARTITION-OF-when-creating.patchDownload+6-3