- 论坛徽章:
- 0
|
请教关于PostgreSQL的数据文件和速度问题
;(
裸设备,我从来没用过?我不知pgsql能不能用..
但pgsql创建数据库没有裸设备的选项
-D, --location=PATH alternative place to store the database
只有一个-d=path
可是没有 如果-d = raw 一类的东东.
[root@linux root]# createdb
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
createdb: database creation failed
[root@linux root]# createdb --help
createdb creates a PostgreSQL database.
Usage:
createdb [OPTION]... [DBNAME] [DESCRIPTION]
Options:
-D, --location=PATH alternative place to store the database
-E, --encoding=ENCODING encoding for the database
-O, --owner=OWNER database user to own the new database
-T, --template=TEMPLATE template database to copy
-e, --echo show the query being sent to the backend
-q, --quiet don't write any messages
--help show this help, then exit
Connection options:
-h, --host=HOSTNAME database server host
-p, --port=PORT database server port
-U, --username=USERNAME user name to connect as
-W, --password prompt for password
By default, a database with the same name as the current user is created.
Report bugs to <pgsql-bugs@postgresql.org>;.
[root@linux root]# |
|