Answers for "postgres owner to"

SQL
1

how to change owner in postgres

ALTER DATABASE name OWNER TO new_owner;
Posted by: Guest on November-11-2020
0

postgresql show owner of database

SELECT d.datname as "Name",
pg_catalog.pg_get_userbyid(d.datdba) as "Owner"
FROM pg_catalog.pg_database d
WHERE d.datname = 'database_name'
ORDER BY 1;
Posted by: Guest on November-12-2021
0

Alter owner in PostgreSQL

pg_dump -Fp -f dbbackup.dmp <dbname>
vi dbbackup.dmp
:%s/oldowner/newowner/g
save and exit
Posted by: Guest on September-22-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language