If the Postgres postmaster is up and running we can create some databases to experiment with. Here, we describe the basic commands for managing a database.
もし Postgres の postmaster が起動されて、走っていれば 試しに何らかのデータベースを作ることが出来ます。ここでは、 データベース管理のための基本命令を記述します。
Let's say you want to create a database named mydb. You can do this with the following command:
% createdb dbname
Postgres allows you to create
any number of databases
at a given site and you automatically become the
database administrator of the database you just created.
Database names must have an alphabetic first
character and are limited to 16 characters in length.
Not every user has authorization to become a database
administrator. If Postgres
refuses to create databases
for you, then the site administrator needs to grant you
permission to create databases. Consult your site
administrator if this occurs.mydb と言うデータベースを作成するには次の命令を用います。
% createdb dbname
Postgres はある特定のサイトに
おいて、いくつでもデータベースを作成することを許しており、
作成者は何もしなくても、いま作成したデータベースの管理者と
なります。データベースは英文字で始まる 16 文字以内の名称に
限られます。全てのユーザがデータベースの管理者になる権限を
持っているとは限りません。データベースの作成を
Postgres に拒否された場合、
サイトの管理者によるデータベースの作成の許可属性を交付して
もらわなければなりません。この場合、サイト管理者と相談して
下さい。
(訳注: … )