From: Kashia Buch Date: 2006-11-17T05:01:14+09:00 Subject: Re: Postgres/Postgres-pr - some confusion Hi, >> orking. But, when I try and the the PGConn.quote method, ruby PGconn.escape(str) should be available. >> the correct libraries. I thought that the postgres-pr library was a >> wrapper for the postgres.c library? >> >> > I thought the same thing until I was writing some basic queries using the > connection and pgresult. The result type is different between the two. > I've moved away from using postgres-pr because of the inconsistencies and > belief that the c client will be faster anyway. Yes, the c extension is much better, not perfect though. When you have a look at Og (get 0.40 via rubygems), you'll see that a few things have to be done to make the -pr more compatible to the c ext. og/lib/og/adapter/postgresql/override.rb I think it was Neumann who made the postgres-pr wrapper, which is a thin layer around the dbi lib as far as I remember, it is pure Ruby, no C involved. Kash -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/