<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forum PostgreSQL - [ERROR] could not open server file]]></title>
	<link rel="self" href="http://forum.postgresql.org.pl/extern.php?action=feed&amp;tid=1920&amp;type=atom"/>
	<updated>2013-12-08T22:36:32Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.postgresql.org.pl/viewtopic.php?id=1920</id>
		<entry>
			<title type="html"><![CDATA[Odp: [ERROR] could not open server file]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=4870#p4870"/>
			<content type="html"><![CDATA[To działa! Dzięki wielkie za pomoc!]]></content>
			<author>
				<name><![CDATA[bodrek]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=1688</uri>
			</author>
			<updated>2013-12-08T22:36:32Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=4870#p4870</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: [ERROR] could not open server file]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=4869#p4869"/>
			<content type="html"><![CDATA[To ewidentnie brak uprawnień do pliku lub katalogu. Prawdopodobnie serwer PHP działa z innymi uprawnieniami niż postgres, a ponieważ to on wgrywa plik do katalogu to postgres nie ma do niego dostępu. Wgraj jakiś plik ręcznie i sprawdź czy się załaduje, w Panelu sterowania (usługi)  sprawdź na jakim koncie działa serwer www i popraw uprawnienia do katalogu files.]]></content>
			<author>
				<name><![CDATA[c_michal]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=627</uri>
			</author>
			<updated>2013-12-08T22:30:54Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=4869#p4869</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: [ERROR] could not open server file]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=4868#p4868"/>
			<content type="html"><![CDATA[ERROR: could not open server file "files/images (2).jpg": Permission denied
SQL state: 42501

Trochę bardziej rozbuduję wątek:
Napisałem w php prostu uploader do plików - gdzie wybieram sobie plik, który mi przenosi własnie do tego katalogu - w tym wypadku teraz files. I to działa. W momencie, kiedy wybieram plik - który został przeniesiony postgres odmawia mi dostępu do tego pliku.]]></content>
			<author>
				<name><![CDATA[bodrek]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=1688</uri>
			</author>
			<updated>2013-12-08T22:24:44Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=4868#p4868</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: [ERROR] could not open server file]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=4867#p4867"/>
			<content type="html"><![CDATA[wykonaj
insert into "Pliki danych" values ('25','images (2).jpg','C:/Program Files/PostgreSQL/9.3/data/files/','2',lo_import('files/images (2).jpg'))

zmien tylko ID]]></content>
			<author>
				<name><![CDATA[c_michal]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=627</uri>
			</author>
			<updated>2013-12-08T22:15:22Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=4867#p4867</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: [ERROR] could not open server file]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=4866#p4866"/>
			<content type="html"><![CDATA[Tak: Query returned successfully: one row affected, 10 ms execution time.

Zacząłem grzebać z prawami plików - tzn. jak udostępniłem ten folder z plikami w sieci - to polecenie działa mi dla plików, ktore były udostępnione razem z folderem.W momencie gdy wklejam nowy plik do tego folderu, on nie dziedziczy tego udostępniania i postgres odmawia mi dostępu do pliku.]]></content>
			<author>
				<name><![CDATA[bodrek]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=1688</uri>
			</author>
			<updated>2013-12-08T22:14:15Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=4866#p4866</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: [ERROR] could not open server file]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=4865#p4865"/>
			<content type="html"><![CDATA[a czy działa ci polecenie
insert into "Pliki danych" values ('25','images (2).jpg','C:/Program Files/PostgreSQL/9.3/data/files/','2',lo_import('pg_version'));?]]></content>
			<author>
				<name><![CDATA[c_michal]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=627</uri>
			</author>
			<updated>2013-12-08T22:10:29Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=4865#p4865</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: [ERROR] could not open server file]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=4864#p4864"/>
			<content type="html"><![CDATA[Chcę uploadować plik do bazy danych z polecenia lo_import()
a dokładniej próbuję wykonać komendę:

insert into "Pliki danych" values ('25','images (2).jpg','C:/Program Files/PostgreSQL/9.3/data/files/','2',lo_import('C:/Program Files/PostgreSQL/9.3/data/files/images (2).jpg'))]]></content>
			<author>
				<name><![CDATA[bodrek]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=1688</uri>
			</author>
			<updated>2013-12-08T22:03:35Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=4864#p4864</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: [ERROR] could not open server file]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=4863#p4863"/>
			<content type="html"><![CDATA[A jakiego polecenia dokładnie używasz? Co dokładnie chcesz osiągnąć?]]></content>
			<author>
				<name><![CDATA[c_michal]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=627</uri>
			</author>
			<updated>2013-12-08T22:01:03Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=4863#p4863</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: [ERROR] could not open server file]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=4862#p4862"/>
			<content type="html"><![CDATA[Wgrałem, ale to nadal nie pomogło:

ERROR: could not open server file "C:/Program Files/PostgreSQL/9.3/data/images (3).jpg": Permission denied

Jakiś inny pomysł?]]></content>
			<author>
				<name><![CDATA[bodrek]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=1688</uri>
			</author>
			<updated>2013-12-08T21:55:20Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=4862#p4862</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: [ERROR] could not open server file]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=4861#p4861"/>
			<content type="html"><![CDATA[Postgres ze względów bezpieczeństwa może czytać pliki, które są w podkatalogu data, wgraj swój plik do katalogu
C:/Program Files/PostgreSQL/9.3/data/images (3).jpg]]></content>
			<author>
				<name><![CDATA[c_michal]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=627</uri>
			</author>
			<updated>2013-12-08T21:48:57Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=4861#p4861</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[[ERROR] could not open server file]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=4860#p4860"/>
			<content type="html"><![CDATA[Witam,

Mam zainstalowanego postgresa na windows xp - stworzone konto systemowa postgres z uprawnieniami administratora - ale kiedy próbuję odwołać się do pliku - dostaję błąd. Próbowałem nawet ustawiać, żeby użytkownik postgres był właścicielem tego folderu - ale nic nie pomaga. Macie jakieś pomysły ?

Query failed: ERROR: could not open server file "C:/Program Files/PostgreSQL/images (3).jpg": Permission denied]]></content>
			<author>
				<name><![CDATA[bodrek]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=1688</uri>
			</author>
			<updated>2013-12-08T17:32:10Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=4860#p4860</id>
		</entry>
</feed>
