Re: libpq test suite - Mailing list pgsql-hackers

From Albe Laurenz
Subject Re: libpq test suite
Date
Msg-id A737B7A37273E048B164557ADEF4A58B057B344A@ntex2010a.host.magwien.gv.at
Whole thread Raw
In response to libpq test suite  (Manlio Perillo <manlio.perillo@gmail.com>)
Responses [RFC] ideas for a new Python DBAPI driver (was Re: libpq test suite)
List pgsql-hackers
Manlio Perillo wrote:
> Sorry for the question, but where can I find the libpq test suite?
> I can not find it in the PostgreSQL sources; it seems that there are
> only some examples, in src/test/examples.

The regression tests are in src/interfaces/libpq/test
and currently contain only URL parsing tests.

> I'm planning to add some new features to libpq:
> 
>     * make PQsendPrepare send a "Describe Portal" protocol message
>     * add support for setting per column binary result format

I suggested exactly that here:
http://www.postgresql.org/message-id/D960CB61B694CF459DCFB4B0128514C208A4EDD4@exadv11.host.magwien.gv.at
and met resistance:
- one can use libpqtypes
- I couldn't find a convincing use case
- it clutters up the API

>     * add direct support for portals
> 
> (I think I need these for a project I'm working on [1]),
> 
> How can I check if the new code does not break existing usage?
> 
> 
> [1] A new Python PostgreSQL driver, implemented following
>     http://wiki.postgresql.org/wiki/Driver_development
>     and with many optimization (compared to psycopg2) enabled by the
>     use of the extended query protocol

I think that you'll need to explain in more detail why
your proposed additions would be necessary for your project.
Especially since many good drivers have been written against
libpq as it is.

Yours,
Laurenz Albe

pgsql-hackers by date:

Previous
From: Manlio Perillo
Date:
Subject: libpq test suite
Next
From: Stephen Frost
Date:
Subject: Re: proposal or just idea for psql - show first N rows from relation backslash statement