I want to split table partitioned across two servers postgres (two hosts).
To query this remote object, I want to make view with union on two servers with
But, How to be sure that optimizer plan on remote node is same than local node
(ie : optimizer scan only the selected partitions and not make full scan of
the remote object) ?
example : server 1 (table test partionned on field number and 1 < number <10)
server 2 (table test partitioned on field number 10 <number <20)
server 3 has view like :
create view remote_test
select * from dblink('conn_server1', select * from test) as test_server1(....)
select * from dblink('conn_server2', select * from test) as test_server2(....)
If I've made select on view remote_test like :
select * from remote_test where number<5 and number >15.
optimizer made full scan of all partitions on all servers or
scan only partition 1 to partition 4 on server1
and scan partiton 16 to partition 19 on server2
and union ?
In fact, I don't know how to have explain plan of remote node.
Thanks a lot.
In response to
pgsql-performance by date
|Next:||From: Jens-Wolfhard Schicke||Date: 2006-02-17 08:18:39|
|Subject: Re: qsort again (was Re: [PERFORM] Strange Create Index|
|Previous:||From: Ron||Date: 2006-02-17 06:20:58|
|Subject: Re: qsort again (was Re: [PERFORM] Strange Create|