Re: create table like: ACCESS METHOD

Поиск
Список
Период
Сортировка
От Justin Pryzby
Тема Re: create table like: ACCESS METHOD
Дата
Msg-id 20210323003926.GV4203@telsasoft.com
обсуждение исходный текст
Ответ на Re: create table like: ACCESS METHOD  (Justin Pryzby <pryzby@telsasoft.com>)
Ответы Re: create table like: ACCESS METHOD  (Justin Pryzby <pryzby@telsasoft.com>)
Re: create table like: ACCESS METHOD  (Vik Fearing <vik@postgresfriends.org>)
Список pgsql-hackers
On Tue, Jan 19, 2021 at 03:03:31PM -0600, Justin Pryzby wrote:
> On Wed, Dec 30, 2020 at 12:33:56PM +0000, Simon Riggs wrote:
> > There are no tests for the new functionality, please could you add some?
> 
> Did you look at the most recent patch?
> 
> +CREATE ACCESS METHOD heapdup TYPE TABLE HANDLER heap_tableam_handler;
> +CREATE TABLE likeam() USING heapdup;
> +CREATE TABLE likeamlike(LIKE likeam INCLUDING ALL);
                                                                                                            
 
> 
> Also, I just realized that Dilip's toast compression patch adds "INCLUDING
> COMPRESSION", which is stored in pg_am.  That's an implementation detail of
> that patch, but it's not intuitive that "including access method" wouldn't
> include the compression stored there.  So I think this should use "INCLUDING
> TABLE ACCESS METHOD" not just ACCESS METHOD.  

Since the TOAST patch ended up not using access methods after all, I renamed
this back to "like ACCESS METHOD" (without table).

For now, I left TableLikeOption un-alphabetized.

-- 
Justin

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Key management with tests
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Feature improvement: can we add queryId for pg_catalog.pg_stat_activity view?