Re: PQprintf

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Adam Siegel <adam(at)sycamorehq(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: PQprintf
Date: 2002-03-01 15:25:13
Message-ID: 28291.1014996313@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Adam Siegel <adam(at)sycamorehq(dot)com> writes:
> I have developed a function to help me with escaping strings more easily.
> It kind of behaves like printf and is very crude. Before I do anymore
> work, I was hoping to get some comments or notice if someone has already
> done this.

Seems like the start of a good idea, though I agree it's crude yet.
One thing you definitely need is more control over %f (precision
arguments).

One suggestion: use libpq's "pqexpbuffer.h" routines to manipulate the
expansible string buffer, instead of reinventing that wheel yet again.

regards, tom lane

In response to

  • PQprintf at 2002-03-01 13:45:22 from Adam Siegel

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas T. Thai 2002-03-01 15:27:17 Re: keyword (or fulltext) indexes, any planned developments?
Previous Message Thomas Lockhart 2002-03-01 15:21:01 Re: Bug #605: timestamp(timestamp('a timestamp)) no longer works