From: Steven Klassen <sklassen@commandprompt.com>
To: C. Bensend <benny@bennyvision.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Inserting into table only if the row does not already
Date: Sat, 16 Oct 2004 17:49:29 -0700
Message-ID: <20041017004929.GB19149@commandprompt.com> (raw)
In-Reply-To: <64883.63.227.74.41.1097846113.squirrel@63.227.74.41>
References: <56362.63.227.74.41.1097813923.squirrel@63.227.74.41>
<87hdow4ld1.fsf@stark.xeocode.com>
<64883.63.227.74.41.1097846113.squirrel@63.227.74.41>
* C. Bensend <benny@bennyvision.com> [2004-10-15 08:14:51 -0500]:
> Concurrency shouldn't be an issue - this is a perl script running
> from cron. The only concurrency that will ever happen is if I'm a
> bonehead and I run the script manually right as cron kicks off
> another copy.
Even cron'd scripts can run amok. Lock files are great as a CYA
measure even if you're relatively certain there will be no opportunity
for one copy to step on the next.
I once had a cron'd script mail upper management every hour I was on
vacation. You can imagine how long it was until I got another vacation
request approved. ;)
--
Steven Klassen - Lead Programmer
Command Prompt, Inc. - http://www.commandprompt.com/
PostgreSQL Replication & Support Services, (503) 667-4564
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: sklassen@commandprompt.com, benny@bennyvision.com
Subject: Re: Inserting into table only if the row does not already
In-Reply-To: <20041017004929.GB19149@commandprompt.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox