summaryrefslogtreecommitdiff
path: root/src/bin/pg_amcheck/nls.mk
diff options
context:
space:
mode:
authorTomas Vondra2025-07-31 13:17:26 +0000
committerTomas Vondra2025-07-31 14:04:21 +0000
commitca09ef3a6aa69a1250bc83e6d9517f28a2ff181c (patch)
treef6fab5aede559dbefffcb94304d4194eb1e29936 /src/bin/pg_amcheck/nls.mk
parentdbf5a83d4650fc893838a2f92306b3d6439f55ba (diff)
Fix tab completion for ALTER ROLE|USER ... RESETHEADmaster
Commit c407d5426b87 added tab completion for ALTER ROLE|USER ... RESET, with the intent to offer only the variables actually set on the role. But as soon as the user started typing something, it would start to offer all possible matching variables. Fix this the same way ALTER DATABASE ... RESET does it, i.e. by properly considering the prefix. A second issue causing similar symptoms (offering variables that are not actually set for a role) was caused by a match to another pattern. The ALTER DATABASE ... RESET was already excluded, so do the same thing for ROLE/USER. Report and fix by Dagfinn Ilmari Mannsåker. Backpatch to 18, same as c407d5426b87. Author: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> Reviewed-by: jian he <jian.universality@gmail.com> Discussion: https://postgr.es/m/87qzyghw2x.fsf%40wibble.ilmari.org Discussion: https://postgr.es/m/87tt4lumqz.fsf%40wibble.ilmari.org Backpatch-through: 18
Diffstat (limited to 'src/bin/pg_amcheck/nls.mk')
0 files changed, 0 insertions, 0 deletions