psql completion bugs with access methods - Mailing list pgsql-hackers

From Michael Paquier
Subject psql completion bugs with access methods
Date
Msg-id 20190601191007.GC1905@paquier.xyz
Whole thread Raw
Responses Re: psql completion bugs with access methods
List pgsql-hackers
Hi all,

I have bumped into a couple of issues with psql completion for access
methods:
1) CREATE INDEX USING suggests both index and table AMs.
2) CREATE TABLE USING has no completion support, USING not being
included in the completion, and the follow-up table AMs are missing as
well.
3) CREATE ACCESS METHOD TYPE suggests only INDEX.

Attached is a patch to close the gap.  Thoughts?
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Table AM callbacks referring to heap in declarations (+typos)
Next
From: Andres Freund
Date:
Subject: Re: Custom table AMs need to include heapam.h because ofBulkInsertState