[aplusdev] RE: using A+ with PostgreSQL

Alexei Zalivine zalivin at krona.obninsk.ru
Thu Sep 6 01:27:54 EDT 2001


Hello Brian,

Thank you very much! I'll be try it right now.
What do you think about performance? Because I find in the example A+
parsing of result, and I'm afraid that it can decrease performance. In any
case, it can be useful on not so mush databases.

Alexei.

> At http://159-190.nyc.dsl.access.net/a+/ you will find
> pointers to a PostgreSQL client example written in C and
> a transliteration in A+.  The A+ code uses the pq library
> distributed with PostgreSQL via the A+ _dyld function.
>
> The A+ code only provides interfaces to the functions required
> for the 1st example at
> http://www.postgresql.org/idocs/index.php?libpq-example.html.
> I haven't looked further to see if one can use all the functions
> in libpg in so easilly.
>
> The bottom line is...
>
> '/usr/local/pgsql/lib/libpq.so' _dyld (
>   'PQsetdbLogin';       'PQsetdb';              (9 7 7 7 7 7 7 7);
>   'PQstatus';           'PQstatus';             (9 9);
>   'PQerrorMessage';     'PQerrorMessage';       (7 9);
>   'PQexec';             'PQexec';               (9 9 7);
>   'PQresultStatus';     'PQresultStatus';       (9 9);
>   'PQclear';            'PQclear';              (8 9);
>   'PQnfields';          'PQnfields';            (9 9);
>   'PQntuples';          'PQntuples';            (9 9);
>   'PQfname';            'PQfname';              (7 9 9);
>   'PQgetvalue';         'PQgetvalue';           (7 9 9 9);
>   'PQfinish';           'PQfinish';             (8 9));
>
> 	brian redman




More information about the apluslist mailing list