Administrating User Security & Authentication

Postgresql User Accounts & Roles

A user account and authentication method are required to connect to the databaseand perform transactions. Note: Users in the operating system and users in the database are different. Forexample, the postgres user in the Linux operating system on which the postgresdatabase is running is the operating system user. It is used to manage the operatingsystem Postgresql User Accounts & Roles

Postgresql Schema

It is used to group and organize objects (table, view, index, function, procedure, etc.)according to business logic and hierarchy.For example, separating the data of different applications such as archive, audit,accounting, human resources can be kept in different schemas for ease of managementand security.It is database specific, that is each database has its own schemas. search_path Postgresql Schema

Authentication

pg_hba.conf : The file is used for client validation. It is located in the databasecluster directory (if it is installed from pre-build packages with apt on Debian andderivative Linux, it is located in /etc/postgresql/$version/main). When initdb is executed to create the cluster, the default pg_hba.conf file iscreated in the cluster directory.show hba_file; location can be Authentication