Re: [ADMIN] how to make a trigger to copy files.

2005-01-23 Thread Michael Fuhr
On Sun, Jan 23, 2005 at 01:47:53PM -0500, Mitchell Laks wrote: > Could i create a database trigger to run a script like > system("scp $filename $destination"); > where $filename is extracted from the entry just made into the database, and > $destination is my other pc? You can use procedural la

Re: [ADMIN] how to make a trigger to copy files.

2005-01-23 Thread Tom Lane
Mitchell Laks <[EMAIL PROTECTED]> writes: > I would like my server to immediately "scp" the file to another machine, as > soon as the application updates the table with the new entry. > But when i look for sample triggers on the web they seem to only do things > internal to the database (change

[ADMIN] how to make a trigger to copy files.

2005-01-23 Thread Mitchell Laks
Hi. I have a postgresql database backed application. As soon as the application stores a file on my server, it creates a entry in a table LOCATION_TABLE which stores the file location in the table in my postgresql database (eg. in LOCATION_TABLE in database MASTER). I have read about triggers