- Learning PostgreSQL 10(Second Edition)
- Salahaldin Juba Andrey Volkov
- 157字
- 2021-07-02 22:42:13
PostgreSQL high-level object interaction
To sum up, a PostgreSQL server can contain many databases, programming languages, roles, and tablespaces. Each database has an owner and a default tablespace; a role can be granted permission to access or can own several databases. The settings can be used to control the behavior of the PostgreSQL server on several levels, such as database and session. Finally, a database can use several programming languages:

In order to create a database, one needs to specify the owner and the encoding of the database; if the encoding of template1 does not match the required encoding, template0 should be used explicitly.
For the car web high-level objects interaction portal database, let's assume that the database owner is the car_portal_role role and the encoding is UTF-8. In order to create this database, one can execute the following commands:
CREATE ROLE car_portal_app LOGIN;
CREATE DATABASE car_portal ENCODING 'UTF-8' LC_COLLATE 'en_US.UTF-8' LC_CTYPE 'en_US.UTF-8' TEMPLATE template0 OWNER car_portal_app;
- Microsoft Dynamics CRM Customization Essentials
- PPT,要你好看
- ArchiCAD 19:The Definitive Guide
- 極簡AI入門:一本書讀懂人工智能思維與應用
- 手把手教你玩轉RPA:基于UiPath和Blue Prism
- Mobile DevOps
- 精通Excel VBA
- Cloudera Administration Handbook
- Learning C for Arduino
- Prometheus監控實戰
- 中國戰略性新興產業研究與發展·工業機器人
- Google SketchUp for Game Design:Beginner's Guide
- 筆記本電腦維修90個精選實例
- 學練一本通:51單片機應用技術
- HBase Essentials