hi, thx for the hint. i decreased work_mem. its working now.
the dump written in the logfile is: TopMemoryContext: 40960 total in 5 blocks; 11064 free (37 chunks); 29896 used TopTransactionContext: 8192 total in 1 blocks; 7856 free (0 chunks); 336 used Remote Con hash: 8192 total in 1 blocks; 5968 free (0 chunks); 2224 used Record information cache: 8192 total in 1 blocks; 1864 free (0 chunks); 6328 used Type information cache: 8192 total in 1 blocks; 1864 free (0 chunks); 6328 used CFuncHash: 8192 total in 1 blocks; 4936 free (0 chunks); 3256 used MessageContext: 253952 total in 5 blocks; 115160 free (1199 chunks); 138792 used Operator class cache: 8192 total in 1 blocks; 4936 free (0 chunks); 3256 used smgr relation table: 8192 total in 1 blocks; 1840 free (0 chunks); 6352 used Portal hash: 8192 total in 1 blocks; 3912 free (0 chunks); 4280 used PortalMemory: 8192 total in 1 blocks; 8040 free (0 chunks); 152 used PortalHeapMemory: 1024 total in 1 blocks; 856 free (0 chunks); 168 used ExecutorState: -1211899784 total in 386 blocks; 40648 free (537 chunks); -1211940432 used ExprContext: 8192 total in 1 blocks; 8176 free (0 chunks); 16 used ExecutorState: 8192 total in 1 blocks; 2088 free (5 chunks); 6104 used ExecutorState: 8192 total in 1 blocks; 5088 free (0 chunks); 3104 used ExprContext: 0 total in 0 blocks; 0 free (0 chunks); 0 used ExprContext: 0 total in 0 blocks; 0 free (0 chunks); 0 used ExprContext: 0 total in 0 blocks; 0 free (0 chunks); 0 used ExprContext: 0 total in 0 blocks; 0 free (0 chunks); 0 used ExprContext: 0 total in 0 blocks; 0 free (0 chunks); 0 used ExprContext: 0 total in 0 blocks; 0 free (0 chunks); 0 used ExprContext: 8192 total in 1 blocks; 8160 free (0 chunks); 32 used ExprContext: 8192 total in 1 blocks; 8176 free (0 chunks); 16 used ExprContext: 0 total in 0 blocks; 0 free (0 chunks); 0 used ExprContext: 0 total in 0 blocks; 0 free (0 chunks); 0 used ExprContext: 0 total in 0 blocks; 0 free (0 chunks); 0 used Relcache by OID: 8192 total in 1 blocks; 3376 free (0 chunks); 4816 used CacheMemoryContext: 1040384 total in 7 blocks; 552584 free (207 chunks); 487800 used article_manufacturer_name_lower: 1024 total in 1 blocks; 392 free (0 chunks); 632 used article_description_short_lower: 1024 total in 1 blocks; 392 free (0 chunks); 632 used article_pkey: 1024 total in 1 blocks; 328 free (0 chunks); 696 used pg_toast_2619_index: 1024 total in 1 blocks; 328 free (0 chunks); 696 used article_data_a_ean: 1024 total in 1 blocks; 328 free (0 chunks); 696 used article_data_a_pkey: 1024 total in 1 blocks; 328 free (0 chunks); 696 used article_data_a_article_id_key: 1024 total in 1 blocks; 392 free (0 chunks); 632 used article_category_a_pkey: 1024 total in 1 blocks; 192 free (0 chunks); 832 used cataloginfo_pkey: 1024 total in 1 blocks; 328 free (0 chunks); 696 used catalog_prefix: 15360 total in 4 blocks; 7016 free (0 chunks); 8344 used pg_constraint_conrelid_index: 1024 total in 1 blocks; 392 free (0 chunks); 632 used pg_attrdef_adrelid_adnum_index: 1024 total in 1 blocks; 328 free (0 chunks); 696 used manufacturer_mapping: 7168 total in 3 blocks; 3912 free (0 chunks); 3256 used pg_database_oid_index: 1024 total in 1 blocks; 392 free (0 chunks); 632 used pg_index_indrelid_index: 1024 total in 1 blocks; 392 free (0 chunks); 632 used pg_type_oid_index: 1024 total in 1 blocks; 392 free (0 chunks); 632 used pg_type_typname_nsp_index: 1024 total in 1 blocks; 328 free (0 chunks); 696 used pg_statistic_relid_att_index: 1024 total in 1 blocks; 328 free (0 chunks); 696 used pg_rewrite_rel_rulename_index: 1024 total in 1 blocks; 328 free (0 chunks); 696 used pg_class_relname_nsp_index: 1024 total in 1 blocks; 328 free (0 chunks); 696 used pg_proc_oid_index: 1024 total in 1 blocks; 392 free (0 chunks); 632 used pg_proc_proname_args_nsp_index: 1024 total in 1 blocks; 256 free (0 chunks); 768 used pg_operator_oprname_l_r_n_index: 1024 total in 1 blocks; 192 free (0 chunks); 832 used pg_namespace_oid_index: 1024 total in 1 blocks; 392 free (0 chunks); 632 used pg_namespace_nspname_index: 1024 total in 1 blocks; 392 free (0 chunks); 632 used pg_language_oid_index: 1024 total in 1 blocks; 392 free (0 chunks); 632 used pg_language_name_index: 1024 total in 1 blocks; 392 free (0 chunks); 632 used pg_inherits_relid_seqno_index: 1024 total in 1 blocks; 328 free (0 chunks); 696 used pg_conversion_oid_index: 1024 total in 1 blocks; 392 free (0 chunks); 632 used pg_conversion_name_nsp_index: 1024 total in 1 blocks; 328 free (0 chunks); 696 used pg_conversion_default_index: 1024 total in 1 blocks; 192 free (0 chunks); 832 used pg_opclass_oid_index: 1024 total in 1 blocks; 392 free (0 chunks); 632 used pg_opclass_am_name_nsp_index: 1024 total in 1 blocks; 256 free (0 chunks); 768 used pg_cast_source_target_index: 1024 total in 1 blocks; 328 free (0 chunks); 696 used pg_authid_oid_index: 1024 total in 1 blocks; 392 free (0 chunks); 632 used pg_auth_members_role_member_index: 1024 total in 1 blocks; 328 free (0 chunks); 696 used pg_auth_members_member_role_index: 1024 total in 1 blocks; 328 free (0 chunks); 696 used pg_attribute_relid_attnam_index: 1024 total in 1 blocks; 328 free (0 chunks); 696 used pg_amop_opr_opc_index: 1024 total in 1 blocks; 328 free (0 chunks); 696 used pg_aggregate_fnoid_index: 1024 total in 1 blocks; 392 free (0 chunks); 632 used pg_database_datname_index: 1024 total in 1 blocks; 392 free (0 chunks); 632 used pg_authid_rolname_index: 1024 total in 1 blocks; 392 free (0 chunks); 632 used pg_trigger_tgrelid_tgname_index: 1024 total in 1 blocks; 328 free (0 chunks); 696 used pg_operator_oid_index: 1024 total in 1 blocks; 392 free (0 chunks); 632 used pg_amproc_opc_proc_index: 1024 total in 1 blocks; 256 free (0 chunks); 768 used pg_amop_opc_strat_index: 1024 total in 1 blocks; 256 free (0 chunks); 768 used pg_index_indexrelid_index: 1024 total in 1 blocks; 392 free (0 chunks); 632 used pg_attribute_relid_attnum_index: 1024 total in 1 blocks; 328 free (0 chunks); 696 used pg_class_oid_index: 1024 total in 1 blocks; 392 free (0 chunks); 632 used MdSmgr: 8192 total in 1 blocks; 6448 free (0 chunks); 1744 used LockTable (locallock hash): 8192 total in 1 blocks; 3912 free (0 chunks); 4280 used Timezones: 47592 total in 2 blocks; 5968 free (0 chunks); 41624 used ErrorContext: 16384 total in 2 blocks; 16352 free (10 chunks); 32 used regards, anita ---------------------------(end of broadcast)--------------------------- TIP 6: explain analyze is your friend