Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id C534F9FBCC5 for ; Mon, 2 Jul 2007 13:49:58 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 56119-02 for ; Mon, 2 Jul 2007 13:49:55 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.247]) by postgresql.org (Postfix) with ESMTP id F0AD99FBADD for ; Mon, 2 Jul 2007 13:49:54 -0300 (ADT) Received: by an-out-0708.google.com with SMTP id c36so316971ana for ; Mon, 02 Jul 2007 09:49:54 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=EsouZjsr5F394Z1Xh6BdLFPM1KJNwm+WS307MWXWATwQrnYuMJ7yjIlce+AGi1XA4L306DSjy6JW54ftf+FSqHM2iLJruq7xknXlFP/jemzYB/EuoeYHMKIwV00cistG3yKPMjIwiWsMq+aTZ//cr7atey4Iq6SBRPj+2JgYQXM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=eUYOgmk84trGEYsoM6yT/zdciE0MDfNUfLlYcLxAXXdCSewhMPBFka8k8dxniFRK69dUYHuKVqVl4QIdUt8dURH3+Z92LBGmqqAe1RVCJSunM6AWTkHyN69p/hzM9jtmkrOp9nsJ9C7gR7Nn2E/EL1yyxlrUKS/dUiMB/Q+J8TQ= Received: by 10.100.38.16 with SMTP id l16mr3771231anl.1183394994262; Mon, 02 Jul 2007 09:49:54 -0700 (PDT) Received: by 10.100.194.7 with HTTP; Mon, 2 Jul 2007 09:49:54 -0700 (PDT) Message-ID: <1c23c8e70707020949l3f6112dfra9e89467080b136e@mail.gmail.com> Date: Mon, 2 Jul 2007 19:49:54 +0300 From: "Loredana Curugiu" To: "Guy Rouillier" , pgsql-jdbc@postgresql.org Subject: Re: Replace usage of a table in query with its array values In-Reply-To: <46891BE8.60209@burntmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_107681_6243020.1183394994208" References: <1c23c8e70707020123o5a8b6512i2d2ad8888cb921cc@mail.gmail.com> <46891BE8.60209@burntmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/4 X-Sequence-Number: 17178 ------=_Part_107681_6243020.1183394994208 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 7/2/07, Guy Rouillier wrote: > > 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. Thank you for informations. Best, Loredana ------=_Part_107681_6243020.1183394994208 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline

On 7/2/07, Guy Rouillier <guyr-ml1@burntmail.com> wrote:
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.

Thank you for informations.

Best,
    Loredana

------=_Part_107681_6243020.1183394994208--