Grant on lo_export()

Поиск
Список
Период
Сортировка
От Nelson Gonzaga
Тема Grant on lo_export()
Дата
Msg-id 1160328940.343057.1533121961953@mail.yahoo.com
обсуждение исходный текст
Ответы Re: Grant on lo_export()  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin
Hi all,
I'm trying to use lo_import / lo_export and apparently I have permission denied:

command:
select lo_export(oid_imagem, '/tmp2/erro_export1.png') from imagem where nome_imagem = 'erro';

ERROR: must be superuser to use server-side lo_export()
SQL state: 42501
Hint: Anyone can use the client-side lo_export() provided by libpq.


It's okay when I enter the data as superuser like this:
insert into image (image_name, oid_picture) values ('error1', lo_import ('/ tmp2 / erro.png'));

and the table:
create table image (image_name varchar (20), oid_image oid);

I Use Linux Debian 7 and Postgresql 9.4

Any idea?



В списке pgsql-admin по дате отправления:

Предыдущее
От: Wells Oliver
Дата:
Сообщение: Organizing large child tables & indexes for quick seeking
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Grant on lo_export()