<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forum PostgreSQL - Dane lo i funkcja lo_export(lo, text)]]></title>
	<link rel="self" href="http://forum.postgresql.org.pl/extern.php?action=feed&amp;tid=1425&amp;type=atom"/>
	<updated>2012-12-03T19:43:55Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.postgresql.org.pl/viewtopic.php?id=1425</id>
		<entry>
			<title type="html"><![CDATA[Odp: Dane lo i funkcja lo_export(lo, text)]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=3815#p3815"/>
			<content type="html"><![CDATA[Zgodnie z dokumentacją, 
[url]http://www.postgresql.org/docs/9.1/static/lo-funcs.html[/url]

[quote]
 These two functions read and write files in the server's file system, using the permissions of the database's owning user. Therefore, their use is restricted to superusers.
[/quote]

Wykonujesz to polecenie jako admin?

Tu masz dokumentację odnośnie 'client-side interfaces' [url]http://www.postgresql.org/docs/9.1/static/lo-interfaces.html[/url]]]></content>
			<author>
				<name><![CDATA[rski]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=26</uri>
			</author>
			<updated>2012-12-03T19:43:55Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=3815#p3815</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Dane lo i funkcja lo_export(lo, text)]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=3814#p3814"/>
			<content type="html"><![CDATA[Witam

Chcialem wyciagnac zapisany w bazie pli lo

Tabela ma pole dokument (lo), id (integer) i nazwa_pliku

Probowalem uzyc funkcj w zapytaniu :

SELECT lo_export(dokument, '/tmp/test.pdf') 
FROM g.adm_bloby_wydruki  
    WHERE id = 1;

Po wywolaniu takiego selecta, postgres zwraca kompunkat 

BŁĄD:  funkcja lo_export(lo, text) nie istnieje

A fizycznie jest ta funkcja w schemacie pg_catalog

Czy musze doinstalowac jakis jezyk ? lub cos ?

Pozdrawiam]]></content>
			<author>
				<name><![CDATA[gafel88]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=1160</uri>
			</author>
			<updated>2012-12-03T18:09:47Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=3814#p3814</id>
		</entry>
</feed>
