Questions about moving a restoring a dump from 8.1.11 to 8.2.16

--_000_1CA7FF980DA3824F9A5C31532B7A40DCC50DE3C7LCXCLMB01LCDS LO_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi!

I shut down the database to upgrade from 8.1.11 to 8.2.16. We use pg_du=
mp
to dump and psql with the < sign to restore. But I had a problem with resto=
ring the
dump. I got a

ERROR: function "snb_ru_init(internal)" does not exist
CONTEXT: COPY pg_ts_dict, line 3, column dict_init: "snb_ru_init(internal)=
"

and I found this page on how to fix it:
http://www.penguinlinux.com/blog/lamp/tsearch2-with-postgres ql-82-errors/

Except I don't understand the steps that author has laid out. Especially
step 3.

Could some step me through this or do anybody have a better way to upgrade =
to
postgres 8.2.16?

Thanks,
Tino


--_000_1CA7FF980DA3824F9A5C31532B7A40DCC50DE3C7LCXCLMB01LCDS LO_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
[at] font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
[at] font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
..MsoChpDefault
{mso-style-type:export-only;}
[at] page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal>Hi!<o:p></o:p></p>

<p class=3DMsoNormal><o:p> </o:p></p>

<p class=3DMsoNormal>    I shut down the database to upgrade=
from
8.1.11 to 8.2.16. We use pg_dump<o:p></o:p></p>

<p class=3DMsoNormal>to dump and psql with the < sign to restore. But I =
had a
problem with restoring the <o:p></o:p></p>

<p class=3DMsoNormal>dump. I got a <o:p></o:p></p>

<p class=3DMsoNormal><o:p> </o:p></p>

<p class=3DMsoNormal>ERROR:  function "snb_ru_init(internal)"=
; does
not exist<o:p></o:p></p>

<p class=3DMsoNormal>CONTEXT:  COPY pg_ts_dict, line 3, column dict_in=
it:
"snb_ru_init(internal)"<o:p></o:p></p>

<p class=3DMsoNormal><o:p> </o:p></p>

<p class=3DMsoNormal>and I found this page on how to fix it:<o:p></o:p></p>

<p class=3DMsoNormal><a
href=3D"http://www.penguinlinux.com/blog/lamp/tsearch2-with- postgresql-82-e=
rrors/">http://www.penguinlinux.com/blog/lamp/tsearch2-with- postgresql-82-e=
rrors/</a><o:p></o:p></p>

<p class=3DMsoNormal><o:p> </o:p></p>

<p class=3DMsoNormal>Except I don't understand the steps that author has la=
id
out.  Especially <o:p></o:p></p>

<p class=3DMsoNormal>step 3. <o:p></o:p></p>

<p class=3DMsoNormal><o:p> </o:p></p>

<p class=3DMsoNormal>Could some step me through this or do anybody have a b=
etter
way to upgrade to<o:p></o:p></p>

<p class=3DMsoNormal>postgres 8.2.16?<o:p></o:p></p>

<p class=3DMsoNormal><o:p> </o:p></p>

<p class=3DMsoNormal>Thanks,<o:p></o:p></p>

<p class=3DMsoNormal>Tino<o:p></o:p></p>

<p class=3DMsoNormal><o:p> </o:p></p>

</div>

</body>

</html>

--_000_1CA7FF980DA3824F9A5C31532B7A40DCC50DE3C7LCXCLMB01LCDS LO_--
tdai [ Fr, 26 März 2010 02:43 ] [ ID #2036718 ]

Re: Questions about moving a restoring a dump from 8.1.11 to 8.2.16

"Dai, Tino" <tdai [at] loc.gov> writes:
> I shut down the database to upgrade from 8.1.11 to 8.2.16. We use pg_dump
> to dump and psql with the < sign to restore. But I had a problem with restoring the
> dump. I got a

> ERROR: function "snb_ru_init(internal)" does not exist
> CONTEXT: COPY pg_ts_dict, line 3, column dict_init: "snb_ru_init(internal)"

Is that really the first error you got? It looks like you've neglected
to provide contrib/tsearch2 in the new installation.

regards, tom lane

--
Sent via pgsql-admin mailing list (pgsql-admin [at] postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Tom Lane [ Fr, 26 März 2010 03:19 ] [ ID #2036719 ]

Re: Questions about moving a restoring a dump from 8.1.11to 8.2.16

Hi Tom,

> Is that really the first error you got? It looks like you've neglected
> to provide contrib/tsearch2 in the new installation.

I actually double checked that I did have the tsearch2.so in my pgsql/lib d=
irectory.
What I was doing was not running the tsearch2.sql in the share/contrib dire=
ctory. Rather
I was dumping and the directly restoring into the 8.2 database.

What I did do was to import the share/contrib/tsearch2.sql into my database=
and then restore the dump
after that. I noticed some errors about not being able to create and modify=
the pg_ts_* tables
but didn't worry about that. It looked like all the tables are in and the p=
g_ts_* tables look good
too (compared them to the 8.1.11 pg_ts_* tables).

Thanks!
-Tino

--
Sent via pgsql-admin mailing list (pgsql-admin [at] postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
tdai [ Fr, 26 März 2010 05:40 ] [ ID #2036720 ]
Datenbanken » gmane.comp.db.postgresql.admin » Questions about moving a restoring a dump from 8.1.11 to 8.2.16

Vorheriges Thema: Database size growing over time and leads to performance impact
Nächstes Thema: pg_stat: last vacuum and analyze times are not being updated - v8.3.5