Postgres 10 Ins
Postgres 10 Ins
7
================================================
https://www.postgresql.org/download/linux/redhat/
>>
Dependencies Resolved
===================================================================================
=======================================
Package Arch Version Repository
Size
===================================================================================
=======================================
Installing:
pgdg-redhat-repo noarch 42.0-11 /pgdg-
redhat-repo-latest.noarch 11 k
Transaction Summary
===================================================================================
=======================================
Install 1 Package(s)
Total size: 11 k
Installed size: 11 k
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : pgdg-redhat-repo-42.0-11.noarch
1/1
Verifying : pgdg-redhat-repo-42.0-11.noarch
1/1
Installed:
pgdg-redhat-repo.noarch 0:42.0-11
Complete!
===================================================================================
================================================================================
[root@dns yum.repos.d]# ll
total 28
-rw-r--r--. 1 root root 957 Nov 5 2012 epel.repo
-rw-r--r--. 1 root root 1056 Nov 5 2012 epel-testing.repo
-rw-r--r--. 1 root root 9154 Apr 27 16:10 pgdg-redhat-all.repo
-rw-r--r--. 1 root root 4949 Mar 12 2018 public-yum-ol6.repo
=============
>>
===================================================================================
===============================================================================
===> FYI : Change all string from https to http on pgdg-redhat-all.repo file .....
>>
Dependencies Resolved
===================================================================================
=======================================
Package Arch Version
Repository Size
===================================================================================
=======================================
Installing:
postgresql10-server x86_64 10.14-1PGDG.rhel6
pgdg10 5.1 M
Installing for dependencies:
postgresql10 x86_64 10.14-1PGDG.rhel6
pgdg10 1.7 M
postgresql10-libs x86_64 10.14-1PGDG.rhel6
pgdg10 328 k
Transaction Summary
===================================================================================
=======================================
Install 3 Package(s)
Total
25 kB/s | 7.0 MB 04:45
warning: rpmts_HdrFromFdno: Header V4 DSA/SHA1 Signature, key ID 442df0f8: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG
Importing GPG key 0x442DF0F8:
Userid : PostgreSQL RPM Building Project <[email protected]>
Package: pgdg-redhat-repo-42.0-11.noarch (@/pgdg-redhat-repo-latest.noarch)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : postgresql10-libs-10.14-1PGDG.rhel6.x86_64
1/3
Installing : postgresql10-10.14-1PGDG.rhel6.x86_64
2/3
Installing : postgresql10-server-10.14-1PGDG.rhel6.x86_64
3/3
Verifying : postgresql10-10.14-1PGDG.rhel6.x86_64
1/3
Verifying : postgresql10-server-10.14-1PGDG.rhel6.x86_64
2/3
Verifying : postgresql10-libs-10.14-1PGDG.rhel6.x86_64
3/3
Installed:
postgresql10-server.x86_64 0:10.14-1PGDG.rhel6
Dependency Installed:
postgresql10.x86_64 0:10.14-1PGDG.rhel6 postgresql10-
libs.x86_64 0:10.14-1PGDG.rhel6
Complete!
===================================================================================
========================================================================
===================================================================================
========================================================================
===================================================================================
========================================================================
===================================================================================
===================================================================
# pwd
/var/lib/pgsql/10/data
[root@dns data]# ll
total 128
drwx------. 5 postgres postgres 4096 Sep 24 10:20 base
-rw-------. 1 postgres postgres 30 Sep 24 10:30 current_logfiles
drwx------. 2 postgres postgres 4096 Sep 24 10:31 global
drwx------. 2 postgres postgres 4096 Sep 24 10:21 log
drwx------. 2 postgres postgres 4096 Sep 24 10:20 pg_commit_ts
drwx------. 2 postgres postgres 4096 Sep 24 10:20 pg_dynshmem
-rw-------. 1 postgres postgres 4270 Sep 24 10:29 pg_hba.conf
-rw-------. 1 postgres postgres 1636 Sep 24 10:20 pg_ident.conf
drwx------. 4 postgres postgres 4096 Sep 24 10:26 pg_logical
drwx------. 4 postgres postgres 4096 Sep 24 10:20 pg_multixact
drwx------. 2 postgres postgres 4096 Sep 24 10:21 pg_notify
drwx------. 2 postgres postgres 4096 Sep 24 10:20 pg_replslot
drwx------. 2 postgres postgres 4096 Sep 24 10:20 pg_serial
drwx------. 2 postgres postgres 4096 Sep 24 10:20 pg_snapshots
drwx------. 2 postgres postgres 4096 Sep 24 10:20 pg_stat
drwx------. 2 postgres postgres 4096 Sep 24 10:42 pg_stat_tmp
drwx------. 2 postgres postgres 4096 Sep 24 10:20 pg_subtrans
drwx------. 2 postgres postgres 4096 Sep 24 10:20 pg_tblspc
drwx------. 2 postgres postgres 4096 Sep 24 10:20 pg_twophase
-rw-------. 1 postgres postgres 3 Sep 24 10:20 PG_VERSION
drwx------. 3 postgres postgres 4096 Sep 24 10:20 pg_wal
drwx------. 2 postgres postgres 4096 Sep 24 10:20 pg_xact
-rw-------. 1 postgres postgres 88 Sep 24 10:20 postgresql.auto.conf
-rw-------. 1 postgres postgres 22984 Sep 24 10:20 postgresql.conf
-rw-------. 1 postgres postgres 57 Sep 24 10:21 postmaster.opts
-rw-------. 1 postgres postgres 103 Sep 24 10:21 postmaster.pid
-----------------------------------------------------------------------------------
-----------------------------------------
-----------------------------------------------------------------------------------
-----------------------
PostgreSQL 10.14 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.4.7 20120313 (Red
Hat 4.4.7-23), 64-bit
(1 row)
postgres-# \du
List of roles
Role name | Attributes | Member of
----------------------+--------------
+--------------------------------------------------------------
pg_monitor | Cannot login |
{pg_read_all_settings,pg_read_all_stats,pg_stat_scan_tables}
pg_read_all_settings | Cannot login | {}
pg_read_all_stats | Cannot login | {}
pg_signal_backend | Cannot login | {}
pg_stat_scan_tables | Cannot login | {}
postgres | Superuser | {}
: Create role
: Create DB
Regards,
Sham G