X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id B7EB2D1B433 for ; Mon, 15 Dec 2003 17:30:15 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 82407-06 for ; Mon, 15 Dec 2003 13:29:53 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 13929D1B47E for ; Mon, 15 Dec 2003 13:29:47 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id hBFHTpU6037290 for ; Mon, 15 Dec 2003 17:29:51 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id hBFH4C7s002313 for pgsql-general@postgresql.org; Mon, 15 Dec 2003 17:04:12 GMT From: William Yu X-Newsgroups: comp.databases.postgresql.general Subject: Re: FoxPro Vs. PostgreSQL Date: Mon, 15 Dec 2003 09:04:10 -0800 Organization: Hub.Org Networking Services Lines: 44 Message-ID: References: <001a01c3c2e0$e093a0a0$6ac9280a@domw2k.int> <3FDD7CA6.5070200@sancharnet.in> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@news.hub.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en In-Reply-To: <3FDD7CA6.5070200@sancharnet.in> To: pgsql-general@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/1069 X-Sequence-Number: 54462 Sai Hertz And Control Systems wrote: > This was great help loads of thanks > Now its upto me to convert it into laymans language. Those limitations don't really describe what the real problems of FoxPro are. I've used FoxPro since the days it was a product of Fox Corporation so I know indepth all the issues. The biggest problem: completely and absolutely multi-user unsafe. If two machines try to update the same record and append to the safe table, one of the following things may occur: 1) One machine gets stuck "waiting to lock" and never ever ever comes back to life. 70% 2) FoxPro on one or both machines immediately crashes with a Windows exception error. 25% 3) Indexes get corrupted 4% 4) A garbage record is inserted 1% There is a way to solve the multi-user problem but it requires you to write your own table/record locking mechanisms. Basically, if you try to use FoxPro's RLOCK() or LOCK(), you are screwed. However, exclusive file handles on a shared network drive seemed pretty solid. (My experience on SAMBA, Netware and NT server -- dunno about Win98 file sharing though.) You just suffer a huge performance penalty as file creation/directory scanning incurs a high overhead. You also run the risk where if your code doesn't release locks, nobody else could ever do any transactions since they aren't auto released when a table is closed or a record pointer moved. Indexes also always get corrupted sooner or later whenever you exceed a table size threshold. Corruption of indexes will exhibit the following symptoms: 1) Searches get stuck in infinite loops 60% 2) Searches return the wrong results 30% 3) FoxPro crahses with a Windows exception error 5% 4) FoxPro just simply shuts down without any notification 5% Now, that being said, we still use FoxPro at our company. There are some things it is really good for like processing & manipulating bulk data. If I had to use perl or java or whatever to process comma delimited files or badly maintained excel spreadsheets, I would go nuts. There's just so many commands for manipulating data that make life much easier. We then use ODBC to update the "final" versions residing on Postgresql.