Table 我成功创建失踪

Table I successfully created missing

我刚刚将一个 RDS 实例启动到一个 Postgresql 数据库。数据库创建成功,我可以连接了。问题是当我 运行 此代码时:

CREATE SCHEMA hollywood;
CREATE TABLE films (title text, release date, awards text[]);
SELECT * FROM hollywood.films;

这是我得到的输出:

Schema hollywood created
Table films created
An error occurred when executing the SQL command:
SELECT * FROM hollywood.films

ERROR: relation "hollywood.films" does not exist

我在这里错过了什么?我在架构名称周围添加了双引号,但无济于事。我就这样打开了用户的权限,但没有用(不好,我知道)

grant all privileges on all tables in schema hollywood to bi;

我在 select 语句之前添加了搜索路径,因此:

SET search_path TO hollywood; select....

没有变化。

尝试:

CREATE SCHEMA hollywood;
CREATE TABLE hollywood.films (title text, release date, awards text[]);
SELECT * FROM hollywood.films;

CREATE SCHEMA hollywood;
SET search_path TO hollywood;
CREATE TABLE films (title text, release date, awards text[]);
SELECT * FROM films;