1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
| -bash-2.05b$ pg_dump test -U britair -h srvgest01 -p 5432 > db.out
NOTICE: Query statistics are disabled because parser, planner, or executor statistics are on.
-bash-2.05b$ psql -d test_2 -U britair -h srvgest01 -p 5432 -f db.out
NOTICE: Query statistics are disabled because parser, planner, or executor statistics are on.
NOTICE: Query statistics are disabled because parser, planner, or executor statistics are on.
You are now connected as new user britair.
CREATE
REVOKE
GRANT
CREATE
REVOKE
GRANT
-bash-2.05b$ psql test britair
psql: FATAL 1: IDENT authentication failed for user "britair"
-bash-2.05b$ psql test_2 britair
psql: FATAL 1: IDENT authentication failed for user "britair"
-bash-2.05b$ createuser britair
Shall the new user be allowed to create databases? (y/n) y
Shall the new user be allowed to create more new users? (y/n) y
NOTICE: Query statistics are disabled because parser, planner, or executor statistics are on.
ERROR: CREATE USER: user name "britair" already exists
createuser: creation of user "britair" failed
-bash-2.05b$ dropuser britair
NOTICE: Query statistics are disabled because parser, planner, or executor statistics are on.
ERROR: DROP USER: user "britair" owns database "test", cannot be removed
dropuser: deletion of user "britair" failed
-bash-2.05b$ psql test_2 britair
psql: FATAL 1: IDENT authentication failed for user "britair"
-bash-2.05b$ psql test britair
psql: FATAL 1: IDENT authentication failed for user "britair"
-bash-2.05b$ |
Partager