OCLASS_FOREIGN_TABLE support is incomplete

Started by Tom Laneabout 15 years ago5 messageshackers
Jump to latest
#1Tom Lane
tgl@sss.pgh.pa.us

While poking at the extensions patch I noticed that doDeletion() and
getObjectDescription() both seem to be missing cases for
OCLASS_FOREIGN_TABLE. Surely this is broken.

regards, tom lane

#2Robert Haas
robertmhaas@gmail.com
In reply to: Tom Lane (#1)
Re: OCLASS_FOREIGN_TABLE support is incomplete

On Fri, Feb 4, 2011 at 2:44 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:

While poking at the extensions patch I noticed that doDeletion() and
getObjectDescription() both seem to be missing cases for
OCLASS_FOREIGN_TABLE.  Surely this is broken.

I'll look into fixing this.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

#3Robert Haas
robertmhaas@gmail.com
In reply to: Robert Haas (#2)
Re: OCLASS_FOREIGN_TABLE support is incomplete

On Fri, Feb 4, 2011 at 2:46 PM, Robert Haas <robertmhaas@gmail.com> wrote:

On Fri, Feb 4, 2011 at 2:44 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:

While poking at the extensions patch I noticed that doDeletion() and
getObjectDescription() both seem to be missing cases for
OCLASS_FOREIGN_TABLE.  Surely this is broken.

I'll look into fixing this.

Err... wait. Actually, I think the right thing to do might be to
remove OCLASS_FOREIGN_TABLE altogether. I don't think it's actually
used for anything. For a foreign table, we use OCLASS_CLASS, just as
we do for indexes and sequences. I think that's just leftover crap
that I failed to rip out.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

#4Tom Lane
tgl@sss.pgh.pa.us
In reply to: Robert Haas (#3)
Re: OCLASS_FOREIGN_TABLE support is incomplete

Robert Haas <robertmhaas@gmail.com> writes:

Err... wait. Actually, I think the right thing to do might be to
remove OCLASS_FOREIGN_TABLE altogether. I don't think it's actually
used for anything. For a foreign table, we use OCLASS_CLASS, just as
we do for indexes and sequences. I think that's just leftover crap
that I failed to rip out.

OK. I'll fix it as part of the extensions patch, since it's touching
all those same places anyway.

regards, tom lane

#5Robert Haas
robertmhaas@gmail.com
In reply to: Tom Lane (#4)
Re: OCLASS_FOREIGN_TABLE support is incomplete

On Sat, Feb 5, 2011 at 10:56 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:

Robert Haas <robertmhaas@gmail.com> writes:

Err... wait.  Actually, I think the right thing to do might be to
remove OCLASS_FOREIGN_TABLE altogether.  I don't think it's actually
used for anything.  For a foreign table, we use OCLASS_CLASS, just as
we do for indexes and sequences.  I think that's just leftover crap
that I failed to rip out.

OK.  I'll fix it as part of the extensions patch, since it's touching
all those same places anyway.

Excellent, thanks!

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company