1 2 3 4 5 6 7 8 9 10
#include <libpq-fe.h> int main(void) { int s = PG_DIAG_SCHEMA_NAME; int t = PG_DIAG_TABLE_NAME; int col = PG_DIAG_COLUMN_NAME; int d = PG_DIAG_DATATYPE_NAME; int con = PG_DIAG_CONSTRAINT_NAME; return s + t + col + d + con; }