Home > Archive > PHP with PostgreSQL > September 2005 > Error restoring









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Error restoring
Partners - Majolee InfoTech

2005-09-28, 3:25 am



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.
John DeSoi

2005-09-28, 1:24 pm


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

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com