if(( result = PQexec( connection, query_text )) == NULL )
{
printf( "%s\n", PQerrorMessage( connection ));
return;
} options.header    = 1;    /* Ask for column headers            */
options.align     = 1;    /* Pad short columns for alignment   */
options.fieldSep  = "|";  /* Use a pipe as the field separator */ PQprint(stdout, result, &options );
最后一句老出错,crash 掉了,为什么? 有人用过这个不