admcomulanude_datafiles=# SELECT current_user;
current_user
--------------
postgres
(1 строка)
admcomulanude_datafiles=# Select grantee, privilege_type from information_schema.role_table_grants where table_name = 'files';
grantee | privilege_type
----------+----------------
postgres | TRIGGER
postgres | REFERENCES
postgres | TRUNCATE
postgres | DELETE
postgres | UPDATE
postgres | SELECT
postgres | INSERT
(7 строк)
admcomulanude_datafiles=# insert into files (guid, name) values ('TEST-TEST-TEST', 'testtt');
ОШИБКА: столбец "guid" в таблице "files" не существует
СТРОКА 1: insert into files (guid, name) values ('TEST-TEST-TEST', 'te...
^
admcomulanude_datafiles=# \d files
Таблица "public.files"
Столбец | Тип | Правило сортировки | Допустимость NULL | По умолчанию
---------+-------+--------------------+-------------------+--------------
_id | text | | not null |
_name | text | | not null |
_dataf | bytea | | not null |
Индексы:
"files_pkey" PRIMARY KEY, btree (_id)
admcomulanude_datafiles=# insert into files (id, name) values ('TEST-TEST-TEST', 'testtt');
ОШИБКА: столбец "id" в таблице "files" не существует
СТРОКА 1: insert into files (id, name) values ('TEST-TEST-TEST', 'test...
^
admcomulanude_datafiles=# insert into files (_id, _name) values ('TEST-TEST-TEST', 'testtt');
ОШИБКА: значение NULL в столбце "_dataf" отношения "files" нарушает ограничение NOT NULL
ПОДРОБНОСТИ: Ошибочная строка содержит (TEST-TEST-TEST, testtt, null).
admcomulanude_datafiles=#