X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id A346853319 for ; Thu, 5 May 2005 06:25:24 -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 22133-10 for ; Thu, 5 May 2005 09:25:20 +0000 (GMT) Received: from mail.metronet.co.uk (mail.metronet.co.uk [213.162.97.75]) by svr1.postgresql.org (Postfix) with ESMTP id 098EE52A37 for ; Thu, 5 May 2005 06:25:19 -0300 (ADT) Received: from mainbox.archonet.com (84-51-143-99.archon037.adsl.metronet.co.uk [84.51.143.99]) by smtp.metronet.co.uk (MetroNet Mail) with ESMTP id BD6A040E0C3; Thu, 5 May 2005 10:25:15 +0100 (BST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mainbox.archonet.com (Postfix) with ESMTP id 53B4C15EE3; Thu, 5 May 2005 10:21:38 +0100 (BST) Received: from mainbox.archonet.com ([127.0.0.1]) by localhost (mainbox [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17327-09; Thu, 5 May 2005 10:21:38 +0100 (BST) Received: from [192.168.1.17] (client17.office.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id 1599B15EDE; Thu, 5 May 2005 10:21:38 +0100 (BST) Message-ID: <4279E5A1.6050103@archonet.com> Date: Thu, 05 May 2005 10:21:37 +0100 From: Richard Huxton User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: mohammad izwan ibrahim Cc: pgsql-sql@postgresql.org Subject: Re: accessing multiple database References: <200505050909.j4599Ml4023684@smp.orenda.com.my> In-Reply-To: <200505050909.j4599Ml4023684@smp.orenda.com.my> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.053 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200505/46 X-Sequence-Number: 21359 mohammad izwan ibrahim wrote: > Hi Richard Huxton, Tq for your advice, Hope you can help me on this > > 1.can I create view from dblink query I believe so - see the dblink docs for details. > 2.can I fetch the data simultaneous from multiple database using > dblink function, how the syntax would be? Not in one function-call, but I don't see why you couldn't have several sub-queries, each to a different database. I recommend testing it to see. -- Richard Huxton Archonet Ltd