Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 164 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
164
Dung lượng
6,33 MB
Nội dung
[...]... causes much confusion and frustration when Setting Up Groups and Login Roles (Users) | 15 setting up groups, as people often forget to make sure that the group role is marked to allow its permissions as inheritable Non-Inheritable rights Some permissions can’t be inherited For example, while you can create a group role that you mark as super user, this doesn’t make its member roles super users; however,... find PostgreSQL connectivity support via DBI and the DBD:Pg driver or pure Perl DBD:PgPP driver from CPAN Server and Database Objects So you installed PostgreSQL and open up pgAdmin You expand the server tree Before you is a bewildering array of database objects, some familiar and some completely foreign PostgreSQL has more database objects than probably any other database, and that’s without considering... Pre-8.0 users and groups were distinct entities, but the model got changed to be role-centric to better conform to the ANSI-SQL specs For backward compatibility, there is still a CREATE USER and CREATE GROUP For the rest of this discussion, we’ll be using the more generic CREATE ROLE , which is used to create both users and groups If you look at fairly ANSI-SQL standard databases such as Oracle and later... significant amount of example code from this book into your product’s documentation does require permission We appreciate, but do not require, attribution An attribution usually includes the title, author, publisher, and ISBN For example: PostgreSQL: Up andRunning by Regina Obe and Leo Hsu (O’Reilly) Copyright 2012 Regina Obe and Leo Hsu, 978-1-449-32633-3.” If you feel your use of code examples... “Editing postgresql.conf and pg_hba.conf from pgAdmin” on page 47 Setting Up Groups and Login Roles (Users) In PostgreSQL, there is really only one kind of an account and that is a role Some roles can log in; when they have login rights, they are called users Roles can be members of other roles, and when we have this kind of relationship, the containing roles are called groups It wasn’t always this... tools for managing PostgreSQL and these are supported by PostgreSQL core developers; they tend to stay in synch with PostgreSQL versions In addition, there are plenty of commercial offerings as well psql psql is a command-line interface for writing queries and managing PostgreSQL It comes packaged with some nice extras, such as an import and export commands for delimited files, and a reporting feature that... will expire Creating Group Roles Group roles are generally roles that have no login rights but have other roles as members This is merely a convention There is nothing stopping you from creating a role that can both login and can contain other roles We can create a group role with this SQL DCL statement: CREATE ROLE jungle INHERIT; And add a user or other group role to the group with this statement:... aforementioned PL languages and popular types with their companion functions and operators, like hstore, ltree, postgis, and countless others For example, to install the popular PostgreSQL key-value store type and its companion functions and operators, you would type: x | Preface CREATE EXTENSION hstore; In addition, there is an SQL command you can run—sect_extensions—to see the list of available and installed extensions... unique and advanced features that are also present in prior versions of PostgreSQL ix What Makes PostgreSQL Special and Why Use It? PostgreSQL is special because it’s not just a database: it’s also an application platform and an impressive one at that PostgreSQL allows you to write stored procedures and functions in several programming languages, and the architecture allows you the flexibility to support... (www.safaribooksonline.com) is an on-demand digital library that delivers expert content in both book and video form from the world’s leading authors in technology and business Technology professionals, software developers, web designers, and business and creative professionals use Safari Books Online as their primary resource for research, problem solving, learning, and certification training Safari Books .
PostgreSQL: Up and Running
Regina Obe and Leo Hsu
Beijing
•
Cambridge
•
Farnham
•
Köln
•
Sebastopol
•
Tokyo
PostgreSQL: Up and Running
by Regina Obe and. details.
Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered trademarks of
O’Reilly Media, Inc. PostgreSQL: Up and Running, the