Bogus tab completion tweak for UPDATE ... SET ... =

Started by Thomas Munroover 9 years ago2 messageshackers
Beta feature

Hackorum builds and tests every patch posted to the lists, not only commitfest submissions. This is Hackorum's own CI rather than the PostgreSQL project's, and it is still under testing - please report anything that looks wrong.

won't retrysuccessCI history

You can run a PostgreSQL built from this patch straight from Docker, with no checkout and no build:

docker run --rm -p 5432:5432 ghcr.io/hackorum-dev/postgres-patch:t36240
psql -h localhost -U postgres

Built from patchset v1 (message #1), July 28, 2026 at 07:56 AM.

Every patchset is also pushed to a branch of our PostgreSQL fork, so you can check out the same tree CI built. Without a PostgreSQL checkout:

git clone --branch t36240_1 https://github.com/hackorum-dev/postgres.git

In a checkout you already have, add the fork once:

git remote add hackorum https://github.com/hackorum-dev/postgres.git

then, for this patchset and every later one:

git fetch hackorum t36240_1 && git checkout t36240_1

Patchset v1 (message #1) is on t36240_1

Jump to latest
#1Thomas Munro
thomas.munro@gmail.com

Hi,

Even though the following is coincidentally meaningful, I don't think
it was intentional or is useful:

postgres=# update foo set x = DEFAULT

Shouldn't that completion should be suppressed, like in the attached?

--
Thomas Munro
http://www.enterprisedb.com

Attachments:

t36240_1
fix-update-set-completion.patchapplication/octet-stream; name=fix-update-set-completion.patchDownload+2-1
#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Thomas Munro (#1)
Re: Bogus tab completion tweak for UPDATE ... SET ... =

Thomas Munro <thomas.munro@enterprisedb.com> writes:

Even though the following is coincidentally meaningful, I don't think
it was intentional or is useful:

postgres=# update foo set x = DEFAULT

Uh, seems perfectly sane to me. Why should we assume that can't be
what the user wants?

regards, tom lane

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers