Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 1C60A9FB895 for ; Mon, 2 Jul 2007 12:38:22 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 83769-05 for ; Mon, 2 Jul 2007 12:38:18 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from mx01.burntmail.com (mx01.burntmail.com [69.93.121.66]) by postgresql.org (Postfix) with ESMTP id B58D29FB87C for ; Mon, 2 Jul 2007 12:38:18 -0300 (ADT) Received: from pool-72-66-97-101.washdc.fios.verizon.net ([72.66.97.101] helo=[127.0.0.1]) by mx01.burntmail.com with esmtpa (Exim 4.63) (envelope-from ) id 1I5Nyl-0005b2-8C for pgsql-jdbc@postgresql.org; Mon, 02 Jul 2007 10:38:19 -0500 Message-ID: <46891BE8.60209@burntmail.com> Date: Mon, 02 Jul 2007 11:38:16 -0400 From: Guy Rouillier User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: Replace usage of a table in query with its array values References: <1c23c8e70707020123o5a8b6512i2d2ad8888cb921cc@mail.gmail.com> In-Reply-To: <1c23c8e70707020123o5a8b6512i2d2ad8888cb921cc@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 000753-0, 07/01/2007), Outbound message X-Antivirus-Status: Clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/3 X-Sequence-Number: 17177 Loredana Curugiu wrote: > After database redesign it was decided that reminder_services table > to be moved into another database. In production, reminder_services > table will never have more than 100 of records, but sent_messages > table it is a log table with a lot of records and the above query > will be executed every minute. Cross posting to multiple lists is frowned upon, so I'm reply only here. Have you considered using the dblink contrib module? That seems a far simpler solution than trying to do this with arrays. -- Guy Rouillier