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 1nR2Ht-000072-30 for pgsql-general@arkaria.postgresql.org; Mon, 07 Mar 2022 01:35:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nR2Hr-000706-To for pgsql-general@arkaria.postgresql.org; Mon, 07 Mar 2022 01:35:47 +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 1nR2Hr-0006zw-Cw for pgsql-general@lists.postgresql.org; Mon, 07 Mar 2022 01:35:47 +0000 Received: from sonic317-33.consmr.mail.ne1.yahoo.com ([66.163.184.44]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nR2Ho-0003ch-KE for pgsql-general@lists.postgresql.org; Mon, 07 Mar 2022 01:35:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1646616940; bh=yP73YyZBjBS+M+9Di1vpScYgaSoOy3Dx8eO4soaVcFM=; h=Date:From:To:In-Reply-To:References:Subject:From:Subject:Reply-To; b=mP/eqxjmsMH1+HVwqp3s9pRyU/05dUR662qf+fJ0qY9IB8ypdwsaGQgtgDqzWlWXU+9svMViTezh1BeiwZ9U4sMp9OPDSRkOtyC1tTFXmXQwg9SAddn9G61lzkWeHO7zhMol2T17F8YlUsoaB7gOJ/r5cuyZRJpZ7zwKM3ruA1EaxvI9D6qdPRxKUr8qfIO4sCKc9Jy24FzandkKF/CycwUbaqkMsdWfZswangawqzIfn6zOOJ0qQEui2/4s33eyoekPOhdTmlkuXA2TzJDlmnBEZFSexEFW+d63547OROre+8lYHXjHTqSsHsbPKNNGKs0R/L03vR7trG9TvLLhwg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1646616940; bh=DSvKlDh3OF3IL+c9wR4tPOu/IkRWk4q9mp8jQjXSVCX=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=T4bzB5UUsQBLVnPuHlxeGlVqMrn8ywJg7fvVI7IDV4SAIPABb65dCkGGBKObeeZw+RlAF30dGmUO9X+kG/pcvGe1KLBajT1hjlYlGrlOOlw/cyYhsllQj2jVBh2WLiSvEivbYD3yWxSK9484747pW6YVIR5wTXfEhF+wz1MDhXRLADOFJev6mtdMdKJXbS+5CEUnTXjArefeToTsfXYpNpPDgZgUnaM8KvBxqsXiZCQMOuWGd0+kH5ZQg6H2RBNmy7BwsfiGAJz1rbAen+mXpX4GscFsuTffF+0TvxETb+tgSTNx2e00fWla2nM7CQ3kvVQyVeq2kxC7n+Sk+afo1w== X-YMail-OSG: 3Cw5a0kVM1kolEc1e9Zi74hHtaAGuVXHPybOQty2cbRJPsY4SHx4nD9cdc7vC.T rB.qy9lJSKeNGYKwtXpT1mxBVEgp6vbUFQpFWka_oJ4lvCh7iFl_YN5pl5d.P2uTGi_xvD8HYph4 Cj7o4HjDh3ODaAOm7gptiJUmvDZy9Y81PYTuKvcfVNLqkZ0jPIVgiVOUf194uB4RPzyKbeCfZ239 vtqQj1Qmob28Yelnqf_cVSd4MdNlw7U30YNKOP2zYwWHIhmhNoCaFkRdk94oJCrlfyefm0MYe2fg F5r7bSPU45e_zdv3qMbx_OHMLZopMhcwxg22rLX7qBzDEw50dKcLOXtOwS9tCddECIOSu9roe6Q9 xS2zVEyk5X2mCcYZSloTWFC.qCn77cWqZi3vOWpda9ig7N.Fok7ddIzDtgikMK5lgJwOO0pS02qb 9uJ3NkKrorqKLwNSRbQprfh534C8Vs5QLAWAfqaT6e20i5SfmRLqBDGLkaicWyj2NUnwCrF8lUdR JqPusGqidOqzh3YXm2i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sCUEh6Xy0LH4WTlGm7RtqN21F21imOYELPyjjN87J65K1A RigHX7K0abwYYWUoVh1Eq5cePFhwG_LkuIs8y043LCQLzEOHol0rItZX_uTbJ8Hhdu3eUq3bU7HQ 6mRQeJUn9UqEbUMB6PIFzbCypgQZKByIFExY24qElbmzRruA2xdB_..4EO8JTkgGk2VuaBz2E1Dk sSW7g4qe1ZEsTEN4kLjvLJMUGX2zGKK.6lqg4x1p6VE1hfDRffZFIcvbubtj_3O9DFC0Y2yYeU5i J8dtCdY2wDEjF8H8.C_oi87Yrmkfujgeh.c3GVz6ctIXPdu3xcPqlu42JD1wfW8ZHlhzEhkUYAI0 PtoEm7kQS7YCvNzOm9TLqIqV3LT6ctvf6jcwdYARF.AW0zavmCYC9nsAsVtdrUn4wnIotJ65ws6m l6RtKy5zeMvdBJKw3RpinQ7YqL71s3XxsOH6YdQnXgLFZe.YiLjyjoAghpef6XjThQ5snJQlRXbh PQ9CSaWr29IoOjk35O_dC9t2bHriAWmVdxPYiAAAWyGL5EegkmMq.txjUDlvagfgYM91myZmweZU EQlwd3IlOhIrj9SrstLSfdktfKsgOv3xabn__NgWfKqfTN3yMsjpTDYqjg5kL3HKfDRzunIAY38P P52sdifhUU4HNBPTzNEcmEHXYhApYLfpYCHhHLN2p.XrSYzEZIwDH.t7wR9eB1mbn2dnq9ItV2ZZ R5A-- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.ne1.yahoo.com with HTTP; Mon, 7 Mar 2022 01:35:40 +0000 Date: Mon, 7 Mar 2022 01:35:37 +0000 (UTC) From: Brent Wood To: Discuss List Postgres , Susan Hurst Message-ID: <1445754048.863458.1646616937362@mail.yahoo.com> In-Reply-To: References: Subject: Re: FDW to postGIS Database MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_863457_477958958.1646616937360" X-Mailer: WebService/1.1.19797 YMailNorrin Content-Length: 5487 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk ------=_Part_863457_477958958.1646616937360 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable In line below... On Monday, March 7, 2022, 05:36:34 AM GMT+13, Susan Hurst wrote: =20 =20 Let say that I have a database named stp. I also have another database=20 named geo that is a PostGIS database for storing geopolitical and=20 geospatial data. I want to set up a foreign data wrapper in stp to=20 connect to geo, so that for each address in stp, I only have to store=20 the primary key value of the lowest level geo unit, such as a city. I=20 can always display the city's county, state, country, whatever in views=20 in stp. I plan to have other databases that need geo data so I want a=20 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=20 install PostGIS only in geo? If you want to use Postgis functions & datatypes in stp you will need Postg= is there 2. Do I need the postgis extension in stp?=C2=A0 (I'm thinking yes, but I= =20 don't want to guess.) Isn't this the same as (1) above? (Postgis is installed via "create extensi= on postgis;") 3. I want to geocode addresses in stp. Do I need to install any=20 geocoding software in stp?...or can it be used from geo? If you can geocode in geo & access the resulting data via fdw in stp, you s= hould not need geocoding tools in stp.If you need to access spatial data fr= om geo in stp & geocode in stp, you will need the geocoding tools in stp. Thanks for your help! Sue --=20 -------------------------------------- Susan E Hurst Email:=C2=A0 susan.hurst@brookhurstdata.com Mobile: 314-486-3261 =20 ------=_Part_863457_477958958.1646616937360 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
In line below...

=20
=20
On Monday, March 7, 2022, 05:36:34 AM GMT+13, Susan Hur= st <susan.hurst@brookhurstdata.com> wrote:


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 o= nly have to store
the primary key value of the l= owest level geo unit, such as a city. I
can alwa= ys display the city's county, state, country, whatever in views
<= div dir=3D"ltr">in stp. I plan to have other databases that need geo data s= o I want a
single source of truth for geopolitic= al and geospatial data.

My questions are:
1. Do I have to install PostG= IS in stp?....or is it sufficient to
install Pos= tGIS only in geo?

If you want to use Postgis functions = & datatypes in stp you will need Postgis there

2. Do I need the postgis extension in s= tp?  (I'm thinking yes, but I
don't want to= guess.)

Isn't this the same as (1) above? (Postgis is = installed via "create extension postgis;")

3. I want to geocode addresses in stp. Do I nee= d to install any
geocoding software in stp?...or= can it be used from geo?

If you can geocode in geo &am= p; access the resulting data via fdw in stp, you should not need geocoding = tools in stp.
If you need to access spatial data from geo in stp & geoc= ode in stp, you will need the geocoding tools in stp.

Thanks for your help!

Sue

--
------------------------= --------------
Susan E Hurst
Mobile: 314-486-3261


------=_Part_863457_477958958.1646616937360--