Re: [OT] Dilemma about OS <-> Postgres interaction

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: Edmund Bacon <ebacon(at)onesystem(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [OT] Dilemma about OS <-> Postgres interaction
Date: 2004-06-17 22:53:31
Message-ID: 40D220EB.80802@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


> Assuming you are on a unix of some sort, Two possible solutions come
> immediately to mind.
>
> 1) Fire off a non-looping version of your perl scrip from crontab
>
> 2) Run your looping perl script from the inittab.

Be very careful here at least if you are running Linux. Linux init is
notorious for self made DOS attacks. Basically the init runs out of
control because of a bad script and brings the machine to it's knees.

>
> the crontab solution would be my preference: it's easier to set up the job
> to run under a user other than root, and you can tailor when your script
> runs (say every 5 minutes between 8:00 AM and 6:00 PM Monday to Friday).
>
> In both cases, you'd probably want to add some tests to see if your database
> was up before trying to connect
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
> joining column's datatypes do not match

--
Command Prompt, Inc., home of Mammoth PostgreSQL - S/ODBC and S/JDBC
Postgresql support, programming shared hosting and dedicated hosting.
+1-503-667-4564 - jd(at)commandprompt(dot)com - http://www.commandprompt.com
Mammoth PostgreSQL Replicator. Integrated Replication for PostgreSQL

Attachment Content-Type Size
jd.vcf text/x-vcard 640 bytes

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Rory Campbell-Lange 2004-06-17 23:25:37 Re: [OT] Dilemma about OS <-> Postgres interaction
Previous Message Jeff - Webmaster 2004-06-17 22:50:32 Connection Problem to DB Table