> Usually people just make sure inserts/updates to the photo table is > done in a transaction and if that transaction succeeds or fails, it > does the appropriate write/delete on the file system.
I could perhaps be better about "rolling back" file system actions if a DB transaction files. I'll be looking more into the cause today. Initial findings suggest that there was import issue with legacy data long ago, and a significant issue may not even remain in in the current code. > But since you're using PostgreSQL ( my favorite database and a large > part of my consulting practice ) you could even go so far as to write a > few pl/perl stored procedures to handle keeping the file system in sync > with the database. Ah, interesting idea. I'll keep that in mind. I'll have to deal with the hoop that the image storage server is currently not accessible from the master PostgreSQL server. Mark -- . . . . . . . . . . . . . . . . . . . . . . . . . . . Mark Stosberg Principal Developer [EMAIL PROTECTED] Summersault, LLC 765-939-9301 ext 202 database driven websites . . . . . http://www.summersault.com/ . . . . . . . .