Re: uncataloged tables are a vestigial husk - Mailing list pgsql-hackers

From Tom Lane
Subject Re: uncataloged tables are a vestigial husk
Date
Msg-id 13032.1339607623@sss.pgh.pa.us
Whole thread Raw
In response to uncataloged tables are a vestigial husk  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: uncataloged tables are a vestigial husk  (Robert Haas <robertmhaas@gmail.com>)
List 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 by date:

Previous
From: Steve Singer
Date:
Subject: Re: [RFC][PATCH] Logical Replication/BDR prototype and architecture
Next
From: Andres Freund
Date:
Subject: Re: [RFC][PATCH] Logical Replication/BDR prototype and architecture