From: | Greg Stark <gsstark(at)mit(dot)edu> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Greg Stark <gsstark(at)mit(dot)edu>, pgsql-hackers(at)postgresql(dot)org, Abhijit Menon-Sen <ams(at)oryx(dot)com> |
Subject: | Re: Nearing final release? |
Date: | 2004-10-17 05:10:14 |
Message-ID: | 87fz4e2amh.fsf@stark.xeocode.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:
> Greg Stark <gsstark(at)mit(dot)edu> writes:
> > Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > > * synchonize supported encodings and docs
>
> > Is this Abhijit's patch to add PQprepare() and PQsendPrepare()?
>
> No ... does it look like it?
Er, oops. I quoted the wrong line. The line I meant to quote was:
> > > * allow libpq to check parameterized data types
Which is slightly more plausible.
> > I'm not sure whether the patch he sent is adequate, I looked at it
> > myself and was a bit skeptical. But he said my concerns were
> > misplaced.
>
> [ looks... ] The patch is definitely broken as-is, because it changes
> the application-visible behavior of existing functions --- in particular
> PQsendQueryParams() followed by PQgetResult() will now return a bogus
> additional PGresult. I think the cleanest solution is probably to add a
> state flag indicating whether ParseComplete should generate a PGresult
> or not.
[That sounds exactly like what my concerns were.]
Adding a flag is going to be enough for synchronous queries. But it seems like
it has no chance of working for asynchronous queries. It would have to keep
track of what all the pending requests are and the expected results.
I think DBD::Pg would be pretty happy to have even synchronous queries
working. Afaik that's all it uses currently.
--
greg
From | Date | Subject | |
---|---|---|---|
Next Message | Neil Conway | 2004-10-17 12:22:16 | additional GCC warnings |
Previous Message | Bruce Momjian | 2004-10-17 00:31:19 | Re: Nearing final release? |
From | Date | Subject | |
---|---|---|---|
Next Message | Magnus Hagander | 2004-10-17 15:31:32 | Win32 & NLS |
Previous Message | Tom Lane | 2004-10-16 22:41:05 | Re: Nearing final release? |