Re: Postgres status

From: François Figarola <francois(dot)figarola(at)i-consult(dot)fr>
To: Alain <eurlix(dot)alain(at)free(dot)fr>
Cc: pgsql-fr <pgsql-fr-generale(at)postgresql(dot)org>
Subject: Re: Postgres status
Date: 2007-11-13 15:38:25
Message-ID: 4739C4F1.90407@i-consult.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-fr-generale

François Figarola a écrit :
> Alain a écrit :
>> Bonjour,
>>
>> Depuis plusieurs années j'utilisais Postgres-7.3 (libpq) avec un
>> interface "maison".
>> Les 2 derniers chiffres de PQresultStatus me donnaient un résultat
>> intéressant et suffisant, mais ça semble avoir changé avec
>> Postgres-8.2.3 !
>> Si quelqu'un pouvait m'indiquer où trouver les valeurs numériques
>> renvoyées par libpq sur un int, ça m'aiderait grandement.
>>
>> Merci d'avance,
Re-Bonjour,

Désolé pour le copier-coller malheureux, je reprends !

Vous pouvez interroger et naviguer dans les sources de postgresql ici :
http://doxygen.postgresql.org/

La fonction est définie :
ExecStatusType PQresultStatus (const PGresult * res)

Definition at line 2023 of file fe-exec.c.

et l'énumération ExecStatusType :

enum ExecStatusType
Enumerator:
0 PGRES_EMPTY_QUERY
1 PGRES_COMMAND_OK
2 PGRES_TUPLES_OK
3 PGRES_COPY_OUT
4 PGRES_COPY_IN
5 PGRES_BAD_RESPONSE
6 PGRES_NONFATAL_ERROR
7 PGRES_FATAL_ERROR

Definition at line 69 of file libpq-fe.h.
00070 {
00071 PGRES_EMPTY_QUERY = 0, /* empty query string was executed */
00072 PGRES_COMMAND_OK, /* a query command that doesn't return
00073 * anything was executed properly
by the
00074 * backend */
00075 PGRES_TUPLES_OK, /* a query command that returns
tuples was
00076 * executed properly by the
backend, PGresult
00077 * contains the result tuples */
00078 PGRES_COPY_OUT, /* Copy Out data transfer in
progress */
00079 PGRES_COPY_IN, /* Copy In data transfer in
progress */
00080 PGRES_BAD_RESPONSE, /* an unexpected response was
recv'd from the
00081 * backend */
00082 PGRES_NONFATAL_ERROR, /* notice or warning message */
00083 PGRES_FATAL_ERROR /* query failed */
00084 } ExecStatusType

Cordialement.

François Figarola.

--
INTERNET CONSULT
Mas Guerido
6 rue Aristide Bergès
66330 CABESTANY

Tel 04.68.66.09.29
fax 04.68.66.99.50
* francois(dot)figarola(at)i-consult(dot)fr

In response to

Responses

Browse pgsql-fr-generale by date

  From Date Subject
Next Message Claude Castello 2007-11-13 16:40:08 SQL ou plpgsql pour recherche journée travail
Previous Message François Figarola 2007-11-13 15:23:37 Re: Postgres status