pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: William Yu <wyu@talisys.com>
To: pgsql-general@postgresql.org
Subject: Re: FoxPro Vs. PostgreSQL
Date: Mon, 15 Dec 2003 09:04:10 -0800
Message-ID: <brkpic$27v$1@news.hub.org> (raw)
In-Reply-To: <3FDD7CA6.5070200@sancharnet.in>
References: <001a01c3c2e0$e093a0a0$6ac9280a@domw2k.int>
	<3FDD7CA6.5070200@sancharnet.in>

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.




view thread (9+ messages)  latest in thread

Message-ID: <brkpic$27v$1@news.hub.org>
Permalink:  ../brkpic$27v$1@news.hub.org/
Also on:    postgresql.org/message-id/brkpic$27v$1@news.hub.org

 · 

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-admin@postgresql.org
  Cc: wyu@talisys.com, pgsql-general@postgresql.org
  Subject: Re: FoxPro Vs. PostgreSQL
  In-Reply-To: <brkpic$27v$1@news.hub.org>
  References: <001a01c3c2e0$e093a0a0$6ac9280a@domw2k.int> <3FDD7CA6.5070200@sancharnet.in> <brkpic$27v$1@news.hub.org>

* 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