PostgreSQL Concepts: Difference between revisions
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
=Database= | =Database= | ||
A PostgresSQL usually comes with 4 pre-existing databases (admin, postgres, template0, template1). | A PostgresSQL usually comes with 4 pre-existing databases (admin, postgres, template0, template1). "postgres" is fit for general use and it should be used by default. | ||
=Schema= | =Schema= |
Revision as of 19:51, 18 October 2018
Internal
Database
A PostgresSQL usually comes with 4 pre-existing databases (admin, postgres, template0, template1). "postgres" is fit for general use and it should be used by default.
Schema
Each database has by default a public schema.
Tablespace
Authentication
User
Users are shared across databases.
The "user" concept is equivalent with the "role" concept.
Role
The "role" concept is equivalent with the "user" concept.
Role Attributes
A specific role may:
- be a superuser
- create another role
- create a database