pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix bogus tab-completion rule for CREATE PUBLICATION. 3+ messages / 1 participants [nested] [flat]
* pgsql: Fix bogus tab-completion rule for CREATE PUBLICATION. @ 2018-09-21 19:58 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 3+ messages in thread From: Tom Lane @ 2018-09-21 19:58 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix bogus tab-completion rule for CREATE PUBLICATION. You can't use "FOR TABLE" as a single Matches argument, because readline will consider that input to be two words not one. It's necessary to make the pattern contain two arguments. The case accidentally worked anyway because the words_after_create test fired ... but only for the first such table name. Noted by Edmund Horner, though this isn't exactly his proposed fix. Backpatch to v10 where the faulty code came in. Discussion: https://postgr.es/m/CAMyN-kDe=gBmHgxWwUUaXuwK+p+7g1vChR7foPHRDLE592nJPQ@mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/e8fe426baa9c242d8dbd4eab1d963e952c9172f4 Modified Files -------------- src/bin/psql/tab-complete.c | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Fix bogus tab-completion rule for CREATE PUBLICATION. @ 2018-09-21 19:58 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 3+ messages in thread From: Tom Lane @ 2018-09-21 19:58 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix bogus tab-completion rule for CREATE PUBLICATION. You can't use "FOR TABLE" as a single Matches argument, because readline will consider that input to be two words not one. It's necessary to make the pattern contain two arguments. The case accidentally worked anyway because the words_after_create test fired ... but only for the first such table name. Noted by Edmund Horner, though this isn't exactly his proposed fix. Backpatch to v10 where the faulty code came in. Discussion: https://postgr.es/m/CAMyN-kDe=gBmHgxWwUUaXuwK+p+7g1vChR7foPHRDLE592nJPQ@mail.gmail.com Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/45a2d45f4ff2e2f1524e7eb3aca9243895eefa8a Modified Files -------------- src/bin/psql/tab-complete.c | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Fix bogus tab-completion rule for CREATE PUBLICATION. @ 2018-09-21 19:58 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 3+ messages in thread From: Tom Lane @ 2018-09-21 19:58 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix bogus tab-completion rule for CREATE PUBLICATION. You can't use "FOR TABLE" as a single Matches argument, because readline will consider that input to be two words not one. It's necessary to make the pattern contain two arguments. The case accidentally worked anyway because the words_after_create test fired ... but only for the first such table name. Noted by Edmund Horner, though this isn't exactly his proposed fix. Backpatch to v10 where the faulty code came in. Discussion: https://postgr.es/m/CAMyN-kDe=gBmHgxWwUUaXuwK+p+7g1vChR7foPHRDLE592nJPQ@mail.gmail.com Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/e8d118fe859cdbae8b7dafefd126f31105f3aaab Modified Files -------------- src/bin/psql/tab-complete.c | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2018-09-21 19:58 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2018-09-21 19:58 pgsql: Fix bogus tab-completion rule for CREATE PUBLICATION. Tom Lane <tgl@sss.pgh.pa.us> 2018-09-21 19:58 pgsql: Fix bogus tab-completion rule for CREATE PUBLICATION. Tom Lane <tgl@sss.pgh.pa.us> 2018-09-21 19:58 pgsql: Fix bogus tab-completion rule for CREATE PUBLICATION. Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox