- 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;
- Word 2000、Excel 2000、PowerPoint 2000上機指導與練習
- Linux Mint System Administrator’s Beginner's Guide
- 蕩胸生層云:C語言開發(fā)修行實錄
- Visual Basic從初學到精通
- 工業(yè)機器人操作與編程
- INSTANT Drools Starter
- Storm應用實踐:實時事務處理之策略
- Dreamweaver CS6中文版多功能教材
- MATLAB-Simulink系統(tǒng)仿真超級學習手冊
- 嵌入式Linux系統(tǒng)實用開發(fā)
- 重估:人工智能與賦能社會
- 步步驚“芯”
- Instant Slic3r
- Eclipse全程指南
- 微機組裝與維護教程