postgres.git / summary / log / commit / refs

commit    05ba8370b8e4b5c8f3dd51986b9fdeb43fed5610
Author:   Michael Paquier <michael@paquier.xyz>
Date:     Mon Aug 05 05:27:20 2019 +0000
First released in: 13.0, 9.6.15, 10.10, 11.5, 12.0

    Fix tab completion for ALTER LANGUAGE in psql
    
    OWNER_TO was used for the completion, which is not a supported grammar,
    but OWNER TO is.
    
    This error has been introduced by d37b816, so backpatch down to 9.6.
    
    Author: Alexander Lakhin
    Discussion: https://postgr.es/m/7ab243e0-116d-3e44-d120-76b3df7abefd@gmail.com
    Backpatch-through: 9.6


src/bin/psql/tab-complete.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c index 3f7001fb696..d40800709b0 100644 --- a/src/bin/psql/tab-complete.c +++ b/src/bin/psql/tab-complete.c @@ -1686,7 +1686,7 @@ psql_completion(const char *text, int start, int end) /* ALTER LANGUAGE <name> */ else if (Matches("ALTER", "LANGUAGE", MatchAny)) - COMPLETE_WITH("OWNER_TO", "RENAME TO"); + COMPLETE_WITH("OWNER TO", "RENAME TO"); /* ALTER LARGE OBJECT <oid> */ else if (Matches("ALTER", "LARGE", "OBJECT", MatchAny)) [parent: 8548ddc61b58]