postgresql - How do I rename the default postgres superuser to "root"? -


i log in postgresql using psql -u postgres. how rename postgres user root?

if logged in postgres trying alter user postgres rename root error: session user cannot renamed.

is possible rename user without logging postgres user? don't think have other superuser since fresh install of postgresql.

by way, running gentoo on amazon ec2.

you should able create new postgres superuser called root logging in postgres user , (at shell) typing;

createuser --superuser root psql> create database root owner root 

after that, when logged in root, should able want postgres user.


Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -