pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Hiltibidal <rob@y2k.state.il.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-interfaces@postgreSQL.org
Cc: James_Jorgensen@cms.state.il.us
Cc: Don_Kupferschmid@cms.state.il.us
Subject: Re: [INTERFACES] Postgres 6.5.1 Error
Date: Fri, 03 Dec 1999 09:52:16 -0600
Message-ID: <3.0.6.32.19991203095216.0096ae20@y2k.state.il.us> (raw)
In-Reply-To: <1582.944235339@sss.pgh.pa.us>
References: <Your message of Fri, 03 Dec 1999 08:57:22 -0600 <3.0.6.32.19991203085722.00969850@y2k.state.il.us>

Howdy,

>"Cascade failure" doesn't convey anything to me ... can you be more
>specific?  What error messages do you find in the postmaster log, if
>any?
>

I define a cascade failure as one application tying up so much processr
time and/or memory nothing else can work. Ultimately the server locks up if
I am unable to kill the process in time.

There are o errors listed in the postgres log. 


The query is dynamically generated. It works for 62 of the 63 agencies we
track. here is the pascal source code for generating the query:

BuffCode := 'Select distinct
propertyname,address,city,state,zip,recnum,agencyname from tblInfra where
agencycode = ';
SqlQuery := StrAlloc(Strlen(BuffCode) + StrLen(AgencyCode) + StrLen(Sort)+1);
StrPCopy(SqlQuery,BuffCode);   
 StrCat(SqlQuery,'''');   
 StrCat(SqlQuery,AgencyCode);   
 StrCat(SqlQuery,'''');   
 StrCat(SqlQuery,' order by ');   
 StrCat(SqlQuery,Sort);   
 StrCat(SqlQuery,',recnum ');   
 Results := DataEase(DBName,SqlQuery); 

So the query ends up being:

(Using DOT as anample)

SQLquery = Select distinct
propertyname,address,city,state,zip,recnum,agencyname from
tblInfra where agencycode = 'DOT' order by propertyname,recnum 

This works for all the other state agencies to date.

-Rob




view thread (3+ messages)

Message-ID: <3.0.6.32.19991203095216.0096ae20@y2k.state.il.us>
Permalink:  ../3.0.6.32.19991203095216.0096ae20@y2k.state.il.us/
Also on:    postgresql.org/message-id/3.0.6.32.19991203095216.0096ae20@y2k.state.il.us

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-interfaces@postgresql.org
  Cc: rob@y2k.state.il.us, tgl@sss.pgh.pa.us, James_Jorgensen@cms.state.il.us, Don_Kupferschmid@cms.state.il.us
  Subject: Re: [INTERFACES] Postgres 6.5.1 Error
  In-Reply-To: <3.0.6.32.19991203095216.0096ae20@y2k.state.il.us>
  References: <3.0.6.32.19991203095216.0096ae20@y2k.state.il.us>

* 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