D
И что это за оно.
В оракле и мс-скл не припоминаю такого.
Size: a a a
D
D
KK
VS
VY
ФГ
VY
ФГ
DO
AN
VY
P
VS
IZ
pg_restore: from TOC entry 2469; 0 0 SEQUENCE OWNED BY domain_id_seq msoa_adstxt
pg_restore: error: could not execute query: ERROR: must be owner of relation domain_id_seq
Command was: ALTER SEQUENCE public.domain_id_seq OWNED BY public.domain.id;
pg_restore: from TOC entry 2472; 0 0 SEQUENCE OWNED BY inapp_domainapp_id_seq msoa_adstxt
pg_restore: error: could not execute query: ERROR: must be owner of relation inapp_domainapp_id_seq
Command was: ALTER SEQUENCE public.inapp_domainapp_id_seq OWNED BY public.inapp_domainapp.id;
postgres
которая входит в роль cloudsqlsuperuser
:% psql -c '\dg postgres' -c '\dg cloudsqlsuperuser'
List of roles
┌───────────┬────────────────────────┬───────────────────────────────────────┐
│ Role name │ Attributes │ Member of │
├───────────┼────────────────────────┼───────────────────────────────────────┤
│ postgres │ Create role, Create DB │ {pg_signal_backend,cloudsqlsuperuser} │
└───────────┴────────────────────────┴───────────────────────────────────────┘
List of roles
┌───────────────────┬────────────────────────┬──────────────┐
│ Role name │ Attributes │ Member of │
├───────────────────┼────────────────────────┼──────────────┤
│ cloudsqlsuperuser │ Create role, Create DB │ {pg_monitor} │
└───────────────────┴────────────────────────┴──────────────┘
IZ
--no-owner
для pg_restore
IZ
VY
pg_restore: from TOC entry 2469; 0 0 SEQUENCE OWNED BY domain_id_seq msoa_adstxt
pg_restore: error: could not execute query: ERROR: must be owner of relation domain_id_seq
Command was: ALTER SEQUENCE public.domain_id_seq OWNED BY public.domain.id;
pg_restore: from TOC entry 2472; 0 0 SEQUENCE OWNED BY inapp_domainapp_id_seq msoa_adstxt
pg_restore: error: could not execute query: ERROR: must be owner of relation inapp_domainapp_id_seq
Command was: ALTER SEQUENCE public.inapp_domainapp_id_seq OWNED BY public.inapp_domainapp.id;
postgres
которая входит в роль cloudsqlsuperuser
:% psql -c '\dg postgres' -c '\dg cloudsqlsuperuser'
List of roles
┌───────────┬────────────────────────┬───────────────────────────────────────┐
│ Role name │ Attributes │ Member of │
├───────────┼────────────────────────┼───────────────────────────────────────┤
│ postgres │ Create role, Create DB │ {pg_signal_backend,cloudsqlsuperuser} │
└───────────┴────────────────────────┴───────────────────────────────────────┘
List of roles
┌───────────────────┬────────────────────────┬──────────────┐
│ Role name │ Attributes │ Member of │
├───────────────────┼────────────────────────┼──────────────┤
│ cloudsqlsuperuser │ Create role, Create DB │ {pg_monitor} │
└───────────────────┴────────────────────────┴──────────────┘
domain
и последовательности domain_id_seq
, также обратите внимание на пользователя, от которого вы запускаете восстановлениеIZ
pg_restore
из под роли postgres
AN
AN