powercfg -H on
Note that to enable hibernation, you should have enough free space on your system partition (this is generally c:\).
To disable hibernation, run the following command:
powercfg -H off
powercfg -H on
powercfg -H off
create group G1;
create group G2;
create user U1 password 'u1';
alter group G1 add user U1;
alter group G2 add user U1;
create table T1( a int );
create table T2( a int );
grant select on T1 to G1;
grant select on T2 to G2;
\c - u1
select * from t1;
select * from t2;
set role g1;
select * from t2;