Redshift is translating 'dbo' schema name in to 'public' schema name.

0

We have two Redshift clusters. One cluster updated to version 1.0.44126 over the weekend. After that, we started experiencing failures in some data extract processes. The error was: ERROR: schema "dbo" does not exist

Sure enough, after reviewing the queries we had inadvertently used dbo instead of public in the schema name. However, it worked for months prior to this latest Redshift version. I cannot find any information on version 1.0.44126. I cannot find any feature that might translate these schema names transparently.

Why is Redshift doing this?

I can reproduce the behavior on cluster version 1.0.43931.

create table public.test_table ( test integer );
select * from dbo.test_table;
drop table dbo.test_table;

The above all succeeds on cluster version 1.0.43931 and fails on 1.0.44126.

已提問 1 年前檢視次數 290 次
1 個回答
0

I just tested with 1.0.44903 and your test case appears to work again. I highly recommend you do not continue the practice of using "dbo" as a synonym for "public". This appears to be an undocumented feature which could be removed again in the future.

profile pictureAWS
專家
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南