[postgis-users] public schema question

Sears, Jeremy Jeremy.Sears at CCRS.NRCan.gc.ca
Fri Jan 20 10:49:44 PST 2006


Thanks Don,
I just ran  'select probe_geometry_columns();' and it seemd to have done the
trick!
 
Jeremy

-----Original Message-----
From: postgis-users-bounces at postgis.refractions.net
[mailto:postgis-users-bounces at postgis.refractions.net]On Behalf Of Don Drake
Sent: January 20, 2006 1:46 PM
To: 'PostGIS Users Discussion'
Subject: RE: [postgis-users] public schema question



I just did the upgrade on our production server and had the same problem.  

 

The fix is to restore it from your backup (pain) or just run 'select
probe_geometry_columns()', one of the best PostGIS function out there.
Lucky for me, I didn't have to restore it from my 100+ GB backup.

 

I love PostGIS, I hate upgrading....

 

-Don

 


  _____  


From: postgis-users-bounces at postgis.refractions.net
[mailto:postgis-users-bounces at postgis.refractions.net] On Behalf Of Sears,
Jeremy
Sent: Friday, January 20, 2006 10:48 AM
To: 'PostGIS Users Discussion'
Subject: [postgis-users] public schema question

 

Hi All,

Im seeking advice on the following,

I have recently preformed a restore on a post enabled database. Everything
looks fine except for the 'geometry_columns' table in the 'public' schema.
In my original database this table seems to hold records of all of the
geomerty columns from other tables, however in the new database this table
has no records. Have I missed somthing in the process or restoring the
database? What do I need to do to populate (fix) my 'geometry_columns'
table??

 

Best Regards

Jeremy

-----Original Message-----
From: postgis-users-bounces at postgis.refractions.net
[mailto:postgis-users-bounces at postgis.refractions.net]On Behalf Of Mario
Servin
Sent: January 20, 2006 11:01 AM
To: PostGIS Users Discussion
Subject: Re: [postgis-users] Upgrading from PostgreSQL 8.0 with PostGIS 0. 9
to PostgreSQL 8.1 with PostGIS 1.0

Thanks Jeremy. I used that and now postgis_restore works to the end.
Unfortunately the geom column of my data again appear as a strange string of
characters where I expected to see something as POINT, LINE etc. I do not
know what else can I do ..... 

 

On 1/20/06, Sears, Jeremy < Jeremy.Sears at ccrs.nrcan.gc.ca
<mailto:Jeremy.Sears at ccrs.nrcan.gc.ca> > wrote: 

>>The postgis_restore.pl could create the dump list and also the dump ascii
but then gives an error because it does not allow me to write down the
password at the next >>step. 

 

I was having a simmilar problem. Each time I'd run postgis_restore.pl It
would promt for my password 3 time before bailing, indicating that the
password was incorrect. It was pointed out to me that this can be avoided by
setting the following environment variables, PGUSER and PGPASSWORD. I also
found it useful to specify PGHOST, PGPORT, and PGDATA as well. You can set
the env variable at the cmmd prompt like this: 

 

>set PGUSER=username

 

or you can set the in controlpanel-->system-->advanced-->

 

hope that helps

Jeremy



 

 

-----Original Message-----
From: postgis-users-bounces at postgis.refractions.net
<mailto:postgis-users-bounces at postgis.refractions.net>  [mailto:
postgis-users-bounces at postgis.refractions.net
<mailto:postgis-users-bounces at postgis.refractions.net> ]On Behalf Of Mario
Servin
Sent: January 20, 2006 10:06 AM
To: postgis-users at postgis.refractions.net
<mailto:postgis-users at postgis.refractions.net> 
Subject: [postgis-users] Upgrading from PostgreSQL 8.0 with PostGIS 0.9 to
PostgreSQL 8.1 with PostGIS 1.0

Hi everybody,

I failed completely to restore my data from a PostgreSQL 8.0 with PostGIS
0.9 to PostgreSQL 8.1 with PostGIS 1.0. I have both versions of PosgreSQL
running in Windows. I follow instructions in PostGIS docs from the
PostgreSQL installation for upgrading. The postgis_restore.pl could create
the dump list and also the dump ascii but then gives an error because it
does not allow me to write down the password at the next step. As I know
something about Perl I tried to modify the script without success. 

Additionally, I still have the results from the old shp2pgsql and so I tried
to insert the data form psql using \i mysqlinsertionscript.sql. Tables are
created ok, but geom columns results in meaningless characters where it is
supossed to be something like "POINT (- 66.046532 -21.951437)" for example.

Can anybody help me?.

Regards,

            Mario Servin


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



 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20060120/7dc36f26/attachment.html>


More information about the postgis-users mailing list