[SQL] created database but access is not copied ? any suggestions - Mailing list pgsql-sql

From srilinux
Subject [SQL] created database but access is not copied ? any suggestions
Date
Msg-id 1501274602412-5973259.post@n3.nabble.com
Whole thread Raw
Responses Re: [SQL] created database but access is not copied ? any suggestions  ("David G. Johnston" <david.g.johnston@gmail.com>)
List pgsql-sql
Hi All

I have created the below standby database using the below command

CREATE DATABASE standby OWNER admin TABLESPACE assembly;  

this worked but the assembly database has privileges which are not copied to
standby server , is there any thing that need to be added in the create
syntax or do after the standby db is created ?

Below is the list , how to grant access privileges

postgres=# \list                                 List of databases  Name    |  Owner   | Encoding |   Collate   |
Ctype   |   Access
 
privileg
es
-----------+----------+----------+-------------+-------------+------------------
-----postgres  | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 |

*standby   |     admin  | UTF8     | en_US.UTF-8 | en_US.UTF-8 |*

*assembly | admin  | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =Tc/admin   +          |          |          |
|            | admin=CTc/adm
 
in*

template0 | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres   +          |          |          |
  |             |
 
postgres=CTc/post
grestemplate1 | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres   +          |          |          |
      |             |
 
postgres=CTc/post
gres
(5 rows)




--
View this message in context:
http://www.postgresql-archive.org/created-database-but-access-is-not-copied-any-suggestions-tp5973259.html
Sent from the PostgreSQL - sql mailing list archive at Nabble.com.



pgsql-sql by date:

Previous
From: Igor Neyman
Date:
Subject: Re: [SQL] Issues with lag command
Next
From: "David G. Johnston"
Date:
Subject: Re: [SQL] created database but access is not copied ? any suggestions