From gayatri_ganpaa@yahoo.com Tue Jun 21 06:09:51 2005 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id CDF905284B for ; Tue, 21 Jun 2005 03:09:51 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 66739-08 for ; Tue, 21 Jun 2005 06:09:42 +0000 (GMT) Received: from web51504.mail.yahoo.com (web51504.mail.yahoo.com [206.190.38.196]) by svr1.postgresql.org (Postfix) with SMTP id 9E1E65283A for ; Tue, 21 Jun 2005 03:09:40 -0300 (ADT) Received: (qmail 80326 invoked by uid 60001); 21 Jun 2005 06:09:36 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=KWvMmAKVtxNr9TpYZjuLVTPJIcf/wTNfUgxgtCIYZk2YlWNCYhRSSFhk6zxk3Ru1CSsX/zSIQj7wo9/yTewOSBEwrlvxuY/4lTyqGZBgHDzkWcthiMz3i44h/m33ZmazBpMIlDNE017LrFF9/pkHCaJvCqKJ/2JAqPREc1eYF6Q= ; Message-ID: <20050621060936.80324.qmail@web51504.mail.yahoo.com> Received: from [137.30.122.46] by web51504.mail.yahoo.com via HTTP; Mon, 20 Jun 2005 23:09:36 PDT Date: Mon, 20 Jun 2005 23:09:36 -0700 (PDT) From: gayatri ganpaa Subject: varying pagesize in postgresql To: pgsql-admin@postgresql.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1905337195-1119334176=:62271" Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.503 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE, HTML_30_40, HTML_MESSAGE X-Spam-Level: X-Archive-Number: 200506/155 X-Sequence-Number: 17910 --0-1905337195-1119334176=:62271 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi, How do I change the page size in postgresql? I have the postgresql-7.4.3 version. I am trying to create an r*-tree index on a spatial table with around 100,000 rows. I just want to check if increasing the page size would make the join of two tables faster. Are there any other options I could use to make this faster? Would increasing the page size help? Thanks, gayatri. __________________________________________________ --------------------------------- Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football --0-1905337195-1119334176=:62271 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit
Hi,
How do I change the page size in postgresql? I have the postgresql-7.4.3 version.
I am trying to create an r*-tree index on a spatial table with around 100,000 rows. I just want to check if increasing the page size would make the join of two tables faster. Are there any other options I could use to make this faster? Would increasing the page size help?
 
Thanks,
gayatri.

__________________________________________________


Yahoo! Sports
Rekindle the Rivalries. Sign up for Fantasy Football --0-1905337195-1119334176=:62271-- From decibel@decibel.org Tue Jun 21 16:58:52 2005 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 08C8B52833 for ; Tue, 21 Jun 2005 13:58:52 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 53535-06 for ; Tue, 21 Jun 2005 16:58:45 +0000 (GMT) Received: from flake.decibel.org (flake.decibel.org [67.100.216.10]) by svr1.postgresql.org (Postfix) with ESMTP id AC8B352828 for ; Tue, 21 Jun 2005 13:58:45 -0300 (ADT) Received: by flake.decibel.org (Postfix, from userid 1001) id EC0241525E; Tue, 21 Jun 2005 16:58:44 +0000 (GMT) Date: Tue, 21 Jun 2005 11:58:44 -0500 From: "Jim C. Nasby" To: gayatri ganpaa Cc: pgsql-admin@postgresql.org Subject: Re: varying pagesize in postgresql Message-ID: <20050621165844.GB528@decibel.org> References: <20050621060936.80324.qmail@web51504.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050621060936.80324.qmail@web51504.mail.yahoo.com> X-Operating-System: FreeBSD 4.11-RELEASE-p10 i386 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.005 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200506/160 X-Sequence-Number: 17915 pg_dumpall Change something in one of the header files (which is docummented somewhere...) Recompile, install, initdb restore from backup Of course the backup/restore are optional if you don't care about your data... On Mon, Jun 20, 2005 at 11:09:36PM -0700, gayatri ganpaa wrote: > Hi, > How do I change the page size in postgresql? I have the postgresql-7.4.3 version. > I am trying to create an r*-tree index on a spatial table with around 100,000 rows. I just want to check if increasing the page size would make the join of two tables faster. Are there any other options I could use to make this faster? Would increasing the page size help? > > Thanks, > gayatri. > > __________________________________________________ > > > > --------------------------------- > Yahoo! Sports > Rekindle the Rivalries. Sign up for Fantasy Football -- Jim C. Nasby, Database Consultant decibel@decibel.org Give your computer some brain candy! www.distributed.net Team #1828 Windows: "Where do you want to go today?" Linux: "Where do you want to go tomorrow?" FreeBSD: "Are you guys coming, or what?" From alvherre@surnet.cl Tue Jun 21 17:22:08 2005 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 9BCE652828 for ; Tue, 21 Jun 2005 14:22:08 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 59770-05 for ; Tue, 21 Jun 2005 17:22:03 +0000 (GMT) Received: from mr1.surnet.cl (smtp1.surnet.cl [216.155.73.162]) by svr1.postgresql.org (Postfix) with ESMTP id 7BA25528C3 for ; Tue, 21 Jun 2005 14:22:01 -0300 (ADT) Received: from smtp1.surnet.cl (216.155.73.168) by mr1.surnet.cl (7.0.031.3) id 42587EDE00F94FD6; Tue, 21 Jun 2005 13:21:25 -0400 Received: from smtp1.surnet.cl (mr1.surnet.cl []) by mr1.surnet.cl ([216.155.73.168]); Tue, 21 Jun 2005 17:21:25 +0000 Received: from cluster.surnet.cl (216.155.73.164) by smtp1.surnet.cl (7.0.031.3) id 42587C6E00C6E1F5; Tue, 21 Jun 2005 13:21:25 -0400 Received: from localhost (216.155.78.203) by cluster.surnet.cl (7.0.043) id 42B3EF6000065E51; Tue, 21 Jun 2005 13:21:57 -0400 Received: by localhost (Postfix, from userid 1000) id 1072CC9D800; Tue, 21 Jun 2005 13:22:00 -0400 (CLT) Date: Tue, 21 Jun 2005 13:22:00 -0400 From: Alvaro Herrera To: "Jim C. Nasby" Cc: gayatri ganpaa , pgsql-admin@postgresql.org Subject: Re: varying pagesize in postgresql Message-ID: <20050621172200.GA19214@surnet.cl> References: <20050621060936.80324.qmail@web51504.mail.yahoo.com> <20050621165844.GB528@decibel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050621165844.GB528@decibel.org> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.544 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST, FORGED_RCVD_HELO X-Spam-Level: * X-Archive-Number: 200506/161 X-Sequence-Number: 17916 [reformatted for sanity] > On Mon, Jun 20, 2005 at 11:09:36PM -0700, gayatri ganpaa wrote: > > How do I change the page size in postgresql? I have the postgresql-7.4.3 version. > > I am trying to create an r*-tree index on a spatial table with > > around 100,000 rows. I just want to check if increasing the page > > size would make the join of two tables faster. Are there any other > > options I could use to make this faster? Would increasing the page > > size help? On Tue, Jun 21, 2005 at 11:58:44AM -0500, Jim C. Nasby wrote: > pg_dumpall > Change something in one of the header files (which is docummented > somewhere...) BLCKSZ, in src/include/pg_config_manual.h. I doubt it would make the index faster anyway ... I think you could post the query, schema, and EXPLAIN ANALYZE to pgsql-performance so that people can give you further advice. Going forward, rtree is somewhat obsolete -- maybe try setting up a GiST index instead (not sure if it would be faster than rtree.) -- Alvaro Herrera () "God is real, unless declared as int" From gayatri_ganpaa@yahoo.com Wed Jun 22 04:11:13 2005 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 0281752812 for ; Wed, 22 Jun 2005 01:11:13 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 05734-02 for ; Wed, 22 Jun 2005 04:11:01 +0000 (GMT) Received: from web51504.mail.yahoo.com (web51504.mail.yahoo.com [206.190.38.196]) by svr1.postgresql.org (Postfix) with SMTP id 6370E5288B for ; Wed, 22 Jun 2005 01:10:56 -0300 (ADT) Received: (qmail 78814 invoked by uid 60001); 22 Jun 2005 04:10:52 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=4J9fI7n7gh6lLxl/L0ZF5x05u+aji5zSrhc+NhC2dBqknbNgS41VvUElzovUyxJnKtULNZUhLELTjHxJhRLkWeSAGNhzg2kdJYFGaqaY5xzHJS5Jzy+D1BXHGNzYuQBqFA8nIbkAGiBG0nVhXyjVOiCoI2yewUtLGfyokJKnz8w= ; Message-ID: <20050622041052.78812.qmail@web51504.mail.yahoo.com> Received: from [137.30.122.46] by web51504.mail.yahoo.com via HTTP; Tue, 21 Jun 2005 21:10:52 PDT Date: Tue, 21 Jun 2005 21:10:52 -0700 (PDT) From: gayatri ganpaa Subject: Re: varying pagesize in postgresql To: Alvaro Herrera , pgsql-admin@postgresql.org In-Reply-To: <20050621172200.GA19214@surnet.cl> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-327773957-1119413452=:77134" Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.694 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE, HTML_20_30, HTML_MESSAGE X-Spam-Level: X-Archive-Number: 200506/162 X-Sequence-Number: 17917 --0-327773957-1119413452=:77134 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Thanks. Here is what exactly I am doing: I am working on distributes spatial databases. I am trying to speed up join: 1. I am creating an external r*-tree index on the largest table 2. Then distributing the leaves of the r* tree on different nodes of a cluster(Each node has its own instance of the database) according to some hash function. Each node will ahve a few tuples of the first table and the tuples of the second table which overlap with the corresponding leaves. 3. Then I run Partition Based Spatial Merge Join algorithm on each node, which gives u the candidates for the join. 4. Then I use the distance function of postgis to find the actual join pairs, I run this query on each node and then concatenate the results of all nodes to get the join pairs. IN the last step, when I am checking with the actual geometry, will there be any performance gain by increasing the pagesize?? My query for the last step would be: select t1.gid, t2.gid from table1 as t1, table2 as t2 where distance(t1.the_geom, t2,the_geom)=0; Any other help or ideas for speeding up the process, related to postgresql? Thanks again, gayatri. Alvaro Herrera wrote: [reformatted for sanity] > On Mon, Jun 20, 2005 at 11:09:36PM -0700, gayatri ganpaa wrote: > > How do I change the page size in postgresql? I have the postgresql-7.4.3 version. > > I am trying to create an r*-tree index on a spatial table with > > around 100,000 rows. I just want to check if increasing the page > > size would make the join of two tables faster. Are there any other > > options I could use to make this faster? Would increasing the page > > size help? On Tue, Jun 21, 2005 at 11:58:44AM -0500, Jim C. Nasby wrote: > pg_dumpall > Change something in one of the header files (which is docummented > somewhere...) BLCKSZ, in src/include/pg_config_manual.h. I doubt it would make the index faster anyway ... I think you could post the query, schema, and EXPLAIN ANALYZE to pgsql-performance so that people can give you further advice. Going forward, rtree is somewhat obsolete -- maybe try setting up a GiST index instead (not sure if it would be faster than rtree.) -- Alvaro Herrera () "God is real, unless declared as int" ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://archives.postgresql.org --------------------------------- Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football --0-327773957-1119413452=:77134 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit
Thanks. Here is what exactly I am doing:
 
I am working on distributes spatial databases. I am trying to speed up join:
 
1. I am creating an external r*-tree index on the largest table
2. Then distributing the leaves of the r* tree on different nodes of a cluster(Each node has its own instance of the database) according to some hash function. Each node will ahve a few tuples of the first table and the tuples of the second table which overlap with the corresponding leaves.
 
3. Then I run Partition Based Spatial Merge Join algorithm on each node, which gives u the candidates for the join.
 
4. Then I use the distance function of postgis to find the actual join pairs, I run this query on each node and then concatenate the results of all nodes to get the join pairs.
 
IN the last step, when I am checking with the actual geometry, will there be any performance gain by increasing the pagesize??
 
My query for the  last step  would be:
 
select t1.gid, t2.gid from table1 as t1, table2 as t2 where distance(t1.the_geom, t2,the_geom)=0;
 
Any other help or ideas for speeding up the process, related to postgresql?
 
Thanks again,
gayatri.

Alvaro Herrera <alvherre@surnet.cl> wrote:
[reformatted for sanity]

> On Mon, Jun 20, 2005 at 11:09:36PM -0700, gayatri ganpaa wrote:

> > How do I change the page size in postgresql? I have the postgresql-7.4.3 version.
> > I am trying to create an r*-tree index on a spatial table with
> > around 100,000 rows. I just want to check if increasing the page
> > size would make the join of two tables faster. Are there any other
> > options I could use to make this faster? Would increasing the page
> > size help?

On Tue, Jun 21, 2005 at 11:58:44AM -0500, Jim C. Nasby wrote:
> pg_dumpall
> Change something in one of the header files (which is docummented
> somewhere...)

BLCKSZ, in src/include/pg_config_manual.h. I doubt it would make the
index faster anyway ... I think you could post the query, schema, and
EXPLAIN ANALYZ E to pgsql-performance so that people can give you further
advice. Going forward, rtree is somewhat obsolete -- maybe try setting
up a GiST index instead (not sure if it would be faster than rtree.)

--
Alvaro Herrera ()
"God is real, unless declared as int"

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org


Yahoo! Sports
Rekindle the Rivalries. Sign up for Fantasy Football --0-327773957-1119413452=:77134--