Fix psql's tab completion for ALTER DATABASE ... SET TABLESPACE.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: a7c4dad1a770c1c4256aa87e01a85172e1549aad
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2018-09-20T21:16:06Z
Releases: 12.0
Fix psql's tab completion for ALTER DATABASE ... SET TABLESPACE.

We have the infrastructure to offer a list of tablespace names, but
it wasn't being used here; instead you got "FROM", "CURRENT", and "TO"
which aren't actually legal in this syntax.

Dagfinn Ilmari Mannsåker, reviewed by Arthur Zakirov

Discussion: https://postgr.es/m/d8jo9djvm7h.fsf@dalvik.ping.uio.no

Files

PathChange+/−
src/bin/psql/tab-complete.c modified +4 −0

Discussion