Client-site "lo_export"

From: whiplash <whiplash(at)bss(dot)org(dot)ua>
To: pgsql-general(at)postgresql(dot)org
Subject: Client-site "lo_export"
Date: 2011-10-28 11:15:02
Message-ID: 4EAA8EB6.6010803@bss.org.ua
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello!

I use client-side "lo_export" for save large object to file. If i login
as database owner then i do not have error (output file exists), but if
i login as not database owner then function "lo_export" returning -1. My
code is simple:

PGresult *res = PQexec(pg_conn, "begin");

PQclear(res);

int ret = lo_export(pg_conn, repo_oid, filename);

res = PQexec(pg_conn, "end");

PQclear(res);

OS: Win7, 32-bit
PostgreSQL: 9.1.0

What could be the problem?

Thank you for helping!

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Szymon Guz 2011-10-28 11:15:04 Re: PostgreSQL Naming Rules
Previous Message Robert Buckley 2011-10-28 10:49:58 PostgreSQL Naming Rules