[postgis-users] trouble with moving data

Sears, Jeremy Jeremy.Sears at CCRS.NRCan.gc.ca
Wed Nov 16 08:35:11 PST 2005


Thanks Mark!
Ill give that a try.

-----Original Message-----
From: postgis-users-bounces at postgis.refractions.net
[mailto:postgis-users-bounces at postgis.refractions.net]On Behalf Of Mark
Cave-Ayland
Sent: November 16, 2005 11:30 AM
To: 'PostGIS Users Discussion'
Subject: RE: [postgis-users] trouble with moving data



> -----Original Message-----
> From: postgis-users-bounces at postgis.refractions.net 
> [mailto:postgis-users-bounces at postgis.refractions.net] On 
> Behalf Of Sears, Jeremy
> Sent: 16 November 2005 15:20
> To: 'PostGIS Users Discussion'
> Subject: RE: [postgis-users] trouble with moving data
> 
> 
> Mark,
> Thanks for the response. I think this topic should indeed be 
> featured more prominently in an FAQ or on the Wiki. 
> 
> I am still not able load the data into the new db with out 
> error. I have used postgis_restore.pl however with no 
> success. When I run the script, I am prompted for password 
> three times. On the third time It alaways bails indicating 
> that the password is incorrect. This is odd because its the 
> same pass I had already entered twice! ... I suspect the 
> wires may be crossed somewhere in the user access dept.
> 
> When I am installing PostgreSQL 8.1, should I opt to have 
> POSTgis installed as well or should I opt out of this option 
> and let 'postgis_restore.pl' install it for me?
> 
> Best Regards
> Jeremy


Hi Jeremy,

My guess would be that you are executing postgis_restore.pl from the command
prompt and so it is picking up the name of your Windows user instead of the
username of the database superuser. You should be able to use the PGUSER
environmental variable to override this, e.g.:

set PGUSER=pg81
postgis_restore.pl lwpostgis.sql new_database dump_file > restore.log


Kind regards,

Mark.

------------------------
WebBased Ltd
17 Research Way
Plymouth
PL6 8BT

T: +44 (0)1752 797131
F: +44 (0)1752 791023

http://www.webbased.co.uk   
http://www.infomapper.com 
http://www.swtc.co.uk  

This email and any attachments are confidential to the intended recipient
and may also be privileged. If you are not the intended recipient please
delete it from your system and notify the sender. You should not copy it or
use it for any purpose nor disclose or distribute its contents to any other
person.


_______________________________________________
postgis-users mailing list
postgis-users at postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users



More information about the postgis-users mailing list