Received: from y2k.state.il.us (y2k.state.il.us [163.191.171.44]) by hub.org (8.9.3/8.9.3) with ESMTP id KAA59860 for ; Fri, 3 Dec 1999 10:54:18 -0500 (EST) (envelope-from rob@y2k.state.il.us) Received: from yk (yk [10.2.6.13]) by y2k.state.il.us (8.9.3/Pro-8.9.3) with SMTP id JAA00852; Fri, 3 Dec 1999 09:57:13 -0600 Message-Id: <3.0.6.32.19991203095216.0096ae20@y2k.state.il.us> X-Sender: rob@y2k.state.il.us X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Fri, 03 Dec 1999 09:52:16 -0600 To: Tom Lane From: Robert Hiltibidal Subject: Re: [INTERFACES] Postgres 6.5.1 Error Cc: pgsql-interfaces@postgreSQL.org, James_Jorgensen@cms.state.il.us, Don_Kupferschmid@cms.state.il.us In-Reply-To: <1582.944235339@sss.pgh.pa.us> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" 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