Error code. - Mailing list pgsql-admin

From Anagha Joshi
Subject Error code.
Date
Msg-id FF851C7EEB75954F9BCFB5CA117AB1EC092819@delta.nulinkinc.com
Whole thread Raw
List pgsql-admin

Hi,

Is there any way to get error code from ‘PgDatabse::Exec’ call? PgDatabase::ErrorMessage() explains error message finely.

i.e. if errorMessage() calls returns string like : ‘cannot extend trap: No space left on device’

then  can I get error code which explains the same ?

else I’ll have to use ‘strcmp’(C++ client interface) to find when device is out of space.

 

Urgent help needed.

 

Thx,

Anagha

 

pgsql-admin by date:

Previous
From: Dominic Veit
Date:
Subject:
Next
From: Jodi Kanter
Date:
Subject: createdb