<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forum PostgreSQL - Migracja z Postgres 8.2 do 8.3 - problem z tsearch2.so ??]]></title>
	<link rel="self" href="http://forum.postgresql.org.pl/extern.php?action=feed&amp;tid=260&amp;type=atom"/>
	<updated>2009-07-28T12:11:38Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.postgresql.org.pl/viewtopic.php?id=260</id>
		<entry>
			<title type="html"><![CDATA[Odp: Migracja z Postgres 8.2 do 8.3 - problem z tsearch2.so ??]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=1100#p1100"/>
			<content type="html"><![CDATA[Huh ... poradzilem sobie ... ale olalem te bledy ...

Wszystko dziala poprawnie ... musze tylko w samej aplikacji pozmianiac niektore funkcje bo np:
[code]to_number('1234', 9999)[/code] jest niepoprawnie zapisane w 8.3 powinno byc:
[code]to_number('1234', '9999')[/code] 

A tak poza tym do doinstalowalem pl slownik do tsercha i wyniki sa oszalamiajace -> 

zapytanie bez tsearch: 116.418 ms 
zapytanie z tsearch: 3.385 ms

;) pozdrawiam ;)]]></content>
			<author>
				<name><![CDATA[v0jt4s]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=933</uri>
			</author>
			<updated>2009-07-28T12:11:38Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=1100#p1100</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: Migracja z Postgres 8.2 do 8.3 - problem z tsearch2.so ??]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=1099#p1099"/>
			<content type="html"><![CDATA[Funkcję,  ktore sa na mojej postawioanej na szybko bazie (standardowo zainstalowane)
[code]
postgres=# \df prsd*
                               List of functions
   Schema   |      Name      | Result data type |     Argument data types      
------------+----------------+------------------+------------------------------
 pg_catalog | prsd_end       | void             | internal
 pg_catalog | prsd_headline  | internal         | internal, internal, tsquery
 pg_catalog | prsd_lextype   | internal         | internal
 pg_catalog | prsd_nexttoken | internal         | internal, internal, internal
 pg_catalog | prsd_start     | internal         | internal, integer
[/code]
[code]
postgres=# \df tsquery*
                         List of functions
   Schema   |    Name     | Result data type | Argument data types 
------------+-------------+------------------+---------------------
 pg_catalog | tsquery_and | tsquery          | tsquery, tsquery
 pg_catalog | tsquery_cmp | integer          | tsquery, tsquery
 pg_catalog | tsquery_eq  | boolean          | tsquery, tsquery
 pg_catalog | tsquery_ge  | boolean          | tsquery, tsquery
 pg_catalog | tsquery_gt  | boolean          | tsquery, tsquery
 pg_catalog | tsquery_le  | boolean          | tsquery, tsquery
 pg_catalog | tsquery_lt  | boolean          | tsquery, tsquery
 pg_catalog | tsquery_ne  | boolean          | tsquery, tsquery
 pg_catalog | tsquery_not | tsquery          | tsquery
 pg_catalog | tsquery_or  | tsquery          | tsquery, tsquery
 pg_catalog | tsqueryrecv | tsquery          | internal
 pg_catalog | tsquerysend | bytea            | tsquery
[/code]

Sprawdź jak to wygląda u Ciebie i będziesz miał rozwiązanie swojego problemu.]]></content>
			<author>
				<name><![CDATA[rski]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=26</uri>
			</author>
			<updated>2009-07-27T14:15:56Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=1099#p1099</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: Migracja z Postgres 8.2 do 8.3 - problem z tsearch2.so ??]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=1098#p1098"/>
			<content type="html"><![CDATA[To z wersji 8.3.7
[code]
postgres=# \df to_number
                        List of functions
   Schema   |   Name    | Result data type | Argument data types 
------------+-----------+------------------+---------------------
 pg_catalog | to_number | numeric          | text, text
(1 row)
[/code]
więc twój problem z to_number jest prawdopodobnie związany z tym że nie rzutujesz argumentów.
[quote]
Database operation "select" failed (exception ERROR, "ERROR: function to_number(text, integer) does not exist LINE 7
[/quote]]]></content>
			<author>
				<name><![CDATA[rski]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=26</uri>
			</author>
			<updated>2009-07-27T14:09:42Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=1098#p1098</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: Migracja z Postgres 8.2 do 8.3 - problem z tsearch2.so ??]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=1097#p1097"/>
			<content type="html"><![CDATA[OK, chyba za długo siedze w oracle'u :).

A sprawdziłeś na bazie jak jest definiowana funkcje to_* i funkcje tsearchowe? (\df em)?]]></content>
			<author>
				<name><![CDATA[rski]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=26</uri>
			</author>
			<updated>2009-07-27T14:02:15Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=1097#p1097</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: Migracja z Postgres 8.2 do 8.3 - problem z tsearch2.so ??]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=1096#p1096"/>
			<content type="html"><![CDATA[No jezeli chodzi o to_number to moja wersja postgresa 8.2 obsluguje ta funkcje 
[code]SELECT to_number(to_char(CURRENT_TIMESTAMP, 'DD'),99) as data_dd from dual[/code] zwraca 27 (dzis ;)) czyli prawidlowo.
W linku ktory podales w poscie jest napisane:
[quote]Make to_timestamp() and to_date() assume TM (trim) option for potentially variable-width fields (Bruce) [/quote]
Czyli ze rozbudowali funkcjonalnosc czegos co istnialo.
W sumie to nie znalazlem tam nic co by mi pomoglo.

Moze ktos ma jeszcze jakis pomysl? 

pzdr W.]]></content>
			<author>
				<name><![CDATA[v0jt4s]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=933</uri>
			</author>
			<updated>2009-07-27T13:13:15Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=1096#p1096</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: Migracja z Postgres 8.2 do 8.3 - problem z tsearch2.so ??]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=1095#p1095"/>
			<content type="html"><![CDATA[Przyznam szczerze nie widzialem w postgresie funkcji to_numer i to_date, zreszta manual też na ich temat nic nie mówi (to raczej funkcje z oracle'a). Nie mam pod reka postgresa ale mozesz sprawdzic z klienta psql wpisujac
[code]
\df to_number
[/code]
jak wyskoczy to jest.

Możliwe że wbudowany w 8.3 tsearch trochę różni się od contribowego z wczesniejszych wersji. Trzeba by looknąć na definicje funkcji.

check_function_bodies jakos nigdy nie zdarzyło mi się użyć. Zakomentowana oznacza, że jest opcja włączona. Tu masz trochę więcej
[url]http://www.postgresql.org/docs/8.4/static/release-8-3.html[/url]]]></content>
			<author>
				<name><![CDATA[rski]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=26</uri>
			</author>
			<updated>2009-07-27T12:29:56Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=1095#p1095</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Migracja z Postgres 8.2 do 8.3 - problem z tsearch2.so ??]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=1094#p1094"/>
			<content type="html"><![CDATA[Witam.

  Mam problem podczas migracji postgresa z 8.2 na 8.3. A mianowicie w logach dostaje bledy typu jak ponizej:

[code]
ERROR:  could not find function "gtsq_in" in file "/usr/lib/postgresql/8.3/lib/tsearch2.so"
ERROR:  function public.gtsq_in(cstring) does not exist

ERROR: could not find function "tsquery_in" in file "/usr/lib/postgresql/8.3/lib/tsearch2.so"
ERROR:  function public.tsquery_in(cstring) does not exist

ERROR:  function "dex_init(internal)" does not exist
CONTEXT:  COPY pg_ts_dict, line 1, column dict_init: "dex_init(internal)"
ERROR:  function "prsd_getlexeme(internal,internal,internal)" does not exist
CONTEXT:  COPY pg_ts_parser, line 1, column prs_nexttoken: "prsd_getlexeme(internal,internal,internal)"

[/code]

to sa tylko przykladowe bledy, bo jest ich duzo wiecej i powtarzaja sie. ;\

Po odpaleniu strony, czesc rzeczy dziala, ale przy niektorych zapytaniach wyswietla bledy typu:
[code]
Database operation "select" failed (exception ERROR, "ERROR: function to_number(text, integer) does not exist LINE 7
[/code]
co jest dla mnie zagadką ;/
1. Czy funkcje typu to_number, to_date itp. nie sa wbudowanymi f-cjami w plsql?
2. Czy znaleziona linijka (#check_function_bodies = on) w posgresql.conf ktora jest zakomentowana moze miec cos z tym wspolnego? 

pozdrawiam
W.]]></content>
			<author>
				<name><![CDATA[v0jt4s]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=933</uri>
			</author>
			<updated>2009-07-27T11:26:33Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=1094#p1094</id>
		</entry>
</feed>
