Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nQtru-0000OA-8y for pgsql-general@arkaria.postgresql.org; Sun, 06 Mar 2022 16:36:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nQtrt-0005rK-5r for pgsql-general@arkaria.postgresql.org; Sun, 06 Mar 2022 16:36:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nQtrs-0005pL-Qo for pgsql-general@lists.postgresql.org; Sun, 06 Mar 2022 16:36:24 +0000 Received: from 024-182-127-154.biz.spectrum.com ([24.182.127.154] helo=mail.brookhurstdata.net) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nQtrq-0007uk-U0 for pgsql-general@lists.postgresql.org; Sun, 06 Mar 2022 16:36:24 +0000 Received: from mail.brookhurstdata.net (localhost [127.0.0.1]) by mail.brookhurstdata.net (Postfix) with ESMTP id 9FAEC29A31B for ; Sun, 6 Mar 2022 10:36:19 -0600 (CST) MIME-Version: 1.0 Date: Sun, 06 Mar 2022 10:36:18 -0600 From: Susan Hurst To: Discuss List Postgres Subject: FDW to postGIS Database User-Agent: Roundcube Webmail/1.4.9 Message-ID: X-Sender: susan.hurst@brookhurstdata.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Let say that I have a database named stp. I also have another database named geo that is a PostGIS database for storing geopolitical and geospatial data. I want to set up a foreign data wrapper in stp to connect to geo, so that for each address in stp, I only have to store the primary key value of the lowest level geo unit, such as a city. I can always display the city's county, state, country, whatever in views in stp. I plan to have other databases that need geo data so I want a single source of truth for geopolitical and geospatial data. My questions are: 1. Do I have to install PostGIS in stp?....or is it sufficient to install PostGIS only in geo? 2. Do I need the postgis extension in stp? (I'm thinking yes, but I don't want to guess.) 3. I want to geocode addresses in stp. Do I need to install any geocoding software in stp?...or can it be used from geo? Thanks for your help! Sue -- -------------------------------------- Susan E Hurst Email: susan.hurst@brookhurstdata.com Mobile: 314-486-3261