Tab completion for ATTACH PARTITION

From: bt23nguyent <bt23nguyent(at)oss(dot)nttdata(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Tab completion for ATTACH PARTITION
Date: 2023-09-13 01:18:46
Message-ID: d8af7ab4c4a40609f97a9d38e5735927@oss.nttdata.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

Currently, the psql's tab completion feature does not support properly
for ATTACH PARTITION. When <TAB> key is typed after "ALTER TABLE
<table_name> ATTACH PARTITION ", all possible table names should be
displayed, however, foreign table names are not displayed. So I created
a patch that addresses this issue by ensuring that psql displays not
only normal table names but also foreign table names in this case.

Any kind of feedback is appreciated.

Best,
Tung Nguyen

Attachment Content-Type Size
v1-0001-Tab-completion-for-ATTACH-PARTITION.patch text/x-diff 5.2 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2023-09-13 01:20:23 Re: Make psql's qeury canceling test simple by using signal() routine of IPC::Run
Previous Message Michael Paquier 2023-09-13 01:16:45 Re: Avoid a possible null pointer (src/backend/utils/adt/pg_locale.c)