That one crossed my mind, yes. But as far as I can see, the GUID is not a standard object in postGres/postGIS. And since I am using INSERT INTO (cols) SELECT cols_field FROM...
It seems a bit useless to use the php uniqid function because that would mean that I would slow down my proces significantly; - count rows; for each row generate GUID and insert into... while now I have - insert into for all rows at once. > You might try using a GUID > > http://www.codeproject.com/netcf/PPCGuidGen.asp#The_GUID_Format > > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > [EMAIL PROTECTED] > Sent: Monday, July 23, 2007 7:30 AM > To: postgis-users@postgis.refractions.net > Subject: [postgis-users] database wide unique ID > > Hello list! > > Thanks to you all I have my first real import ready. Of course this is not > enough for my employer ;-) > > For some extra functionality that is needed, we need a database wide > unique ID. This is because our postGIS database will feed another (MSSQL) > database with some sort of key index. In the MSSQL database, no difference > is made between point,line and poly. Therefor my three tables (mypoint, > myline and mypoly) need to have system wide ID's so I can return a > relational table to MSSQL. > > Is there anyone that know how to generate a database wide unique ID? > > Thanks in advance! > > Milo van der Linden > > > _______________________________________________ > postgis-users mailing list > postgis-users@postgis.refractions.net > http://postgis.refractions.net/mailman/listinfo/postgis-users > > _______________________________________________ > postgis-users mailing list > postgis-users@postgis.refractions.net > http://postgis.refractions.net/mailman/listinfo/postgis-users > Milo van der Linden <a href="http://somafm.com/"><img src="http://somafm.com/linktous/450x25sfm1.gif" alt="SomaFM" border=0 width=450 height=25 ></a> _______________________________________________ postgis-users mailing list postgis-users@postgis.refractions.net http://postgis.refractions.net/mailman/listinfo/postgis-users