Re: COMMENT ON, psql and access methods
От | Michael Paquier |
---|---|
Тема | Re: COMMENT ON, psql and access methods |
Дата | |
Msg-id | CAB7nPqQADzb=xnumd7ihBYt6126Y3-C-2FZoyruRV-VB_dSX6w@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: COMMENT ON, psql and access methods (Teodor Sigaev <teodor@sigaev.ru>) |
Ответы |
Re: COMMENT ON, psql and access methods
|
Список | pgsql-hackers |
On Wed, Jun 1, 2016 at 8:25 PM, Teodor Sigaev <teodor@sigaev.ru> wrote: >>>> As far as I can see, COMMENT ON has no support for access methods. >>>> Wouldn't we want to add it as it is created by a command? On top of >>>> that, perhaps we could have a backslash command in psql to list the >>>> supported access methods, like \dam[S]? The system methods would be in >>>> this case all the in-core ones. >>> >>> >>> +1. >> >> >> Are there other opinions? That's not a 9.6 blocker IMO, so I could get >> patches out for 10.0 if needed. > > > I missed that on review process, but I'm agree it should be implemented. So, I have taken the time to hack that, and finished with the patch attached, that is less intrusive than I thought first: - COMMENT support is added for access methods - Added meta-command \dA in psql to list the available access methods: =# \dA List of access methods Name | Type --------+------- bloom | Index brin | Index btree | Index gin | Index gist | Index hash | Index spgist | Index (7 rows) =# \dA+ List of access methods Name | Type | Handler | Description --------+-------+-------------+---------------------------------------- bloom | Index | blhandler | bloom index access method brin | Index | brinhandler | block range index (BRIN) access method btree | Index | bthandler | b-tree index access method gin | Index | ginhandler | GIN index access method gist | Index | gisthandler | GiST index access method hash | Index | hashhandler | hash index access method spgist | Index | spghandler | SP-GiST index access method (7 rows) - Fixed a missing tab completion for DROP ACCESS METHOD. I have added an open item for 9.6 regarding this patch, that would be good to complete this work in this release for consistency with the other objects. Regards, -- Michael
Вложения
В списке pgsql-hackers по дате отправления: