protected int getMaxNameLength() throws SQLException
	{
		if(NAMEDATALEN == 0)
		{
			String sql = "SELECT t.typlen FROM pg_catalog.pg_type t, pg_catalog.pg_namespace n" +
						 " WHERE t.typnamespace=n.oid" +
						 "   AND t.typname='name'" +
						 "   AND n.nspname='pg_catalog'";

			ResultSet rs = m_connection.createStatement().executeQuery(sql);
			if(!rs.next()){ throw new SQLException(
				"Unable to find name datatype in the system catalogs."); }
			NAMEDATALEN = rs.getInt("typlen");
			rs.close();
		}
		return NAMEDATALEN - 1;
	}