Re: Directing Partitioned Table Searches

From: Bill Thoen <bthoen(at)gisnet(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Directing Partitioned Table Searches
Date: 2011-02-07 18:17:10
Message-ID: 4D503726.9040707@gisnet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Vick Khera wrote:
> Your best bet is to know which partition you need and write your query
> that way dynamically, rather than trying to use a generic query and
> have the DB do the constraint exclusion. In your above case, if you
> know that 'zone' will limit you to just the MI table, then specify the
> MI table instead of the base clu table.
>
Thanks. That sounds simple enough. Since I want to automate this, I
guess the next step is to learn how to create and execute a "dynamic"
query. I think I know how to do that.

--

*Bill Thoen*
GISnet - www.gisnet.com <http://www.gisnet.com/>
1401 Walnut St., Suite C
Boulder, CO 80302
303-786-9961 tel
303-443-4856 fax
bthoen(at)gisnet(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Sylvain Rabot 2011-02-07 19:04:46 Maintenance commands on standby servers
Previous Message Paul Ramsey 2011-02-07 17:55:07 Re: postgis 1.5.2 installation configure: WARNING: could not locate CUnit required for liblwgeom unit tests