<div dir="ltr">Hi, Bobb,<div><br></div><div>A database has many schemas.</div><div><br></div><div>A schema is a definition of a data structure.  Many tables can be created by using this data structure.</div><div><br></div><div>Am I right?</div><div><br></div><div>Regards,</div><div><br></div><div>Shao</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 22 Aug 2019 at 17:25, Basques, Bob (CI-StPaul) <<a href="mailto:bob.basques@ci.stpaul.mn.us">bob.basques@ci.stpaul.mn.us</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">



<div style="overflow-wrap: break-word;">
Shao,
<div><br>
</div>
<div>I’ve always thought of a schema as a sub-grouping inside of a database, as in a database can contain many schemas.</div>
<div><br>
</div>
<div>Or, from a higher point of view . . .</div>
<div><br>
</div>
<div>Database instances (Postgres, Oracle, MySQL, etc) contain one or more databases, and each database can contain one or more schemas . . .  <br>
<div><br>
</div>
<div>bobb</div>
<div><br>
</div>
<div><br>
<div><br>
<blockquote type="cite">
<div>On Aug 22, 2019, at 11:07 AM, Shaozhong SHI <<a href="mailto:shishaozhong@gmail.com" target="_blank">shishaozhong@gmail.com</a>> wrote:</div>
<br class="gmail-m_5248759633159499019Apple-interchange-newline">
<div>
<table class="gmail-m_5248759633159499019MsoNormalTable" border="1" cellpadding="0" style="font-family:ComicSansMS;letter-spacing:normal;text-indent:0px;text-transform:none;word-spacing:0px;text-decoration:none;background-color:rgb(226,247,0);border:1pt solid black">
<tbody>
<tr>
<td style="border:none;padding:0.75pt">
<p class="MsoNormal"><strong><span style="font-family:Calibri,sans-serif;color:rgb(255,51,51)">Think Before You Click:<span class="gmail-m_5248759633159499019Apple-converted-space"> </span></span></strong>This email originated<span class="gmail-m_5248759633159499019Apple-converted-space"> </span><strong>outside<span class="gmail-m_5248759633159499019Apple-converted-space"> </span></strong>our
 organization.<u></u><u></u></p>
</td>
</tr>
</tbody>
</table>
<br style="font-family:ComicSansMS;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<div style="font-family:ComicSansMS;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<div dir="ltr">Hi, Bobb,
<div><br>
</div>
<div>Thanks.</div>
<div><br>
</div>
<div>A lot of technical terms used are interchangeable.</div>
<div><br>
</div>
<div>Am I right to say this? When a postgreSQL database is created, a data structure is created.  This data structure is referred to as a scheme?</div>
<div><br>
</div>
<div>Namely, in this instance, a scheme = a data structure created with postgreSQL executables.</div>
<div><br>
</div>
<div>Am I right?</div>
<div><br>
</div>
<div>Regards,</div>
<div><br>
</div>
<div>Shao</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Thu, 22 Aug 2019 at 16:37, Andy Anderson <<a href="mailto:aanderson@amherst.edu" target="_blank">aanderson@amherst.edu</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>Thanks for the correction, Paul, I guess I’ve been relying on my MySQL experience, which stores user data in the "mysql" database.
<div><br>
</div>
<div>— Andy<br>
<div><br>
<blockquote type="cite">
<div>On Aug 21, 2019, at 12:59 PM, Paul Ramsey <<a href="mailto:pramsey@cleverelephant.ca" target="_blank">pramsey@cleverelephant.ca</a>> wrote:</div>
<br class="gmail-m_5248759633159499019gmail-m_5595514479772932317Apple-interchange-newline">
<div>
<div>This is not actually so. There’s nothing special about the postgres database, drop it and see. The system information lives in system catalogs that are not attached to any particular database. The template0 and
 template1 databases are “special” in that new databases are created by copying the contents of those templates, so alterations to them will percolate into any new databases created, so they should generally be left alone (unless you have a reason to want something
 included in all new databases). If you drop template1 you will find it hard to create new databases (unless you specify a different template) but otherwise things will keep running.
<div><br>
</div>
<div>Anyways, I imagine the mystery of the Esri connection to ‘postgres’ is just that someone at Esri thought the same as you, seeing that most builds of postgres do ship with a postgres database already created, so that the postgres database user
 can easily have something to connect to that is not one of the templates. But it’s not special, it’s just a database.</div>
<div><br>
</div>
<div>P.<br>
<div><br>
<blockquote type="cite">
<div>On Aug 21, 2019, at 9:33 AM, Andy Anderson <<a href="mailto:aanderson@amherst.edu" target="_blank">aanderson@amherst.edu</a>> wrote:</div>
<br class="gmail-m_5248759633159499019gmail-m_5595514479772932317Apple-interchange-newline">
<div>
<div>The postgres database is set up by default by the postgres server and holds configuration information: databases, users, etc. Don’t touch. Set up another database for Arc to use.
<div><br>
</div>
<div>— Andy<br>
<div><br>
<blockquote type="cite">
<div>On Aug 21, 2019, at 12:23 PM, Basques, Bob (CI-StPaul) <<a href="mailto:bob.basques@ci.stpaul.mn.us" target="_blank">bob.basques@ci.stpaul.mn.us</a>> wrote:</div>
<br class="gmail-m_5248759633159499019gmail-m_5595514479772932317Apple-interchange-newline">
<div>
<div>That’s what I’m talking about.  when I first tried to connect to Posters (and the “postgres” named database, I kept getting an error from ArcGIS saying the the “postgres” name for a database was a bad thing,
 and it wouldn’t connect.  After much searching, I discover that the name, “postgres” for a database wasn’t allowed by the ArcGIS client to connect to.  
<div><br>
</div>
<div>As long as you don’t try connecting to the default “postgres” database, all seem to work fine.</div>
<div><br>
</div>
<div>bobb</div>
<div><br>
</div>
<div><br>
<div><br>
<blockquote type="cite">
<div>On Aug 21, 2019, at 10:59 AM, Shaozhong SHI <<a href="mailto:shishaozhong@gmail.com" target="_blank">shishaozhong@gmail.com</a>> wrote:</div>
<br class="gmail-m_5248759633159499019gmail-m_5595514479772932317Apple-interchange-newline">
<div>
<table class="gmail-m_5248759633159499019gmail-m_5595514479772932317MsoNormalTable" border="1" cellpadding="0" style="font-family:ComicSansMS;letter-spacing:normal;text-indent:0px;text-transform:none;word-spacing:0px;text-decoration:none;background-color:rgb(226,247,0);border:1pt solid black">
<tbody>
<tr>
<td style="border:none;padding:0.75pt">
<p class="MsoNormal"><strong><span style="font-family:Calibri,sans-serif;color:rgb(255,51,51)">Think Before You Click:<span class="gmail-m_5248759633159499019gmail-m_5595514479772932317Apple-converted-space"> </span></span></strong>This email originated<span class="gmail-m_5248759633159499019gmail-m_5595514479772932317Apple-converted-space"> </span><strong>outside<span class="gmail-m_5248759633159499019gmail-m_5595514479772932317Apple-converted-space"> </span></strong>our
 organization.<u></u><u></u></p>
</td>
</tr>
</tbody>
</table>
<br style="font-family:ComicSansMS;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<div style="font-family:ComicSansMS;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<div dir="ltr">Hi, Bobb,
<div><br>
</div>
<div>I am confused with this.</div>
<div><br>
</div>
<div>The idea is to use ArcGIS desktops to read data from PostGIS/PostgreSQL.</div>
<div><br>
</div>
<div>How best to configure and make them happy to talk to each other?</div>
<div><br>
</div>
<div>Regards,</div>
<div><br>
</div>
<div>Shao</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Wed, 21 Aug 2019 at 15:01, Basques, Bob (CI-StPaul) <<a href="mailto:bob.basques@ci.stpaul.mn.us" target="_blank">bob.basques@ci.stpaul.mn.us</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>Shao,
<div><br>
</div>
<div>I had to dig fairly deeply into the ESRI site to find this particular explanation for why the service couldn’t/wouldn’t get connected.  Just to be clear, we do use logins for accessing the database, we just have chosen to use the “postgres” (named)
 database.
<div><br>
</div>
<div>So, I just went and tried to find the refence I found previously, and can’t find it (real quick).  Anyway,as long as you don’t try to connect to the “postgres” database, things do seem to work ok.</div>
<div><br>
</div>
<div>bobb</div>
<div><br>
</div>
<div><br>
<div><br>
</div>
<div><br>
<div><br>
<blockquote type="cite">
<div>On Aug 21, 2019, at 2:18 AM, Shaozhong SHI <<a href="mailto:shishaozhong@gmail.com" target="_blank">shishaozhong@gmail.com</a>> wrote:</div>
<br class="gmail-m_5248759633159499019gmail-m_5595514479772932317gmail-m_2243374280069712994Apple-interchange-newline">
<div>
<div>
<table class="gmail-m_5248759633159499019gmail-m_5595514479772932317gmail-m_2243374280069712994MsoNormalTable" border="1" cellpadding="0" style="background-color:rgb(226,247,0);border:1pt solid black">
<tbody>
<tr>
<td style="border:none;padding:0.75pt">
<p class="MsoNormal"><strong><span style="font-family:Calibri,sans-serif;color:rgb(255,51,51)">Think Before You Click:<span class="gmail-m_5248759633159499019gmail-m_5595514479772932317Apple-converted-space"> </span></span></strong>This email originated<span class="gmail-m_5248759633159499019gmail-m_5595514479772932317Apple-converted-space"> </span><strong>outside<span class="gmail-m_5248759633159499019gmail-m_5595514479772932317Apple-converted-space"> </span></strong>our
 organization.<u></u><u></u></p>
</td>
</tr>
</tbody>
</table>
<br>
<div>
<div dir="ltr">Hi, Bob,
<div>Can you point me to excellent technical documentation on what you mentioned, so that I can double-check.</div>
<div>My colleagues have made it working, but there are some issues.  For instance, not all ArcGIS desktops can access and retrieve data.</div>
<div><br>
</div>
<div>Looking forward to have more insight into this matter.</div>
<div><br>
</div>
<div>Regards,</div>
<div><br>
</div>
<div>Shao</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Tue, 20 Aug 2019 at 17:08, Basques, Bob (CI-StPaul) <<a href="mailto:bob.basques@ci.stpaul.mn.us" target="_blank">bob.basques@ci.stpaul.mn.us</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>All,
<div><br>
</div>
<div>One biggie, is that the ESRI side does not like connecting to the “postgres” named database, claiming it’s a System database (whatever that means).  This is not readily available as a limitation either when looking for reasons why it won’t connect.
  We’ve been using the “postgres” database name for years (a decade now??) with no ill effects from other applications/ connections.  I sort of understand this from the commercial side having worked with other databases like Oracle and MSSQL, but still, there
 should be a way to side step this with a setting somewhere.
<div><br>
</div>
<div>I looked high and low for a way to alias the “postgres” database name inside of Postgres, but didn’t find anything very easy to implement or maintain very easily.  I did think about setting up another dataabase and using Views to the postgres
 database, but that seemed like a bad idea for some reason, along with being somewhat hard to maintain, but upon reflection I keep coming back to the idea.</div>
<div><br>
</div>
<div>All non “postgres” named connections seem to work fine so far.  Haven’t implemented anything yet that is really heavy duty as far as loading though, so who knows.</div>
<div><br>
</div>
<div>Anyway, just my 2cents.</div>
<div><br>
</div>
<div>bobb</div>
<div><br>
</div>
<div><br>
<div><br>
<blockquote type="cite">
<div>On Aug 20, 2019, at 10:12 AM, Shaozhong SHI <<a href="mailto:shishaozhong@gmail.com" target="_blank">shishaozhong@gmail.com</a>> wrote:</div>
<br class="gmail-m_5248759633159499019gmail-m_5595514479772932317gmail-m_2243374280069712994gmail-m_6642160044412238955Apple-interchange-newline">
<div>
<div>
<table class="gmail-m_5248759633159499019gmail-m_5595514479772932317gmail-m_2243374280069712994gmail-m_6642160044412238955MsoNormalTable" border="1" cellpadding="0" style="background-color:rgb(226,247,0);border:1pt solid black">
<tbody>
<tr>
<td style="border:none;padding:0.75pt">
<p class="MsoNormal"><strong><span style="font-family:Calibri,sans-serif;color:rgb(255,51,51)">Think Before You Click:<span class="gmail-m_5248759633159499019gmail-m_5595514479772932317Apple-converted-space"> </span></span></strong>This email originated<span class="gmail-m_5248759633159499019gmail-m_5595514479772932317Apple-converted-space"> </span><strong>outside<span class="gmail-m_5248759633159499019gmail-m_5595514479772932317Apple-converted-space"> </span></strong>our
 organization.<u></u><u></u></p>
</td>
</tr>
</tbody>
</table>
<br>
<div>
<div dir="ltr">How to ensure that all versions of ArcGIS desktop applications can access and read from server-based PostGIS/PostgreSQL?
<div><br>
</div>
<div>Regards,</div>
<div><br>
</div>
<div>Shao</div>
</div>
</div>
</div>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a></div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a></blockquote>
</div>
</div>
</div>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a></div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a></blockquote>
</div>
</div>
<span style="font-family:ComicSansMS;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">_______________________________________________</span><br style="font-family:ComicSansMS;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<span style="font-family:ComicSansMS;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">postgis-users
 mailing list</span><br style="font-family:ComicSansMS;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<a href="mailto:postgis-users@lists.osgeo.org" style="font-family:ComicSansMS;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">postgis-users@lists.osgeo.org</a><br style="font-family:ComicSansMS;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" style="font-family:ComicSansMS;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a></div>
</blockquote>
</div>
<br>
</div>
</div>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a></div>
</blockquote>
</div>
<br>
</div>
</div>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a></div>
</blockquote>
</div>
<br>
</div>
</div>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a></div>
</blockquote>
</div>
<br>
</div>
</div>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a></blockquote>
</div>
</div>
<span style="font-family:ComicSansMS;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">_______________________________________________</span><br style="font-family:ComicSansMS;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<span style="font-family:ComicSansMS;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">postgis-users
 mailing list</span><br style="font-family:ComicSansMS;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<a href="mailto:postgis-users@lists.osgeo.org" style="font-family:ComicSansMS;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">postgis-users@lists.osgeo.org</a><br style="font-family:ComicSansMS;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" style="font-family:ComicSansMS;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a></div>
</blockquote>
</div>
<br>
</div>
</div>
</div>

_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a></blockquote></div>