Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Novice > Automatic SQL c...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 3151 of 3323
Post > Topic >>

Automatic SQL command execution

by yos.sunitiyoso@[EMAIL PROTECTED] ("Yos Sunitiyoso") Jun 27, 2008 at 10:08 AM

Dear all,

I am new to PostgreSQL and have just started using it for a few weeks.
I have a (probably very simple) question regarding an execution of a
SQL command which is automatically repeated every period of time. For
example, I want to copy a txt file into a table (e.g. with command
COPY traffic FROM 'C:/TEMP/flow.txt' ) every 5 minutes.  The
'flow.txt' file is produced by an external system and updated (by
overwriting it) every 5 minutes. Can anyone let me know how to do it
or where to put the command in PostgreSQL to automate the execution of
the copy command according to time?
Many thanks in advance.

Yos

-- 
Sent via pgsql-novice mailing list (pgsql-novice@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-novice
 




 5 Posts in Topic:
Automatic SQL command execution
yos.sunitiyoso@[EMAIL PRO  2008-06-27 10:08:11 
Re: Automatic SQL command execution
sdavis2@[EMAIL PROTECTED]  2008-06-27 08:02:33 
Re: Automatic SQL command execution
lewisc@[EMAIL PROTECTED]   2008-07-01 11:27:22 
Re: Automatic SQL command execution
robe.dnd@[EMAIL PROTECTED  2008-07-01 15:30:07 
Re: Automatic SQL command execution
yos.sunitiyoso@[EMAIL PRO  2008-07-02 10:42:48 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 5:45:28 CST 2008.