LoginSignup
2
1

More than 5 years have passed since last update.

postgresにおけるtemplate

Posted at

postgresにおけるデータベースを作成するという動作は既存のデータベースからのコピーに他ならない。デフォルトではtemplate0とtemplate1というデータベースがあり、何も指定しないとtemplate1からのコピーになる。

template0

あるpostgresのバージョンにおける標準のデータベースになる。基本的なオブジェクトが入っており、変更することはできない。

template1

ユーザが変更できるテンプレートデータベースである。たとえば社内の共通ライブラリ等をこのデータベースに入れておくことで、新しく作成したデータベースにライブラリが含まれるようになる、という使い方ができる。

参考

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1