Skip site navigation (1) Skip section navigation (2)

Re: Replace usage of a table in query with its array values

From: Guy Rouillier <guyr-ml1(at)burntmail(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Replace usage of a table in query with its array values
Date: 2007-07-02 15:38:16
Message-ID: 46891BE8.60209@burntmail.com (view raw or flat)
Thread:
Lists: pgsql-jdbcpgsql-novicepgsql-sql
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

In response to

Responses

pgsql-novice by date

Next:From: Loredana CurugiuDate: 2007-07-02 16:49:54
Subject: Re: Replace usage of a table in query with its array values
Previous:From: Tom LaneDate: 2007-07-02 15:12:24
Subject: Re: Schema Problem

pgsql-jdbc by date

Next:From: Loredana CurugiuDate: 2007-07-02 16:49:54
Subject: Re: Replace usage of a table in query with its array values
Previous:From: Mario SplivaloDate: 2007-07-02 12:41:42
Subject: Re: Log files cluttered with jdbc3/4 for pg8.2

pgsql-sql by date

Next:From: Loredana CurugiuDate: 2007-07-02 16:49:54
Subject: Re: Replace usage of a table in query with its array values
Previous:From: Loredana CurugiuDate: 2007-07-02 08:23:58
Subject: Replace usage of a table in query with its array values

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group