<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Forum PostgreSQL - Dane lo i funkcja lo_export(lo, text)]]></title>
		<link>https://forum.postgresql.org.pl/viewtopic.php?id=1425</link>
		<description><![CDATA[Najświeższe odpowiedzi w Dane lo i funkcja lo_export(lo, text).]]></description>
		<lastBuildDate>Mon, 03 Dec 2012 19:43:55 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Odp: Dane lo i funkcja lo_export(lo, text)]]></title>
			<link>https://forum.postgresql.org.pl/viewtopic.php?pid=3815#p3815</link>
			<description><![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]]]></description>
			<author><![CDATA[dummy@example.com (rski)]]></author>
			<pubDate>Mon, 03 Dec 2012 19:43:55 +0000</pubDate>
			<guid>https://forum.postgresql.org.pl/viewtopic.php?pid=3815#p3815</guid>
		</item>
		<item>
			<title><![CDATA[Dane lo i funkcja lo_export(lo, text)]]></title>
			<link>https://forum.postgresql.org.pl/viewtopic.php?pid=3814#p3814</link>
			<description><![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]]></description>
			<author><![CDATA[dummy@example.com (gafel88)]]></author>
			<pubDate>Mon, 03 Dec 2012 18:09:47 +0000</pubDate>
			<guid>https://forum.postgresql.org.pl/viewtopic.php?pid=3814#p3814</guid>
		</item>
	</channel>
</rss>
