[postgis-users] insert .sql using script
robe.dnd at cityofboston.gov
Tue Jul 29 04:21:13 PDT 2008
I would just write a shell script, php script, perl script whatever
script with a for loop in it that pauses and runs the same insert
You don't really need an sql file for any of those
a shell using psql can take an SQL statement with the -c switch and perl
php etc already have drivers for postgresql.
Hope that helps,
From: postgis-users-bounces at postgis.refractions.net
[mailto:postgis-users-bounces at postgis.refractions.net] On Behalf Of
Sent: Monday, July 28, 2008 11:20 PM
To: postgis-users at postgis.refractions.net
Subject: RE: [postgis-users] insert .sql using script
Thanks for the reply..
The reason why i want to do this is because i want to simulate real-time
data from gps collected table..
I have a gps record table, and i want to insert the record into the
every ten seconds
Obe, Regina DND\MIS wrote:
> Yes. Although it depends which environment you will be inserting
> psql may not be the best option. If it is not an autogenerated sql
> file, I'm not sure why you would be doing this or maybe I just don't
> quite understand what you are saying.
View this message in context:
Sent from the PostGIS - User mailing list archive at Nabble.com.
postgis-users mailing list
postgis-users at postgis.refractions.net
The substance of this message, including any attachments, may be
confidential, legally privileged and/or exempt from disclosure
pursuant to Massachusetts law. It is intended
solely for the addressee. If you received this in error, please
contact the sender and delete the material from any computer.
More information about the postgis-users