English 中文(简体)
为什么PogreSQL告诉我存在一种chem子吗?
原标题:Why is PostgreSQL telling me a schema doesn t exist?

我参加了Agile Web Development with Railways(第四版)第7章,当我进行跳跃测试时,我发现以下错误:

rake aborted!
PG::Error: ERROR: invalid value for parameter "search_path": "public" 
DETAIL: schema "public" does not exist
: SET search_path TO public

Tasks: TOP => db:test:load => db:test:purge
(See full trace by running task with --trace)

我参加了一个MacBook Pro与10.7.4OSX。 我有R.R.R.Rake 0.9.2.2和PogreSQL 9.1。 我的制作、开发和测试数据库都存在,已经转移到我的信箱/数据库。 他们都公开。

谁能帮助我?

问题回答

确保用户违约数据库有一个公开图象。

例如,如果你使用用户“指令”与你的数据库连接,那么就应当有一个名为“指令”的数据库,并有一个名为“公共”的图象。

http://www.postgresql.org/docs/9.1/static/infoschema-schemata.html (着重我自己):

 The view schemata contains all schemas in the current database that are owned by a currently enabled role.

如果与违约用户以外的用户连接(postgres),public 图表不得显示。 (Yes,即使该用户创建并拥有数据库,public 缩略语 页: 1

[1] http://archives.postgresql.org/pgsql-general/2008-10/msg01320.php

根据错误信息,扫描码public 不存在。 你们是否检查了,是否检查了? 这只是另一个可以放弃的图象。





相关问题
摘录数据

我如何将Excel板的数据输入我的Django应用? I m将PosgreSQL数据库作为数据库。

Postgres dump of only parts of tables for a dev snapshot

On production our database is a few hundred gigabytes in size. For development and testing, we need to create snapshots of this database that are functionally equivalent, but which are only 10 or 20 ...

How to join attributes in sql select statement?

I want to join few attributes in select statement as one for example select id, (name + + surname + + age) as info from users this doesn t work, how to do it? I m using postgreSQL.

What text encoding to use?

I need to setup my PostgreSQL DB s text encoding to handle non-American English characters that you d find showing up in languages such as German, Spanish, and French. What character encoding should ...

SQL LIKE condition to check for integer?

I am using a set of SQL LIKE conditions to go through the alphabet and list all items beginning with the appropriate letter, e.g. to get all books where the title starts with the letter "A": SELECT * ...

热门标签