[Info-ingres] Table specified no longer exists

Martin Bowes martin.bowes at ndph.ox.ac.uk
Tue Feb 15 09:32:22 UTC 2022


Hi Adrian,

That test case definitely reproduces the problem. Did you get a bug number from Actian and has it been fixed?

Marty

From: Adrian Williamson <adrian.williamson at rationalcommerce.com>
Sent: 15 February 2022 09:26
To: Martin Bowes <martin.bowes at ndph.ox.ac.uk>; info-ingres at lists.planetingres.org
Subject: RE: [Info-ingres] Table specified no longer exists

Roy created this test case for it:


drop table if exists foo_tbl;

drop table if exists bar_tbl;

drop view if exists nice_view;

\p\g



create table foo_tbl

(

    keycol char(9) not null,

    good_stuff i1 not null default 0

)

\p\g



create table bar_tbl

(

    keycol char(9) not null,

    other_stuff smallint not null default 0

)

\p\g



commit

\p\g



create view nice_view as

select f.keycol

from foo_tbl f left join (select * from bar_tbl b ) x using (keycol) \p\g



commit;

\p\g



alter table foo_tbl drop column good_stuff cascade; \p\g



drop view nice_view;

\p\g



alter table foo_tbl drop column good_stuff cascade; \p\g


From: info-ingres-bounces at lists.planetingres.org<mailto:info-ingres-bounces at lists.planetingres.org> <info-ingres-bounces at lists.planetingres.org<mailto:info-ingres-bounces at lists.planetingres.org>> On Behalf Of Adrian Williamson
Sent: 15 February 2022 09:19
To: 'Martin Bowes' <martin.bowes at ndph.ox.ac.uk<mailto:martin.bowes at ndph.ox.ac.uk>>; info-ingres at lists.planetingres.org<mailto:info-ingres at lists.planetingres.org>
Subject: Re: [Info-ingres] Table specified no longer exists

Hi Marty,

We spotted something about this in 2020 - Karl thinks he knows - it is a view thing.

See attached.

Cheers

Adrian

From: info-ingres-bounces at lists.planetingres.org<mailto:info-ingres-bounces at lists.planetingres.org> <info-ingres-bounces at lists.planetingres.org<mailto:info-ingres-bounces at lists.planetingres.org>> On Behalf Of Martin Bowes
Sent: 15 February 2022 09:17
To: Martin Bowes <martin.bowes at ndph.ox.ac.uk<mailto:martin.bowes at ndph.ox.ac.uk>>; info-ingres at lists.planetingres.org<mailto:info-ingres at lists.planetingres.org>
Subject: Re: [Info-ingres] Table specified no longer exists

And an addendum...

I can glean nothing else from server tracing, II_EMBED_SET=printqry, verifydb.

Nothing is being written into the errlog.

Marty

From: Martin Bowes <martin.bowes at ndph.ox.ac.uk<mailto:martin.bowes at ndph.ox.ac.uk>>
Sent: 15 February 2022 08:52
To: info-ingres at lists.planetingres.org<mailto:info-ingres at lists.planetingres.org>
Subject: [Info-ingres] Table specified no longer exists

Hi All,

Ingres 11.1.0 +p15692

I have a table with an integer1 column I wish to drop. The column is not part of the table key, not any index on the table, it has no comments, it is not involved in any constraints, rules, procedures, views etc. The table does have a long object, but this column isn't it.

alter table field drop column cost_ba cascade;
Executing . . .

E_US16D5 Table specified no longer exists.

That was surprising.

I've copied this table to a dummy database and repeated the drop command there but this time with success, so I'm ruling out the possibility of interference from the long object at this point.

As this is a production database I don't want to monkey with it much more so I'm currently recovering it to a backup host so I can play with it in isolation. That will take some time. In the mean time does anyone have a suggestion about what may be causing the problem?

Martin Bowes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.planetingres.org/pipermail/info-ingres/attachments/20220215/6a6afbd5/attachment-0001.html>


More information about the Info-ingres mailing list