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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ