Re: PQescapeBytea on Win32

From: "Key88 SF" <key88sf(at)hotmail(dot)com>
To: mail(at)joeconway(dot)com
Cc: pgman(at)candle(dot)pha(dot)pa(dot)us, pgsql-hackers(at)postgresql(dot)org
Subject: Re: PQescapeBytea on Win32
Date: 2003-03-18 06:21:56
Message-ID: F672VPwHsTpYmQz4lDP000021e2@hotmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Sure - I figured since it's a 1-line function, someone would just write it
themselves in the next release. But here it is attached. I'm not sure
exactly how you like your patches submitted, so here is a zip file with the
modified libpq-fe.h and fe-exec.c files.

The only change is the addition of:
PQescapeByteaFree(unsigned char *);

-Dave

>From: Joe Conway <mail(at)joeconway(dot)com>
>To: Key88 SF <key88sf(at)hotmail(dot)com>
>CC: pgman(at)candle(dot)pha(dot)pa(dot)us, pgsql-hackers(at)postgresql(dot)org
>Subject: Re: [HACKERS] PQescapeBytea on Win32
>Date: Mon, 17 Mar 2003 21:41:26 -0800
>MIME-Version: 1.0
>Received: from relay1.pgsql.com ([64.49.215.129]) by
>mc8-f12.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Mon, 17 Mar
>2003 21:43:59 -0800
>Received: from postgresql.org (postgresql.org [64.49.215.8])by
>relay1.pgsql.com (Postfix) with ESMTPid 33CF26F7766; Tue, 18 Mar 2003
>00:43:58 -0500 (EST)
>Received: from joeconway.com (66-146-172-86.skyriver.net [66.146.172.86])by
>postgresql.org (Postfix) with ESMTP id 4CC53474E4Ffor
><pgsql-hackers(at)postgresql(dot)org>; Tue, 18 Mar 2003 00:43:47 -0500 (EST)
>Received: from [192.168.5.3] (account jconway HELO joeconway.com) by
>joeconway.com (CommuniGate Pro SMTP 4.0.4) with ESMTP-TLS id 1667227; Mon,
>17 Mar 2003 22:19:54 -0800
>X-Message-Info: JGTYoYF78jEHjJx36Oi8+Q1OJDRSDidP
>X-Original-To: pgsql-hackers(at)postgresql(dot)org
>Message-ID: <3E76B186(dot)2050407(at)joeconway(dot)com>
>User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1)
>Gecko/20021130
>X-Accept-Language: en-us, en
>References: <F127CGlbZvFqV2mEIkL00001ff2(at)hotmail(dot)com>
>In-Reply-To: <F127CGlbZvFqV2mEIkL00001ff2(at)hotmail(dot)com>
>Precedence: bulk
>Sender: pgsql-hackers-owner(at)postgresql(dot)org
>Return-Path: pgsql-hackers-owner+M36957(at)postgresql(dot)org
>X-OriginalArrivalTime: 18 Mar 2003 05:44:00.0021 (UTC)
>FILETIME=[5FF98450:01C2ED11]
>
>Key88 SF wrote:
>>I suppose that is ok. But the default compiler flags in the provided
>>makefile for libpq is non-multithreaded. That should at least be fixed I
>>would think.
>>
>>If it's not a big deal for you, I would say that in the name of safety for
>>those people who don't look closely at these things, it would be better to
>>have the callback function to delete the memory and not have to assume
>>libpq is built with the correct c-runtimes...
>>
>
>Since you know exactly what's needed, and a project that needs it, why
>don't you submit a patch? ;-)
>
>Joe
>
>
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org

_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail

Attachment Content-Type Size
freebytea.zip application/x-zip-compressed 22.3 KB

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2003-03-18 06:22:34 Re: XML ouput for psql
Previous Message R Blake 2003-03-18 06:02:00 Re: anyone? CREATELANG in pgsql 7.3.2 failing