Error restoring

This is a multi-part message in MIME format.

------=_NextPart_000_0053_01C5C42D.660DCCC0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable



Hello,

We have taken a pg_dump of version 8.0.3 db.

now at a different machine we are trying to restore but the plpgsql =
functions are having $_$ after "as" and after "end;". This is causing =
errors while restoring. Do anyone know how to get rid of this easily.

Thanks.
------=_NextPart_000_0053_01C5C42D.660DCCC0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2722" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><BR><FONT face=3DArial size=3D2>Hello,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>We have taken a pg_dump of version =
8.0.3
db.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>now at a different machine we are =
trying to restore
but the plpgsql functions are having $_$ after "as" and after "end;". =
This is
causing errors while restoring. Do anyone know how to get rid of this
easily.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks.</FONT></DIV></BODY></HTML>

------=_NextPart_000_0053_01C5C42D.660DCCC0--
Majolee InfoTech [ Mi, 28 September 2005 09:36 ] [ ID #987834 ]

Re: Error restoring

On Sep 28, 2005, at 3:36 AM, Partners - Majolee InfoTech wrote:

> now at a different machine we are trying to restore but the plpgsql
> functions are having $_$ after "as" and after "end;". This is
> causing errors while restoring. Do anyone know how to get rid of
> this easily.

Dollar quoting was not implemented until PostgreSQL 8.0. Are you
trying to restore to an earlier version? If so you have to change the
$_$ to single quotes and then appropriately escape any quotes in the
function body.



John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL


---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings
John DeSoi [ Mi, 28 September 2005 19:15 ] [ ID #987838 ]
Datenbanken » gmane.comp.db.postgresql.php » Error restoring

Vorheriges Thema: exec format
Nächstes Thema: postmaster does not start