| From: | Hideyuki Kawashima <kawasima(at)ayu(dot)ics(dot)keio(dot)ac(dot)jp> |
|---|---|
| To: | pgsql-patches(at)postgresql(dot)org |
| Cc: | kawasima(at)ayu(dot)ics(dot)keio(dot)ac(dot)jp |
| Subject: | Please define PQ_BUFFER_SIZE in interfaces/libpq/fe-misc.c |
| Date: | 2005-05-07 04:56:27 |
| Message-ID: | 20050507.135627.68554300.kawasima@ayu.ics.keio.ac.jp |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-patches |
Hi,
I am accelerating the transfer of resultset
from backend to client using the zlib library.
While coding, I was surprised that
magic number 8192 (which is defined as PQ_BUFFER_SIZE in
backend/libpq/pqcomm.c) are written into the code
in interfaces/libpq/fe-misc.
I thought the magic number should be eliminated.
So I defined the magic number 8192 as PQ_BUFFER_SIZE in fe-misc.c.
The result is attached to this mail.
# it is just a slight modification
I am very happy if you accept my proposition.
Best regards,
-- Hideyuki Kawashima
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Hideyuki KAWASHIMA <kawasima(at)ayu(dot)ics(dot)keio(dot)ac(dot)jp> Ph.D.
Research Associate, Keio University
| Attachment | Content-Type | Size |
|---|---|---|
| unknown_filename | text/plain | 27.0 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2005-05-07 05:09:57 | Re: Please define PQ_BUFFER_SIZE in interfaces/libpq/fe-misc.c |
| Previous Message | Bruce Momjian | 2005-05-07 02:22:47 | Re: COPY CSV header line feature |