[PATCH] Improve tab completion for ALTER TABLE on identity columns

Started by Dagfinn Ilmari Mannsåkerover 3 years ago6 messageshackers
Jump to latest

Hi Hackers,

I noticed that psql has no tab completion around identity columns in
ALTER TABLE, so here's some patches for that.

In passing, I also added completion for ALTER SEQUECNE … START, which was
missing for some reason.

- ilmari

Attachments:

0001-psql-Add-tab-completion-for-ALTER-SEQUENCE-START.patchtext/x-diffDownload+1-2
0002-psql-Add-tab-completion-for-ALTER-COLUMN-SET-GENERAT.patchtext/x-diffDownload+5-2
0003-psql-Add-tab-completion-for-ALTER-COLUMN-SET-sequenc.patchtext/x-diffDownload+7-2
0004-psql-Add-tab-completion-for-ALTER-COLUMN-ADD-GENERAT.patchtext/x-diffDownload+14-1
In reply to: Dagfinn Ilmari Mannsåker (#1)
Re: [PATCH] Improve tab completion for ALTER TABLE on identity columns

Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> writes:

Hi Hackers,

I noticed that psql has no tab completion around identity columns in
ALTER TABLE, so here's some patches for that.

Added to the next commit fest:

https://commitfest.postgresql.org/40/3947/

- ilmari

#3Matheus Alcantara
mths.dev@pm.me
In reply to: Dagfinn Ilmari Mannsåker (#1)
Re: [PATCH] Improve tab completion for ALTER TABLE on identity columns

Hi Hackers,

I noticed that psql has no tab completion around identity columns in
ALTER TABLE, so here's some patches for that.

In passing, I also added completion for ALTER SEQUECNE … START, which was
missing for some reason.

- ilmari

Hi ilmari

I've tested all 4 of your patches, and all of them seem to work as expected.

This is my first time reviewing a patch, so let's see if more experience
hackers has anything more to say about these patches, but at first they
seem correct to me.

--
Matheus Alcantara

#4Peter Eisentraut
peter_e@gmx.net
In reply to: Dagfinn Ilmari Mannsåker (#2)
Re: [PATCH] Improve tab completion for ALTER TABLE on identity columns

On 14.10.22 16:31, Dagfinn Ilmari Mannsåker wrote:

I noticed that psql has no tab completion around identity columns in
ALTER TABLE, so here's some patches for that.

Added to the next commit fest:

https://commitfest.postgresql.org/40/3947/

Committed.

#5Peter Eisentraut
peter_e@gmx.net
In reply to: Matheus Alcantara (#3)
Re: [PATCH] Improve tab completion for ALTER TABLE on identity columns

On 26.10.22 00:45, Matheus Alcantara wrote:

I noticed that psql has no tab completion around identity columns in
ALTER TABLE, so here's some patches for that.

In passing, I also added completion for ALTER SEQUECNE … START, which was
missing for some reason.

I've tested all 4 of your patches, and all of them seem to work as expected.

This is my first time reviewing a patch, so let's see if more experience
hackers has anything more to say about these patches, but at first they
seem correct to me.

This was sensible for a first review. Thanks for you help.

In reply to: Peter Eisentraut (#4)
Re: [PATCH] Improve tab completion for ALTER TABLE on identity columns

Peter Eisentraut <peter.eisentraut@enterprisedb.com> writes:

On 14.10.22 16:31, Dagfinn Ilmari Mannsåker wrote:

I noticed that psql has no tab completion around identity columns in
ALTER TABLE, so here's some patches for that.

Added to the next commit fest:
https://commitfest.postgresql.org/40/3947/

Committed.

Thanks!

- ilmari