Index: openacs-4/packages/contacts/lib/contacts.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/contacts/lib/contacts.tcl,v diff -u -r1.64 -r1.65 --- openacs-4/packages/contacts/lib/contacts.tcl 19 May 2006 18:36:55 -0000 1.64 +++ openacs-4/packages/contacts/lib/contacts.tcl 28 May 2006 01:25:31 -0000 1.65 @@ -536,14 +536,13 @@ db_multirow contacts report_contacts_select {} { lappend party_ids $party_id } - ns_log notice "party_ids [llength $party_ids]" + if { [llength $party_ids] < 10000 } { # postgresql cannot deal with lists larger than 10000 set select_query [template::util::tcl_to_sql_list $party_ids] } else { set select_query "select p[ad_conn user_id].party_id from parties p[ad_conn user_id]" } -# set select_query "select p[ad_conn user_id].party_id from parties p[ad_conn user_id]" if { $format == "csv" } { set extend_format "text"