Re: uncataloged tables are a vestigial husk

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: uncataloged tables are a vestigial husk
Дата
Msg-id 13032.1339607623@sss.pgh.pa.us
обсуждение исходный текст
Ответ на uncataloged tables are a vestigial husk  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: uncataloged tables are a vestigial husk  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> While working on some code today, I noticed that RELKIND_UNCATALOGED
> appears to serve no useful purpose.  In the few places where we check
> for it at all, we treat it in exactly the same way as
> RELKIND_RELATION.  It seems that it's only purpose is to serve as a
> placeholder inside each newly-created relcache entry until the real
> relkind is filled in.

I suspect that it had some actual usefulness back in Berkeley days.
But now that catalogs are created with the correct relkind to start
with during initdb, I agree it's probably just inertia keeping that
around.

> The attached patch cleans it up by removing RELKIND_UNCATALOGED and
> teaching RelationBuildLocalRelation() to set the relkind itself.

I think there are probably some places to fix in the docs too.
        regards, tom lane


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

Предыдущее
От: Steve Singer
Дата:
Сообщение: Re: [RFC][PATCH] Logical Replication/BDR prototype and architecture
Следующее
От: Andres Freund
Дата:
Сообщение: Re: [RFC][PATCH] Logical Replication/BDR prototype and architecture