if the table has SERIAL column is valid for PostgreSQL 7.3 to 8.3.
*/
int need_insert_lock(POOL_CONNECTION_POOL *backend, char *query, Node *node)
{
+/*
+ * Query to know if the target table has SERIAL column or not.
+ * This query is valid through PostgreSQL 7.3 to 8.3.
+ */
#define NEXTVALQUERY "SELECT count(*) FROM pg_catalog.pg_attrdef AS d, pg_catalog.pg_class AS c WHERE d.adrelid = c.oid AND d.adsrc ~ 'nextval' AND c.relname = '%s'"
#define INSERT_STATEMENT_MAX_CACHE 16