Re: postgresql-7.2b3-betterquote.patch - Mailing list pgsql-patches

From Elliot Lee
Subject Re: postgresql-7.2b3-betterquote.patch
Date
Msg-id Pine.LNX.4.44.0203121531140.26113-200000@devserv.devel.redhat.com
Whole thread Raw
In response to Re: postgresql-7.2b3-betterquote.patch  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: postgresql-7.2b3-betterquote.patch
Re: postgresql-7.2b3-betterquote.patch
List pgsql-patches
On Mon, 4 Mar 2002, Bruce Momjian wrote:

> I am backing out this patch.  Please resubmit with this corrected.  Thanks.
>
> I am running Python 1.5.

Therein lies the problem... :)

Since it appears you have the requirement of supporting old python
versions, attached is just the pgdb.py part of the patch (with a fix for
DateTime handling). It has the same functionality but certainly won't be
quite as fast. Given the absence of _PyString_Join in python1.5, it's a
pain to get the C variants working for all versions. The pgdb.py patch
does leaves the hooks in, should someone wish to do the optimization at a
later point.

Hope this helps,
-- Elliot
Ever stop to think, and forget to start again?

Attachment

pgsql-patches by date:

Previous
From: "Ross J. Reedstrom"
Date:
Subject: Re: psql: backslash fix
Next
From: Bruce Momjian
Date:
Subject: Re: support for POSIX 1003.1-2001 hosts